Commit 8f57d1b7 authored by Patric Schmitz's avatar Patric Schmitz

CoMISoConfig deployment

deploy cmake config to share/cmake/CoMISo
make namespace equal between install and build config
parent 4d856aae
Pipeline #11504 passed with stages
in 8 minutes and 20 seconds
......@@ -572,10 +572,21 @@ endif (COMISO_BUILD_EXAMPLES )
if(${PROJECT_NAME} MATCHES "CoMISo")
# Install library
install (TARGETS CoMISo EXPORT CoMISoTargets
RUNTIME DESTINATION lib
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
install(TARGETS CoMISo EXPORT CoMISoTargets
RUNTIME DESTINATION lib
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
# Create export target to reference CoMISo installation
install(EXPORT CoMISoTargets
FILE CoMISoConfig.cmake
NAMESPACE CoMISo::
DESTINATION share/cmake/CoMISo)
# Create export target to reference CoMISo build tree
export(TARGETS CoMISo
FILE CoMISoConfig.cmake
NAMESPACE CoMISo::)
# Install Header Files
install(DIRECTORY .
......@@ -595,19 +606,6 @@ 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
)
# Create export target to reference CoMISo build tree
export(TARGETS CoMISo FILE CoMISoConfig.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