...
  View open merge request
Commits (2)
......@@ -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,16 +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
)
endif()
include(CMakeFindDependencyMacro)
# Add the targets file
include("${CMAKE_CURRENT_LIST_DIR}/CoMISoTargets.cmake")