The source code and dockerfile for the GSW2024 AI Lab.
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

44 lines
1.4 KiB

4 weeks ago
  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. write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/stormConfigVersion.cmake
  17. VERSION 0.1.0
  18. COMPATIBILITY SameMajorVersion )
  19. # For the build tree
  20. set(CONF_INCLUDE_DIRS "${CMAKE_BINARY_DIR}/include/")
  21. configure_package_config_file(
  22. resources/cmake/stormConfig.cmake.in
  23. ${PROJECT_BINARY_DIR}/stormConfig.cmake
  24. INSTALL_DESTINATION ${CMAKE_INSTALL_DIR}
  25. PATH_VARS INCLUDE_INSTALL_DIR
  26. )
  27. # For the install tree
  28. file(RELATIVE_PATH REL_INCLUDE_DIR "${CMAKE_INSTALL_DIR}" "${INCLUDE_INSTALL_DIR}")
  29. set(CONF_INCLUDE_DIRS "\${storm_CMAKE_DIR}/${REL_INCLUDE_DIR}/storm")
  30. configure_package_config_file(
  31. resources/cmake/stormConfig.cmake.in
  32. ${PROJECT_BINARY_DIR}/stormConfig.install.cmake
  33. INSTALL_DESTINATION ${CMAKE_INSTALL_DIR}
  34. PATH_VARS INCLUDE_INSTALL_DIR
  35. )