Skip to content

Commit 1c666fa

Browse files
committed
make project compilable
1 parent 0aea22d commit 1c666fa

File tree

8 files changed

+27
-27
lines changed

8 files changed

+27
-27
lines changed

examples/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ endif()
1818
message("Examples to be built: ${ALL_EXAMPLES}")
1919

2020
foreach(example ${ALL_EXAMPLES})
21-
add_executable(beman.exemplar.examples.${example})
22-
target_sources(beman.exemplar.examples.${example} PRIVATE ${example}.cpp)
23-
target_link_libraries(beman.exemplar.examples.${example} beman::exemplar)
21+
add_executable(beman.scope.examples.${example})
22+
target_sources(beman.scope.examples.${example} PRIVATE ${example}.cpp)
23+
target_link_libraries(beman.scope.examples.${example} beman::scope)
2424
endforeach()

examples/identity_as_default_projection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// TODO Darius: Do we need to selectively compile this example?
66
// Or should we assume that this project is compiled with C++20 support only?
77

8-
#include <beman/exemplar/identity.hpp>
8+
#include <beman/scope/identity.hpp>
99

1010
#include <algorithm>
1111
#include <functional> // std::identity

examples/identity_direct_usage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
22

3-
#include <beman/exemplar/identity.hpp>
3+
#include <beman/scope/identity.hpp>
44

55
#include <iostream>
66

src/beman/scope/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
22

3-
add_library(beman.exemplar)
4-
add_library(beman::exemplar ALIAS beman.exemplar)
3+
add_library(beman.scope)
4+
add_library(beman::scope ALIAS beman.scope)
55

6-
target_sources(beman.exemplar PRIVATE identity.cpp)
6+
target_sources(beman.scope PRIVATE identity.cpp)
77

88
target_sources(
9-
beman.exemplar
9+
beman.scope
1010
PUBLIC
1111
FILE_SET HEADERS
1212
BASE_DIRS ${PROJECT_SOURCE_DIR}/include
13-
FILES ${PROJECT_SOURCE_DIR}/include/beman/exemplar/identity.hpp
13+
FILES ${PROJECT_SOURCE_DIR}/include/beman/scope/identity.hpp
1414
)
1515

16-
set_target_properties(beman.exemplar PROPERTIES VERIFY_INTERFACE_HEADER_SETS ON)
16+
set_target_properties(beman.scope PROPERTIES VERIFY_INTERFACE_HEADER_SETS ON)
1717

1818
install(
19-
TARGETS beman.exemplar
20-
EXPORT beman.exemplar
19+
TARGETS beman.scope
20+
EXPORT beman.scope
2121
DESTINATION
2222
$<$<CONFIG:Debug>:debug/>${CMAKE_INSTALL_LIBDIR}
2323
RUNTIME DESTINATION $<$<CONFIG:Debug>:debug/>${CMAKE_INSTALL_BINDIR}

src/beman/scope/identity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
22

3-
#include <beman/exemplar/identity.hpp>
3+
#include <beman/scope/identity.hpp>

tests/beman/exemplar/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/beman/scope/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2+
3+
include(GoogleTest)
4+
5+
add_executable(beman.scope.tests.identity)
6+
target_sources(beman.scope.tests.identity PRIVATE identity.test.cpp)
7+
target_link_libraries(
8+
beman.scope.tests.identity
9+
PRIVATE beman::scope GTest::gtest GTest::gtest_main
10+
)
11+
12+
gtest_add_tests(beman.scope.tests.identity "" AUTO)

tests/beman/exemplar/identity.test.cpp renamed to tests/beman/scope/identity.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
22

3-
#include <beman/exemplar/identity.hpp>
3+
#include <beman/scope/identity.hpp>
44

55
#include <gtest/gtest.h>
66

0 commit comments

Comments
 (0)