-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename beman.example to beman.exemplar (#19)
Calling this project exemplar is more accurate and mitigates some of the confusion created by having an "examples" folder within an "example" project. Once this change merges, I intend to rename the repository to exemplar.
- Loading branch information
Showing
11 changed files
with
62 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
set(ALL_EXAMPLES | ||
#identity_as_default_projection | ||
set(ALL_EXAMPLES | ||
#identity_as_default_projection | ||
identity_direct_usage) | ||
|
||
foreach(example ${ALL_EXAMPLES}) | ||
add_executable(beman.example.examples.${example}) | ||
target_sources(beman.example.examples.${example} PRIVATE ${example}.cpp) | ||
target_link_libraries(beman.example.examples.${example} beman::example) | ||
add_executable(beman.exemplar.examples.${example}) | ||
target_sources(beman.exemplar.examples.${example} PRIVATE ${example}.cpp) | ||
target_link_libraries(beman.exemplar.examples.${example} beman::exemplar) | ||
endforeach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
#include <beman/example/identity.hpp> | ||
#include <beman/exemplar/identity.hpp> | ||
|
||
#include <iostream> | ||
|
||
int main() { | ||
std::cout << beman::example::identity()(2024) << '\n'; | ||
std::cout << beman::exemplar::identity()(2024) << '\n'; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
add_library(beman.exemplar STATIC) | ||
add_library(beman::exemplar ALIAS beman.exemplar) | ||
|
||
target_sources(beman.exemplar PRIVATE identity.cpp) | ||
|
||
target_include_directories( | ||
beman.exemplar | ||
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../../include>) | ||
|
||
install( | ||
TARGETS beman.exemplar | ||
EXPORT beman.exemplar | ||
DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
|
||
install( | ||
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../../../include/ | ||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} | ||
FILES_MATCHING | ||
PATTERN "*.hpp") | ||
|
||
if(BUILD_TESTING) | ||
include(GoogleTest) | ||
|
||
add_executable(beman.exemplar.tests) | ||
target_sources(beman.exemplar.tests PRIVATE identity.t.cpp) | ||
target_link_libraries(beman.exemplar.tests | ||
PRIVATE beman::exemplar GTest::gtest GTest::gtest_main) | ||
|
||
gtest_add_tests(beman.exemplar.tests "" AUTO) | ||
endif() |
2 changes: 1 addition & 1 deletion
2
src/beman/example/identity.cpp → src/beman/exemplar/identity.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
#include <beman/example/identity.hpp> | ||
#include <beman/exemplar/identity.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters