LibIcalConfig.cmake 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
  2. ####### Any changes to this file will be overwritten by the next CMake run ####
  3. ####### The input file was LibIcalConfig.cmake.in ########
  4. get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
  5. # Use original install prefix when loaded through a "/usr move"
  6. # cross-prefix symbolic link such as /lib -> /usr/lib.
  7. get_filename_component(_realCurr "${CMAKE_CURRENT_LIST_DIR}" REALPATH)
  8. get_filename_component(_realOrig "/usr/lib/cmake/LibIcal" REALPATH)
  9. if(_realCurr STREQUAL _realOrig)
  10. set(PACKAGE_PREFIX_DIR "/usr")
  11. endif()
  12. unset(_realOrig)
  13. unset(_realCurr)
  14. macro(set_and_check _var _file)
  15. set(${_var} "${_file}")
  16. if(NOT EXISTS "${_file}")
  17. message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
  18. endif()
  19. endmacro()
  20. macro(check_required_components _NAME)
  21. foreach(comp ${${_NAME}_FIND_COMPONENTS})
  22. if(NOT ${_NAME}_${comp}_FOUND)
  23. if(${_NAME}_FIND_REQUIRED_${comp})
  24. set(${_NAME}_FOUND FALSE)
  25. endif()
  26. endif()
  27. endforeach()
  28. endmacro()
  29. ####################################################################################
  30. set_and_check(LibIcal_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/include")
  31. set_and_check(LibIcal_LIBRARIES_DIR "${PACKAGE_PREFIX_DIR}/lib")
  32. include("${CMAKE_CURRENT_LIST_DIR}/LibIcalTargets.cmake")
  33. set(LibIcal_LIBRARIES ical icalss icalvcal)
  34. # Temporary, will be removed once issue#87 is fixed
  35. set(LibIcal_STATIC_LIBRARIES ical-static icalss-static icalvcal-static)