OpenCASCADEDataExchangeTargets.cmake 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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 TKXSBase TKSTEPBase TKSTEPAttr TKSTEP209 TKSTEP TKIGES TKXCAF TKXDEIGES TKXDESTEP TKSTL TKVRML TKXmlXCAF TKBinXCAF TKRWMesh)
  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 TKXSBase
  48. add_library(TKXSBase SHARED IMPORTED)
  49. set_target_properties(TKXSBase PROPERTIES
  50. INTERFACE_LINK_LIBRARIES "TKBRep;TKernel;TKMath;TKG2d;TKG3d;TKTopAlgo;TKGeomBase;TKShHealing"
  51. )
  52. # Create imported target TKSTEPBase
  53. add_library(TKSTEPBase SHARED IMPORTED)
  54. set_target_properties(TKSTEPBase PROPERTIES
  55. INTERFACE_LINK_LIBRARIES "TKernel;TKXSBase;TKMath"
  56. )
  57. # Create imported target TKSTEPAttr
  58. add_library(TKSTEPAttr SHARED IMPORTED)
  59. set_target_properties(TKSTEPAttr PROPERTIES
  60. INTERFACE_LINK_LIBRARIES "TKernel;TKXSBase;TKSTEPBase"
  61. )
  62. # Create imported target TKSTEP209
  63. add_library(TKSTEP209 SHARED IMPORTED)
  64. set_target_properties(TKSTEP209 PROPERTIES
  65. INTERFACE_LINK_LIBRARIES "TKernel;TKXSBase;TKSTEPBase"
  66. )
  67. # Create imported target TKSTEP
  68. add_library(TKSTEP SHARED IMPORTED)
  69. set_target_properties(TKSTEP PROPERTIES
  70. INTERFACE_LINK_LIBRARIES "TKernel;TKSTEPAttr;TKSTEP209;TKSTEPBase;TKBRep;TKMath;TKG2d;TKShHealing;TKTopAlgo;TKG3d;TKGeomBase;TKGeomAlgo;TKXSBase"
  71. )
  72. # Create imported target TKIGES
  73. add_library(TKIGES SHARED IMPORTED)
  74. set_target_properties(TKIGES PROPERTIES
  75. INTERFACE_LINK_LIBRARIES "TKBRep;TKernel;TKMath;TKTopAlgo;TKShHealing;TKG2d;TKG3d;TKGeomBase;TKGeomAlgo;TKPrim;TKBool;TKXSBase"
  76. )
  77. # Create imported target TKXCAF
  78. add_library(TKXCAF SHARED IMPORTED)
  79. set_target_properties(TKXCAF PROPERTIES
  80. INTERFACE_LINK_LIBRARIES "TKBRep;TKernel;TKMath;TKService;TKG2d;TKTopAlgo;TKV3d;TKCDF;TKLCAF;TKG3d;TKCAF;TKVCAF"
  81. )
  82. # Create imported target TKXDEIGES
  83. add_library(TKXDEIGES SHARED IMPORTED)
  84. set_target_properties(TKXDEIGES PROPERTIES
  85. INTERFACE_LINK_LIBRARIES "TKBRep;TKernel;TKMath;TKXSBase;TKCDF;TKLCAF;TKG2d;TKG3d;TKXCAF;TKIGES"
  86. )
  87. # Create imported target TKXDESTEP
  88. add_library(TKXDESTEP SHARED IMPORTED)
  89. set_target_properties(TKXDESTEP PROPERTIES
  90. INTERFACE_LINK_LIBRARIES "TKBRep;TKSTEPAttr;TKernel;TKMath;TKXSBase;TKTopAlgo;TKG2d;TKCAF;TKSTEPBase;TKCDF;TKLCAF;TKG3d;TKXCAF;TKSTEP;TKShHealing"
  91. )
  92. # Create imported target TKSTL
  93. add_library(TKSTL SHARED IMPORTED)
  94. set_target_properties(TKSTL PROPERTIES
  95. INTERFACE_LINK_LIBRARIES "TKernel;TKMath;TKBRep;TKG2d;TKG3d;TKTopAlgo"
  96. )
  97. # Create imported target TKVRML
  98. add_library(TKVRML SHARED IMPORTED)
  99. set_target_properties(TKVRML PROPERTIES
  100. INTERFACE_LINK_LIBRARIES "TKBRep;TKTopAlgo;TKMath;TKGeomBase;TKernel;TKPrim;TKG2d;TKG3d;TKMesh;TKHLR;TKService;TKGeomAlgo;TKV3d;TKLCAF;TKXCAF"
  101. )
  102. # Create imported target TKXmlXCAF
  103. add_library(TKXmlXCAF SHARED IMPORTED)
  104. set_target_properties(TKXmlXCAF PROPERTIES
  105. INTERFACE_LINK_LIBRARIES "TKXmlL;TKBRep;TKCDF;TKMath;TKernel;TKService;TKG2d;TKGeomBase;TKCAF;TKG3d;TKLCAF;TKXCAF;TKXml"
  106. )
  107. # Create imported target TKBinXCAF
  108. add_library(TKBinXCAF SHARED IMPORTED)
  109. set_target_properties(TKBinXCAF PROPERTIES
  110. INTERFACE_LINK_LIBRARIES "TKBRep;TKXCAF;TKMath;TKService;TKernel;TKBinL;TKG2d;TKCAF;TKCDF;TKG3d;TKLCAF;TKBin"
  111. )
  112. # Create imported target TKRWMesh
  113. add_library(TKRWMesh SHARED IMPORTED)
  114. set_target_properties(TKRWMesh PROPERTIES
  115. INTERFACE_LINK_LIBRARIES "TKernel;TKMath;TKMesh;TKXCAF;TKLCAF;TKV3d;TKBRep;TKG3d;TKService"
  116. )
  117. if(CMAKE_VERSION VERSION_LESS 2.8.12)
  118. message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
  119. endif()
  120. # Load information for each installed configuration.
  121. get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
  122. file(GLOB CONFIG_FILES "${_DIR}/OpenCASCADEDataExchangeTargets-*.cmake")
  123. foreach(f ${CONFIG_FILES})
  124. include(${f})
  125. endforeach()
  126. # Cleanup temporary variables.
  127. set(_IMPORT_PREFIX)
  128. # Loop over all imported files and verify that they actually exist
  129. foreach(target ${_IMPORT_CHECK_TARGETS} )
  130. foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
  131. if(NOT EXISTS "${file}" )
  132. message(FATAL_ERROR "The imported target \"${target}\" references the file
  133. \"${file}\"
  134. but this file does not exist. Possible reasons include:
  135. * The file was deleted, renamed, or moved to another location.
  136. * An install or uninstall procedure did not complete successfully.
  137. * The installation package was faulty and contained
  138. \"${CMAKE_CURRENT_LIST_FILE}\"
  139. but not all the files it references.
  140. ")
  141. endif()
  142. endforeach()
  143. unset(_IMPORT_CHECK_FILES_FOR_${target})
  144. endforeach()
  145. unset(_IMPORT_CHECK_TARGETS)
  146. # Make sure the targets which have been exported in some other
  147. # export set exist.
  148. unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
  149. foreach(_target "TKBRep" "TKernel" "TKMath" "TKG2d" "TKG3d" "TKTopAlgo" "TKGeomBase" "TKShHealing" "TKGeomAlgo" "TKPrim" "TKBool" "TKService" "TKV3d" "TKCDF" "TKLCAF" "TKCAF" "TKVCAF" "TKMesh" "TKHLR" "TKXmlL" "TKXml" "TKBinL" "TKBin" )
  150. if(NOT TARGET "${_target}" )
  151. set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets "${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets} ${_target}")
  152. endif()
  153. endforeach()
  154. if(DEFINED ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
  155. if(CMAKE_FIND_PACKAGE_NAME)
  156. set( ${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
  157. set( ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "The following imported targets are referenced, but are missing: ${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets}")
  158. else()
  159. message(FATAL_ERROR "The following imported targets are referenced, but are missing: ${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets}")
  160. endif()
  161. endif()
  162. unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
  163. # Commands beyond this point should not need to know the version.
  164. set(CMAKE_IMPORT_FILE_VERSION)
  165. cmake_policy(POP)