cfitsio-config.cmake 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. #set_and_check (CFITSIO_INCLUDE_DIRS "")
  3. #include ("${CMAKE_CURRENT_LIST_DIR}/cfitsioTargets.cmake")
  4. # - Config file for the MyLib package
  5. # It defines the following variables
  6. # MYLIB_INCLUDE_DIRS - include directories for MyLib
  7. # MYLIB_LIBRARIES - libraries to link against
  8. # MYLIB_EXECUTABLE - the bar executable
  9. # Compute paths
  10. #get_filename_component(CFITSIO_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
  11. #set(CFITSIO_INCLUDE_DIRS "")
  12. # These are IMPORTED targets created by ${LIB_NAME}Targets.cmake
  13. #set(CFITSIO_LIBRARIES ${LIB_NAME})
  14. # Our library dependencies (contains definitions for IMPORTED targets)
  15. #if(NOT TARGET ${LIB_NAME} AND NOT CFITSIO_BINARY_DIR)
  16. # include("${CFITSIO_CMAKE_DIR}/cfitsio-targets.cmake")
  17. #endif()
  18. # Compute installation prefix relative to this file.
  19. get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
  20. get_filename_component(_prefix "${_dir}/../.." ABSOLUTE)
  21. # Import the targets.
  22. include("${_prefix}/lib/cmake/cfitsio/cfitsio-targets.cmake")
  23. # Report other information.
  24. set(cfitsio_INCLUDE_DIRS "${_prefix}/include/cfitsio-")
  25. # Our library dependencies (contains definitions for IMPORTED targets)
  26. if(NOT TARGET ${LIB_NAME}::${LIB_NAME})
  27. include("${CFITSIO_CMAKE_DIR}/cfitsio-targets.cmake")
  28. endif()