From 8eaf77a1d7ab46d1b62f26e069619dcb7b7cae93 Mon Sep 17 00:00:00 2001 From: Orange Date: Wed, 2 Oct 2024 07:56:35 +0300 Subject: [PATCH] added component --- CMakeLists.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 77bd952..69fcc24 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,19 +41,19 @@ target_include_directories(omath # Install the library install(TARGETS omath EXPORT omathTargets - LIBRARY DESTINATION lib - ARCHIVE DESTINATION lib - RUNTIME DESTINATION bin + ARCHIVE DESTINATION lib COMPONENT omath_component # For static libraries + LIBRARY DESTINATION lib COMPONENT omath_component # For shared libraries + RUNTIME DESTINATION bin COMPONENT omath_component # For executables (on Windows) ) -# Install the public headers -install(DIRECTORY include/ DESTINATION include) +# Install headers as part of omath_component +install(DIRECTORY include/ DESTINATION include COMPONENT omath_component) -# Export omath targets +# Export omath target for CMake find_package support, also under omath_component install(EXPORT omathTargets FILE omathTargets.cmake NAMESPACE omath:: - DESTINATION lib/cmake/omath + DESTINATION lib/cmake/omath COMPONENT omath_component )