CalamaresConfig.cmake.in 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. # Config file for the Calamares package
  2. #
  3. # It defines the following variables
  4. # CALAMARES_INCLUDE_DIRS - include directories for Calamares
  5. # CALAMARES_LIBRARIES - libraries to link against
  6. # CALAMARES_USE_FILE - name of a convenience include
  7. # CALAMARES_APPLICATION_NAME - human-readable application name
  8. #
  9. # Typical use is:
  10. #
  11. # find_package(Calamares REQUIRED)
  12. # include("${CALAMARES_USE_FILE}")
  13. #
  14. # Compute paths
  15. get_filename_component(CALAMARES_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
  16. if(EXISTS "${CALAMARES_CMAKE_DIR}/CMakeCache.txt")
  17. # In build tree
  18. include("${CALAMARES_CMAKE_DIR}/CalamaresBuildTreeSettings.cmake")
  19. else()
  20. set(CALAMARES_INCLUDE_DIRS "${CALAMARES_CMAKE_DIR}/@CONF_REL_INCLUDE_DIR@/libcalamares")
  21. endif()
  22. # Our library dependencies (contains definitions for IMPORTED targets)
  23. include("${CALAMARES_CMAKE_DIR}/CalamaresLibraryDepends.cmake")
  24. # These are IMPORTED targets created by CalamaresLibraryDepends.cmake
  25. set(CALAMARES_LIBRARIES calamares)
  26. # Convenience variables
  27. set(CALAMARES_USE_FILE "${CALAMARES_CMAKE_DIR}/CalamaresUse.cmake")
  28. set(CALAMARES_APPLICATION_NAME "Calamares")