Commit b6953c42 authored by Max Lyon's avatar Max Lyon

export CoMISo targets

parent 7189372a
Pipeline #8754 failed with stages
in 2 minutes and 1 second
......@@ -558,10 +558,10 @@ endif (COMISO_BUILD_EXAMPLES )
if(${PROJECT_NAME} MATCHES "CoMISo")
# Install library
install (TARGETS CoMISo
RUNTIME DESTINATION lib
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
install (TARGETS CoMISo EXPORT CoMISoTargets
RUNTIME DESTINATION lib
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
# Install Header Files
install(DIRECTORY .
......@@ -581,6 +581,16 @@ if(${PROJECT_NAME} MATCHES "CoMISo")
# Install Config File
install( FILES ${CMAKE_BINARY_DIR}/CoMISo/Config/config.hh
DESTINATION include/CoMISo/Config )
install(EXPORT CoMISoTargets
FILE CoMISoTargets.cmake
NAMESPACE CoMISo::
DESTINATION cmake)
install(FILES "${CMAKE_CURRENT_LIST_DIR}/cmake/CoMISoConfig.cmake"
DESTINATION cmake
)
endif()
include(CMakeFindDependencyMacro)
# Add the targets file
include("${CMAKE_CURRENT_LIST_DIR}/CoMISoTargets.cmake")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment