renamed component

This commit is contained in:
2024-10-08 18:55:30 +03:00
parent 22d03f00b9
commit 128aafac6d

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
ARCHIVE DESTINATION lib COMPONENT omath_component # For static libraries ARCHIVE DESTINATION lib COMPONENT omath # For static libraries
LIBRARY DESTINATION lib COMPONENT omath_component # For shared libraries LIBRARY DESTINATION lib COMPONENT omath # For shared libraries
RUNTIME DESTINATION bin COMPONENT omath_component # For executables (on Windows) RUNTIME DESTINATION bin COMPONENT omath # For executables (on Windows)
) )
# Install headers as part of omath_component # Install headers as part of omath_component
install(DIRECTORY include/ DESTINATION include COMPONENT omath_component) install(DIRECTORY include/ DESTINATION include COMPONENT omath)
# Export omath target for CMake find_package support, also under omath_component # 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 COMPONENT omath_component DESTINATION lib/cmake/omath COMPONENT omath
) )