cgns-targets.cmake 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # Generated by CMake
  2. if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5)
  3. message(FATAL_ERROR "CMake >= 2.6.0 required")
  4. endif()
  5. cmake_policy(PUSH)
  6. cmake_policy(VERSION 2.6...3.19)
  7. #----------------------------------------------------------------
  8. # Generated CMake target import file.
  9. #----------------------------------------------------------------
  10. # Commands may need to know the format version.
  11. set(CMAKE_IMPORT_FILE_VERSION 1)
  12. # Protect against multiple inclusion, which would fail when already imported targets are added once more.
  13. set(_targetsDefined)
  14. set(_targetsNotDefined)
  15. set(_expectedTargets)
  16. foreach(_expectedTarget CGNS::cgns_static CGNS::cgns_shared)
  17. list(APPEND _expectedTargets ${_expectedTarget})
  18. if(NOT TARGET ${_expectedTarget})
  19. list(APPEND _targetsNotDefined ${_expectedTarget})
  20. endif()
  21. if(TARGET ${_expectedTarget})
  22. list(APPEND _targetsDefined ${_expectedTarget})
  23. endif()
  24. endforeach()
  25. if("${_targetsDefined}" STREQUAL "${_expectedTargets}")
  26. unset(_targetsDefined)
  27. unset(_targetsNotDefined)
  28. unset(_expectedTargets)
  29. set(CMAKE_IMPORT_FILE_VERSION)
  30. cmake_policy(POP)
  31. return()
  32. endif()
  33. if(NOT "${_targetsDefined}" STREQUAL "")
  34. message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n")
  35. endif()
  36. unset(_targetsDefined)
  37. unset(_targetsNotDefined)
  38. unset(_expectedTargets)
  39. # Compute the installation prefix relative to this file.
  40. get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
  41. get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
  42. get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
  43. get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
  44. if(_IMPORT_PREFIX STREQUAL "/")
  45. set(_IMPORT_PREFIX "")
  46. endif()
  47. # Create imported target CGNS::cgns_static
  48. add_library(CGNS::cgns_static STATIC IMPORTED)
  49. set_target_properties(CGNS::cgns_static PROPERTIES
  50. INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${_IMPORT_PREFIX}/include"
  51. INTERFACE_LINK_LIBRARIES "\$<LINK_ONLY:\$<\$<BOOL:YES>:hdf5::hdf5-shared>>"
  52. )
  53. # Create imported target CGNS::cgns_shared
  54. add_library(CGNS::cgns_shared SHARED IMPORTED)
  55. set_target_properties(CGNS::cgns_shared PROPERTIES
  56. INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${_IMPORT_PREFIX}/include"
  57. INTERFACE_LINK_LIBRARIES "hdf5::hdf5-shared;\$<\$<NOT:\$<PLATFORM_ID:Windows>>:dl>"
  58. )
  59. if(CMAKE_VERSION VERSION_LESS 2.8.12)
  60. message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
  61. endif()
  62. # Load information for each installed configuration.
  63. get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
  64. file(GLOB CONFIG_FILES "${_DIR}/cgns-targets-*.cmake")
  65. foreach(f ${CONFIG_FILES})
  66. include(${f})
  67. endforeach()
  68. # Cleanup temporary variables.
  69. set(_IMPORT_PREFIX)
  70. # Loop over all imported files and verify that they actually exist
  71. foreach(target ${_IMPORT_CHECK_TARGETS} )
  72. foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
  73. if(NOT EXISTS "${file}" )
  74. message(FATAL_ERROR "The imported target \"${target}\" references the file
  75. \"${file}\"
  76. but this file does not exist. Possible reasons include:
  77. * The file was deleted, renamed, or moved to another location.
  78. * An install or uninstall procedure did not complete successfully.
  79. * The installation package was faulty and contained
  80. \"${CMAKE_CURRENT_LIST_FILE}\"
  81. but not all the files it references.
  82. ")
  83. endif()
  84. endforeach()
  85. unset(_IMPORT_CHECK_FILES_FOR_${target})
  86. endforeach()
  87. unset(_IMPORT_CHECK_TARGETS)
  88. # This file does not depend on other imported targets which have
  89. # been exported from the same project but in a separate export set.
  90. # Commands beyond this point should not need to know the version.
  91. set(CMAKE_IMPORT_FILE_VERSION)
  92. cmake_policy(POP)