You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
874 B

  1. # Add all targets to the build-tree export set
  2. export(TARGETS ${STORM_TARGETS} FILE "${PROJECT_BINARY_DIR}/stormTargets.cmake")
  3. message(STATUS "Registered with cmake")
  4. # Export the package for use from the build-tree
  5. # (this registers the build-tree with a global CMake-registry)
  6. export(PACKAGE storm)
  7. set(DEP_TARGETS "")
  8. foreach(dt ${STORM_DEP_TARGETS})
  9. export_target(DEP_TARGETS ${dt})
  10. endforeach()
  11. set(EXP_OPTIONS "")
  12. foreach(option ${EXPORTED_OPTIONS})
  13. set(EXP_OPTIONS "${EXP_OPTIONS}\nset(${option} \"${${option}}\")")
  14. endforeach()
  15. include(CMakePackageConfigHelpers)
  16. set(CONF_INCLUDE_DIRS "${CMAKE_BINARY_DIR}/include/")
  17. configure_package_config_file(
  18. resources/cmake/stormConfig.cmake.in
  19. ${PROJECT_BINARY_DIR}/stormConfig.cmake
  20. INSTALL_DESTINATION ${CMAKE_INSTALL_DIR}
  21. PATH_VARS INCLUDE_INSTALL_DIR #SYSCONFIG_INSTALL_DIR
  22. )