generated from mochi-hpc/thallium-microservice-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01a7535
commit 4510ed9
Showing
3 changed files
with
25 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,17 @@ | ||
cmake_minimum_required (VERSION 3.8) | ||
|
||
project (mofka CXX) | ||
set (CMAKE_CXX_STANDARD 17) | ||
set (CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
find_package (mofka REQUIRED) | ||
find_package (Python3 COMPONENTS Interpreter Development REQUIRED) | ||
find_package (pybind11 REQUIRED) | ||
|
||
add_library (my_broker_selector MODULE src/MyDataBrokerDSelector.cpp) | ||
target_link_libraries (my_broker_selector pybind11::module mofka-client) | ||
target_link_libraries (my_broker_selector PUBLIC pybind11::module mofka-client PRIVATE coverage_config warnings_config) | ||
pybind11_extension (my_broker_selector) | ||
pybind11_strip (my_broker_selector) | ||
set (PY_VERSION ${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}) | ||
|
||
add_library (my_validator MODULE src/MyValidator.cpp) | ||
target_link_libraries (my_validator mofka-client) | ||
target_link_libraries (my_validator PUBLIC mofka-client PRIVATE coverage_config warnings_config) | ||
|
||
add_library (my_serializer MODULE src/MySerializer.cpp) | ||
target_link_libraries (my_serializer mofka-client) | ||
target_link_libraries (my_serializer PUBLIC mofka-client PRIVATE coverage_config warnings_config) | ||
|
||
add_library (my_partition_selector MODULE src/MyPartitionSelector.cpp) | ||
target_link_libraries (my_partition_selector mofka-client) | ||
target_link_libraries (my_partition_selector PUBLIC mofka-client PRIVATE coverage_config warnings_config) | ||
|
||
install (TARGETS my_broker_selector my_validator my_serializer my_partition_selector | ||
ARCHIVE DESTINATION lib/ | ||
LIBRARY DESTINATION lib/) | ||
LIBRARY DESTINATION lib/) |
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