OpenCASCADEDrawTargets.cmake 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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 TKDraw TKTopTest TKOpenGlTest TKViewerTest TKXSDRAW TKDCAF TKXDEDRAW TKTObjDRAW TKQADraw TKIVtkDraw)
  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 TKDraw
  48. add_library(TKDraw SHARED IMPORTED)
  49. set_target_properties(TKDraw PROPERTIES
  50. INTERFACE_LINK_LIBRARIES "TKernel;TKG2d;TKGeomBase;TKG3d;TKMath;TKBRep;TKGeomAlgo;TKTopAlgo;TKShHealing;TKMesh;TKService;TKHLR;/usr/local/lib/libtcl8.6.so;/usr/local/lib/libtk8.6.so;X11;pthread;rt;stdc++"
  51. )
  52. # Create imported target TKTopTest
  53. add_library(TKTopTest SHARED IMPORTED)
  54. set_target_properties(TKTopTest PROPERTIES
  55. INTERFACE_LINK_LIBRARIES "TKBRep;TKGeomAlgo;TKTopAlgo;TKernel;TKMath;TKBO;TKG2d;TKG3d;TKDraw;TKHLR;TKGeomBase;TKMesh;TKService;TKV3d;TKFillet;TKPrim;TKBool;TKOffset;TKFeat;TKShHealing"
  56. )
  57. # Create imported target TKOpenGlTest
  58. add_library(TKOpenGlTest SHARED IMPORTED)
  59. set_target_properties(TKOpenGlTest PROPERTIES
  60. INTERFACE_LINK_LIBRARIES "TKernel;TKMath;TKDraw;TKOpenGl;TKService;TKV3d;TKViewerTest;GL"
  61. )
  62. # Create imported target TKViewerTest
  63. add_library(TKViewerTest SHARED IMPORTED)
  64. set_target_properties(TKViewerTest PROPERTIES
  65. INTERFACE_LINK_LIBRARIES "TKGeomBase;TKFillet;TKBRep;TKTopAlgo;TKHLR;TKernel;TKMath;TKService;TKShHealing;TKBool;TKPrim;TKGeomAlgo;TKG2d;TKTopTest;TKG3d;TKOffset;TKMesh;TKV3d;TKDraw;/usr/local/lib/libtcl8.6.so;X11;/home/chan/temp/FastCAELinuxExtlibSource/freetype-2.11.1/install/lib/libfreetype.so"
  66. )
  67. # Create imported target TKXSDRAW
  68. add_library(TKXSDRAW SHARED IMPORTED)
  69. set_target_properties(TKXSDRAW PROPERTIES
  70. 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"
  71. )
  72. # Create imported target TKDCAF
  73. add_library(TKDCAF SHARED IMPORTED)
  74. set_target_properties(TKDCAF PROPERTIES
  75. 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"
  76. )
  77. # Create imported target TKXDEDRAW
  78. add_library(TKXDEDRAW SHARED IMPORTED)
  79. set_target_properties(TKXDEDRAW PROPERTIES
  80. 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"
  81. )
  82. # Create imported target TKTObjDRAW
  83. add_library(TKTObjDRAW SHARED IMPORTED)
  84. set_target_properties(TKTObjDRAW PROPERTIES
  85. INTERFACE_LINK_LIBRARIES "TKernel;TKCDF;TKLCAF;TKTObj;TKMath;TKDraw;TKDCAF;TKBinTObj;TKXmlTObj"
  86. )
  87. # Create imported target TKQADraw
  88. add_library(TKQADraw SHARED IMPORTED)
  89. set_target_properties(TKQADraw PROPERTIES
  90. 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"
  91. )
  92. # Create imported target TKIVtkDraw
  93. add_library(TKIVtkDraw SHARED IMPORTED)
  94. set_target_properties(TKIVtkDraw PROPERTIES
  95. 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;/usr/local/lib/libtcl8.6.so;X11"
  96. )
  97. if(CMAKE_VERSION VERSION_LESS 2.8.12)
  98. message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
  99. endif()
  100. # Load information for each installed configuration.
  101. get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
  102. file(GLOB CONFIG_FILES "${_DIR}/OpenCASCADEDrawTargets-*.cmake")
  103. foreach(f ${CONFIG_FILES})
  104. include(${f})
  105. endforeach()
  106. # Cleanup temporary variables.
  107. set(_IMPORT_PREFIX)
  108. # Loop over all imported files and verify that they actually exist
  109. foreach(target ${_IMPORT_CHECK_TARGETS} )
  110. foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
  111. if(NOT EXISTS "${file}" )
  112. message(FATAL_ERROR "The imported target \"${target}\" references the file
  113. \"${file}\"
  114. but this file does not exist. Possible reasons include:
  115. * The file was deleted, renamed, or moved to another location.
  116. * An install or uninstall procedure did not complete successfully.
  117. * The installation package was faulty and contained
  118. \"${CMAKE_CURRENT_LIST_FILE}\"
  119. but not all the files it references.
  120. ")
  121. endif()
  122. endforeach()
  123. unset(_IMPORT_CHECK_FILES_FOR_${target})
  124. endforeach()
  125. unset(_IMPORT_CHECK_TARGETS)
  126. # Make sure the targets which have been exported in some other
  127. # export set exist.
  128. unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
  129. 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" )
  130. if(NOT TARGET "${_target}" )
  131. set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets "${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets} ${_target}")
  132. endif()
  133. endforeach()
  134. if(DEFINED ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
  135. if(CMAKE_FIND_PACKAGE_NAME)
  136. set( ${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
  137. 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}")
  138. else()
  139. message(FATAL_ERROR "The following imported targets are referenced, but are missing: ${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets}")
  140. endif()
  141. endif()
  142. unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
  143. # Commands beyond this point should not need to know the version.
  144. set(CMAKE_IMPORT_FILE_VERSION)
  145. cmake_policy(POP)