added component

This commit is contained in:
2024-10-02 07:56:35 +03:00
parent f9a263c7c2
commit 8eaf77a1d7

View File

@@ -41,19 +41,19 @@ target_include_directories(omath
# Install the library # Install the library
install(TARGETS omath install(TARGETS omath
EXPORT omathTargets EXPORT omathTargets
LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT omath_component # For static libraries
ARCHIVE DESTINATION lib LIBRARY DESTINATION lib COMPONENT omath_component # For shared libraries
RUNTIME DESTINATION bin RUNTIME DESTINATION bin COMPONENT omath_component # For executables (on Windows)
) )
# Install the public headers # Install headers as part of omath_component
install(DIRECTORY include/ DESTINATION include) 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 install(EXPORT omathTargets
FILE omathTargets.cmake FILE omathTargets.cmake
NAMESPACE omath:: NAMESPACE omath::
DESTINATION lib/cmake/omath DESTINATION lib/cmake/omath COMPONENT omath_component
) )