diff --git a/CMakeLists.txt b/CMakeLists.txt index 8331b102f..03814efa8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,7 @@ FetchContent_Declare( GIT_REPOSITORY https://github.com/FNALssi/cetmodules GIT_TAG 4.01.01 GIT_SHALLOW ON + EXCLUDE_FROM_ALL # Do not install FIND_PACKAGE_ARGS 4.01.01 ) # ... and the Catch2 unit testing framework @@ -16,6 +17,7 @@ FetchContent_Declare( GIT_REPOSITORY https://github.com/catchorg/Catch2.git GIT_TAG v3.10.0 GIT_SHALLOW ON + EXCLUDE_FROM_ALL # Do not install FIND_PACKAGE_ARGS ) # ... and Microsoft's C++ Guideline Support Library @@ -24,6 +26,7 @@ FetchContent_Declare( GIT_REPOSITORY https://github.com/microsoft/GSL GIT_TAG v4.2.0 GIT_SHALLOW ON + EXCLUDE_FROM_ALL # Do not install FIND_PACKAGE_ARGS NAMES Microsoft.GSL ) # ... and the Mimic C++ mocking framework @@ -32,6 +35,7 @@ FetchContent_Declare( GIT_REPOSITORY https://github.com/DNKpp/mimicpp GIT_TAG v8 GIT_SHALLOW ON + EXCLUDE_FROM_ALL # Do not install FIND_PACKAGE_ARGS ) diff --git a/form/CMakeLists.txt b/form/CMakeLists.txt index e7b3ed99c..ddbe7652d 100644 --- a/form/CMakeLists.txt +++ b/form/CMakeLists.txt @@ -33,3 +33,5 @@ add_library(form_module MODULE form_module.cpp) target_link_libraries(form_module PRIVATE phlex::module form) target_include_directories(form_module PRIVATE ${PROJECT_SOURCE_DIR}) + +install(TARGETS form_module LIBRARY DESTINATION lib) diff --git a/phlex/CMakeLists.txt b/phlex/CMakeLists.txt index 1c03dcb54..5ff234374 100644 --- a/phlex/CMakeLists.txt +++ b/phlex/CMakeLists.txt @@ -22,17 +22,29 @@ cet_make_library( install(FILES concurrency.hpp module.hpp source.hpp DESTINATION include/phlex) +cet_make_library( + LIBRARY_NAME + phlex_configuration_internal + SHARED + SOURCE + configuration.cpp + LIBRARIES + PRIVATE + Boost::json + phlex::core + ) + cet_make_library( LIBRARY_NAME phlex_configuration EXPORT_NAME configuration INTERFACE - SOURCE - configuration.cpp + NO_SOURCE LIBRARIES Boost::json phlex::core + phlex_configuration_internal ) install(FILES configuration.hpp DESTINATION include/phlex) diff --git a/phlex/core/CMakeLists.txt b/phlex/core/CMakeLists.txt index 20c0443a0..1b498497a 100644 --- a/phlex/core/CMakeLists.txt +++ b/phlex/core/CMakeLists.txt @@ -49,6 +49,7 @@ install( declared_observer.hpp declared_output.hpp declared_predicate.hpp + declared_provider.hpp declared_transform.hpp declared_unfold.hpp edge_creation_policy.hpp @@ -72,6 +73,10 @@ install( upstream_predicates.hpp DESTINATION include/phlex/core ) +install(FILES fold/send.hpp DESTINATION include/phlex/core/fold) +install(FILES detail/make_algorithm_name.hpp detail/maybe_predicates.hpp + detail/filter_impl.hpp DESTINATION include/phlex/core/detail + ) target_include_directories(phlex_core PRIVATE ${PROJECT_SOURCE_DIR}) # AppleClang 15.0 still treats std::views::join as experimental diff --git a/phlex/metaprogramming/CMakeLists.txt b/phlex/metaprogramming/CMakeLists.txt index e8692ab18..b6a355982 100644 --- a/phlex/metaprogramming/CMakeLists.txt +++ b/phlex/metaprogramming/CMakeLists.txt @@ -14,4 +14,11 @@ install(FILES delegate.hpp type_deduction.hpp DESTINATION include/phlex/metaprogramming ) +install( + FILES detail/basic_concepts.hpp detail/ctor_reflect_types.hpp + detail/number_output_objects.hpp detail/number_parameters.hpp + detail/parameter_types.hpp detail/return_type.hpp + DESTINATION include/phlex/metaprogramming/detail + ) + add_library(phlex::metaprogramming ALIAS phlex_metaprogramming_int) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 02321dd54..63a32a9e5 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -6,5 +6,9 @@ add_subdirectory(python) add_library(layer_generator layer_generator.cpp) target_link_libraries(layer_generator PRIVATE phlex::core) +install(TARGETS layer_generator LIBRARY) + add_library(generate_layers MODULE generate_layers.cpp) target_link_libraries(generate_layers PRIVATE phlex::module layer_generator) + +install(TARGETS generate_layers LIBRARY DESTINATION lib) diff --git a/plugins/python/CMakeLists.txt b/plugins/python/CMakeLists.txt index 5b32c49f6..f43e12c93 100644 --- a/plugins/python/CMakeLists.txt +++ b/plugins/python/CMakeLists.txt @@ -69,6 +69,8 @@ except ImportError: PUBLIC Python::Python ) + install(TARGETS pymodule LIBRARY DESTINATION lib) + # numpy support if installed if(HAS_NUMPY)