|
@ -8,7 +8,7 @@ message(STATUS "Registered with cmake") |
|
|
export(PACKAGE storm) |
|
|
export(PACKAGE storm) |
|
|
|
|
|
|
|
|
set(DEP_TARGETS "") |
|
|
set(DEP_TARGETS "") |
|
|
foreach(dt ${STORM_DEP_TARGETS}) |
|
|
|
|
|
|
|
|
foreach(dt ${STORM_DEP_TARGETS}) |
|
|
export_target(DEP_TARGETS ${dt}) |
|
|
export_target(DEP_TARGETS ${dt}) |
|
|
endforeach() |
|
|
endforeach() |
|
|
|
|
|
|
|
@ -19,10 +19,26 @@ endforeach() |
|
|
|
|
|
|
|
|
include(CMakePackageConfigHelpers) |
|
|
include(CMakePackageConfigHelpers) |
|
|
|
|
|
|
|
|
|
|
|
write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/stormConfigVersion.cmake |
|
|
|
|
|
VERSION 0.1.0 |
|
|
|
|
|
COMPATIBILITY SameMajorVersion ) |
|
|
|
|
|
|
|
|
|
|
|
# For the build tree |
|
|
set(CONF_INCLUDE_DIRS "${CMAKE_BINARY_DIR}/include/") |
|
|
set(CONF_INCLUDE_DIRS "${CMAKE_BINARY_DIR}/include/") |
|
|
configure_package_config_file( |
|
|
configure_package_config_file( |
|
|
resources/cmake/stormConfig.cmake.in |
|
|
resources/cmake/stormConfig.cmake.in |
|
|
${PROJECT_BINARY_DIR}/stormConfig.cmake |
|
|
${PROJECT_BINARY_DIR}/stormConfig.cmake |
|
|
INSTALL_DESTINATION ${CMAKE_INSTALL_DIR} |
|
|
INSTALL_DESTINATION ${CMAKE_INSTALL_DIR} |
|
|
PATH_VARS INCLUDE_INSTALL_DIR #SYSCONFIG_INSTALL_DIR |
|
|
|
|
|
|
|
|
PATH_VARS INCLUDE_INSTALL_DIR |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
# For the install tree |
|
|
|
|
|
file(RELATIVE_PATH REL_INCLUDE_DIR "${CMAKE_INSTALL_DIR}" "${INCLUDE_INSTALL_DIR}") |
|
|
|
|
|
set(CONF_INCLUDE_DIRS "\${storm_CMAKE_DIR}/${REL_INCLUDE_DIR}/storm") |
|
|
|
|
|
|
|
|
|
|
|
configure_package_config_file( |
|
|
|
|
|
resources/cmake/stormConfig.cmake.in |
|
|
|
|
|
${PROJECT_BINARY_DIR}/stormConfig.install.cmake |
|
|
|
|
|
INSTALL_DESTINATION ${CMAKE_INSTALL_DIR} |
|
|
|
|
|
PATH_VARS INCLUDE_INSTALL_DIR |
|
|
) |
|
|
) |