assimpTargets.cmake.in 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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)
  7. # Required for the evaluation of "if(@BUILD_SHARED_LIBS@)" below to function
  8. cmake_policy(SET CMP0012 NEW)
  9. #----------------------------------------------------------------
  10. # Generated CMake target import file.
  11. #----------------------------------------------------------------
  12. # Commands may need to know the format version.
  13. set(CMAKE_IMPORT_FILE_VERSION 1)
  14. # Protect against multiple inclusion, which would fail when already imported targets are added once more.
  15. set(_targetsDefined)
  16. set(_targetsNotDefined)
  17. set(_expectedTargets)
  18. foreach(_expectedTarget assimp::assimp)
  19. list(APPEND _expectedTargets ${_expectedTarget})
  20. if(NOT TARGET ${_expectedTarget})
  21. list(APPEND _targetsNotDefined ${_expectedTarget})
  22. endif()
  23. if(TARGET ${_expectedTarget})
  24. list(APPEND _targetsDefined ${_expectedTarget})
  25. endif()
  26. endforeach()
  27. if("${_targetsDefined}" STREQUAL "${_expectedTargets}")
  28. unset(_targetsDefined)
  29. unset(_targetsNotDefined)
  30. unset(_expectedTargets)
  31. set(CMAKE_IMPORT_FILE_VERSION)
  32. cmake_policy(POP)
  33. return()
  34. endif()
  35. if(NOT "${_targetsDefined}" STREQUAL "")
  36. message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n")
  37. endif()
  38. unset(_targetsDefined)
  39. unset(_targetsNotDefined)
  40. unset(_expectedTargets)
  41. # Create imported target assimp::assimp
  42. add_library(assimp::assimp @BUILD_LIB_TYPE@ IMPORTED)
  43. set_target_properties(assimp::assimp PROPERTIES
  44. COMPATIBLE_INTERFACE_STRING "assimp_MAJOR_VERSION"
  45. INTERFACE_assimp_MAJOR_VERSION "1"
  46. INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_FULL_INCLUDEDIR@"
  47. #INTERFACE_LINK_LIBRARIES "TxtUtils::TxtUtils;MealyMachine::MealyMachine"
  48. )
  49. if(CMAKE_VERSION VERSION_LESS 2.8.12)
  50. message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
  51. endif()
  52. # Load information for each installed configuration.
  53. get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
  54. file(GLOB CONFIG_FILES "${_DIR}/assimpTargets-*.cmake")
  55. foreach(f ${CONFIG_FILES})
  56. include(${f})
  57. endforeach()
  58. # Loop over all imported files and verify that they actually exist
  59. foreach(target ${_IMPORT_CHECK_TARGETS} )
  60. foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
  61. if(NOT EXISTS "${file}" )
  62. message(FATAL_ERROR "The imported target \"${target}\" references the file
  63. \"${file}\"
  64. but this file does not exist. Possible reasons include:
  65. * The file was deleted, renamed, or moved to another location.
  66. * An install or uninstall procedure did not complete successfully.
  67. * The installation package was faulty and contained
  68. \"${CMAKE_CURRENT_LIST_FILE}\"
  69. but not all the files it references.
  70. ")
  71. endif()
  72. endforeach()
  73. unset(_IMPORT_CHECK_FILES_FOR_${target})
  74. endforeach()
  75. unset(_IMPORT_CHECK_TARGETS)
  76. # This file does not depend on other imported targets which have
  77. # been exported from the same project but in a separate export set.
  78. # Commands beyond this point should not need to know the version.
  79. set(CMAKE_IMPORT_FILE_VERSION)
  80. cmake_policy(POP)