OpenCASCADEDrawTargets.cmake 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. # Generated by CMake
  2. if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
  3. message(FATAL_ERROR "CMake >= 2.8.0 required")
  4. endif()
  5. if(CMAKE_VERSION VERSION_LESS "2.8.3")
  6. message(FATAL_ERROR "CMake >= 2.8.3 required")
  7. endif()
  8. cmake_policy(PUSH)
  9. cmake_policy(VERSION 2.8.3...3.22)
  10. #----------------------------------------------------------------
  11. # Generated CMake target import file.
  12. #----------------------------------------------------------------
  13. # Commands may need to know the format version.
  14. set(CMAKE_IMPORT_FILE_VERSION 1)
  15. # Protect against multiple inclusion, which would fail when already imported targets are added once more.
  16. set(_cmake_targets_defined "")
  17. set(_cmake_targets_not_defined "")
  18. set(_cmake_expected_targets "")
  19. foreach(_cmake_expected_target IN ITEMS TKDraw TKTopTest TKOpenGlTest TKViewerTest TKXSDRAW TKDCAF TKXDEDRAW TKTObjDRAW TKQADraw TKIVtkDraw)
  20. list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
  21. if(TARGET "${_cmake_expected_target}")
  22. list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
  23. else()
  24. list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}")
  25. endif()
  26. endforeach()
  27. unset(_cmake_expected_target)
  28. if(_cmake_targets_defined STREQUAL _cmake_expected_targets)
  29. unset(_cmake_targets_defined)
  30. unset(_cmake_targets_not_defined)
  31. unset(_cmake_expected_targets)
  32. unset(CMAKE_IMPORT_FILE_VERSION)
  33. cmake_policy(POP)
  34. return()
  35. endif()
  36. if(NOT _cmake_targets_defined STREQUAL "")
  37. string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}")
  38. string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}")
  39. message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n")
  40. endif()
  41. unset(_cmake_targets_defined)
  42. unset(_cmake_targets_not_defined)
  43. unset(_cmake_expected_targets)
  44. # Compute the installation prefix relative to this file.
  45. get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
  46. get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
  47. if(_IMPORT_PREFIX STREQUAL "/")
  48. set(_IMPORT_PREFIX "")
  49. endif()
  50. # Create imported target TKDraw
  51. add_library(TKDraw SHARED IMPORTED)
  52. set_target_properties(TKDraw PROPERTIES
  53. INTERFACE_LINK_LIBRARIES "TKernel;TKG2d;TKGeomBase;TKG3d;TKMath;TKBRep;TKGeomAlgo;TKTopAlgo;TKShHealing;TKMesh;TKService;TKHLR;E:/OCC_7.5.0/3rdparty/tcl_tk/install/Tcl/lib/tcl86.lib;E:/OCC_7.5.0/3rdparty/tcl_tk/install/Tcl/lib/tk86.lib;gdi32.lib;advapi32.lib;user32.lib;shell32.lib"
  54. )
  55. # Create imported target TKTopTest
  56. add_library(TKTopTest SHARED IMPORTED)
  57. set_target_properties(TKTopTest PROPERTIES
  58. INTERFACE_LINK_LIBRARIES "TKBRep;TKGeomAlgo;TKTopAlgo;TKernel;TKMath;TKBO;TKG2d;TKG3d;TKDraw;TKHLR;TKGeomBase;TKMesh;TKService;TKV3d;TKFillet;TKPrim;TKBool;TKOffset;TKFeat;TKShHealing"
  59. )
  60. # Create imported target TKOpenGlTest
  61. add_library(TKOpenGlTest SHARED IMPORTED)
  62. set_target_properties(TKOpenGlTest PROPERTIES
  63. INTERFACE_LINK_LIBRARIES "TKernel;TKMath;TKDraw;TKOpenGl;TKService;TKV3d;TKViewerTest;opengl32.lib"
  64. )
  65. # Create imported target TKViewerTest
  66. add_library(TKViewerTest SHARED IMPORTED)
  67. set_target_properties(TKViewerTest PROPERTIES
  68. INTERFACE_LINK_LIBRARIES "TKGeomBase;TKFillet;TKBRep;TKTopAlgo;TKHLR;TKernel;TKMath;TKService;TKShHealing;TKBool;TKPrim;TKGeomAlgo;TKG2d;TKTopTest;TKG3d;TKOffset;TKMesh;TKV3d;TKDraw;E:/OCC_7.5.0/3rdparty/tcl_tk/install/Tcl/lib/tcl86.lib;user32.lib;gdi32.lib;E:/OCC_7.5.0/3rdparty/freetype/install/lib/freetype.lib"
  69. )
  70. # Create imported target TKXSDRAW
  71. add_library(TKXSDRAW SHARED IMPORTED)
  72. set_target_properties(TKXSDRAW PROPERTIES
  73. INTERFACE_LINK_LIBRARIES "TKBRep;TKV3d;TKMath;TKernel;TKService;TKXSBase;TKMeshVS;TKG3d;TKViewerTest;TKG2d;TKSTEPBase;TKTopAlgo;TKGeomBase;TKGeomAlgo;TKMesh;TKDraw;TKSTEP;TKIGES;TKSTL;TKVRML;TKLCAF;TKDCAF;TKXCAF;TKRWMesh"
  74. )
  75. # Create imported target TKDCAF
  76. add_library(TKDCAF SHARED IMPORTED)
  77. set_target_properties(TKDCAF PROPERTIES
  78. INTERFACE_LINK_LIBRARIES "TKGeomBase;TKBRep;TKGeomAlgo;TKernel;TKMath;TKG2d;TKG3d;TKDraw;TKCDF;TKV3d;TKService;TKLCAF;TKFillet;TKTopAlgo;TKPrim;TKBool;TKBO;TKCAF;TKVCAF;TKViewerTest;TKStd;TKStdL;TKBin;TKBinL;TKXml;TKXmlL"
  79. )
  80. # Create imported target TKXDEDRAW
  81. add_library(TKXDEDRAW SHARED IMPORTED)
  82. set_target_properties(TKXDEDRAW PROPERTIES
  83. INTERFACE_LINK_LIBRARIES "TKCDF;TKBRep;TKXCAF;TKernel;TKIGES;TKV3d;TKMath;TKService;TKXSBase;TKG2d;TKCAF;TKVCAF;TKDraw;TKTopAlgo;TKLCAF;TKG3d;TKSTEPBase;TKSTEP;TKMesh;TKXSDRAW;TKXDEIGES;TKXDESTEP;TKDCAF;TKViewerTest;TKBinXCAF;TKXmlXCAF;TKVRML"
  84. )
  85. # Create imported target TKTObjDRAW
  86. add_library(TKTObjDRAW SHARED IMPORTED)
  87. set_target_properties(TKTObjDRAW PROPERTIES
  88. INTERFACE_LINK_LIBRARIES "TKernel;TKCDF;TKLCAF;TKTObj;TKMath;TKDraw;TKDCAF;TKBinTObj;TKXmlTObj"
  89. )
  90. # Create imported target TKQADraw
  91. add_library(TKQADraw SHARED IMPORTED)
  92. set_target_properties(TKQADraw PROPERTIES
  93. INTERFACE_LINK_LIBRARIES "TKBRep;TKMath;TKernel;TKService;TKG2d;TKDraw;TKV3d;TKGeomBase;TKG3d;TKViewerTest;TKCDF;TKDCAF;TKLCAF;TKFillet;TKTopAlgo;TKHLR;TKBool;TKGeomAlgo;TKPrim;TKBO;TKShHealing;TKOffset;TKFeat;TKCAF;TKVCAF;TKIGES;TKXSBase;TKMesh;TKXCAF;TKBinXCAF;TKSTEP;TKSTEPBase;TKXDESTEP;TKXSDRAW;TKSTL;TKXml;TKTObj;TKXmlL;TKBin;TKBinL;TKStd;TKStdL;gdi32.lib;advapi32.lib;user32.lib"
  94. )
  95. # Create imported target TKIVtkDraw
  96. add_library(TKIVtkDraw SHARED IMPORTED)
  97. set_target_properties(TKIVtkDraw PROPERTIES
  98. INTERFACE_LINK_LIBRARIES "TKernel;TKBRep;TKDraw;TKG2d;TKG3d;TKGeomAlgo;TKGeomBase;TKMath;TKMesh;TKService;TKTopAlgo;TKV3d;TKOpenGl;TKIVtk;VTK::IOImage;VTK::ImagingCore;VTK::InteractionStyle;VTK::RenderingOpenGL2;VTK::RenderingGL2PSOpenGL2;E:/OCC_7.5.0/3rdparty/tcl_tk/install/Tcl/lib/tcl86.lib;user32.lib"
  99. )
  100. if(CMAKE_VERSION VERSION_LESS 2.8.12)
  101. message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
  102. endif()
  103. # Load information for each installed configuration.
  104. file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/OpenCASCADEDrawTargets-*.cmake")
  105. foreach(_cmake_config_file IN LISTS _cmake_config_files)
  106. include("${_cmake_config_file}")
  107. endforeach()
  108. unset(_cmake_config_file)
  109. unset(_cmake_config_files)
  110. # Cleanup temporary variables.
  111. set(_IMPORT_PREFIX)
  112. # Loop over all imported files and verify that they actually exist
  113. foreach(_cmake_target IN LISTS _cmake_import_check_targets)
  114. foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
  115. if(NOT EXISTS "${_cmake_file}")
  116. message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
  117. \"${_cmake_file}\"
  118. but this file does not exist. Possible reasons include:
  119. * The file was deleted, renamed, or moved to another location.
  120. * An install or uninstall procedure did not complete successfully.
  121. * The installation package was faulty and contained
  122. \"${CMAKE_CURRENT_LIST_FILE}\"
  123. but not all the files it references.
  124. ")
  125. endif()
  126. endforeach()
  127. unset(_cmake_file)
  128. unset("_cmake_import_check_files_for_${_cmake_target}")
  129. endforeach()
  130. unset(_cmake_target)
  131. unset(_cmake_import_check_targets)
  132. # Make sure the targets which have been exported in some other
  133. # export set exist.
  134. unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
  135. foreach(_target "TKernel" "TKG2d" "TKGeomBase" "TKG3d" "TKMath" "TKBRep" "TKGeomAlgo" "TKTopAlgo" "TKShHealing" "TKMesh" "TKService" "TKHLR" "TKBO" "TKV3d" "TKFillet" "TKPrim" "TKBool" "TKOffset" "TKFeat" "TKOpenGl" "TKXSBase" "TKMeshVS" "TKSTEPBase" "TKSTEP" "TKIGES" "TKSTL" "TKVRML" "TKLCAF" "TKXCAF" "TKRWMesh" "TKCDF" "TKCAF" "TKVCAF" "TKStd" "TKStdL" "TKBin" "TKBinL" "TKXml" "TKXmlL" "TKXDEIGES" "TKXDESTEP" "TKBinXCAF" "TKXmlXCAF" "TKTObj" "TKBinTObj" "TKXmlTObj" "TKIVtk" )
  136. if(NOT TARGET "${_target}" )
  137. set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets "${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets} ${_target}")
  138. endif()
  139. endforeach()
  140. if(DEFINED ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
  141. if(CMAKE_FIND_PACKAGE_NAME)
  142. set( ${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
  143. 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}")
  144. else()
  145. message(FATAL_ERROR "The following imported targets are referenced, but are missing: ${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets}")
  146. endif()
  147. endif()
  148. unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
  149. # Commands beyond this point should not need to know the version.
  150. set(CMAKE_IMPORT_FILE_VERSION)
  151. cmake_policy(POP)