File tree Expand file tree Collapse file tree 8 files changed +27
-27
lines changed
Expand file tree Collapse file tree 8 files changed +27
-27
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ endif()
1818message ("Examples to be built: ${ALL_EXAMPLES} " )
1919
2020foreach (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 )
2424endforeach ()
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
88target_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
1818install (
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}
Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
22
3- #include < beman/exemplar /identity.hpp>
3+ #include < beman/scope /identity.hpp>
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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)
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments