OpenCVModules.cmake 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. #----------------------------------------------------------------
  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 zlib libjpeg-turbo libtiff libwebp libopenjp2 libpng ittnotify opencv_core opencv_imgproc opencv_imgcodecs opencv_videoio opencv_highgui)
  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 zlib
  48. add_library(zlib STATIC IMPORTED)
  49. # Create imported target libjpeg-turbo
  50. add_library(libjpeg-turbo STATIC IMPORTED)
  51. # Create imported target libtiff
  52. add_library(libtiff STATIC IMPORTED)
  53. set_target_properties(libtiff PROPERTIES
  54. INTERFACE_LINK_LIBRARIES "zlib"
  55. )
  56. # Create imported target libwebp
  57. add_library(libwebp STATIC IMPORTED)
  58. # Create imported target libopenjp2
  59. add_library(libopenjp2 STATIC IMPORTED)
  60. set_target_properties(libopenjp2 PROPERTIES
  61. INTERFACE_COMPILE_DEFINITIONS "OPJ_STATIC"
  62. INTERFACE_LINK_LIBRARIES "\$<LINK_ONLY:m>"
  63. )
  64. # Create imported target libpng
  65. add_library(libpng STATIC IMPORTED)
  66. set_target_properties(libpng PROPERTIES
  67. INTERFACE_LINK_LIBRARIES "zlib"
  68. )
  69. # Create imported target ittnotify
  70. add_library(ittnotify STATIC IMPORTED)
  71. set_target_properties(ittnotify PROPERTIES
  72. INTERFACE_LINK_LIBRARIES "dl"
  73. )
  74. # Create imported target opencv_core
  75. add_library(opencv_core STATIC IMPORTED)
  76. set_target_properties(opencv_core PROPERTIES
  77. INTERFACE_LINK_LIBRARIES "\$<LINK_ONLY:dl>;\$<LINK_ONLY:m>;\$<LINK_ONLY:pthread>;\$<LINK_ONLY:rt>;\$<LINK_ONLY:zlib>;\$<LINK_ONLY:ittnotify>"
  78. )
  79. # Create imported target opencv_imgproc
  80. add_library(opencv_imgproc STATIC IMPORTED)
  81. set_target_properties(opencv_imgproc PROPERTIES
  82. INTERFACE_LINK_LIBRARIES "opencv_core;opencv_core;\$<LINK_ONLY:dl>;\$<LINK_ONLY:m>;\$<LINK_ONLY:pthread>;\$<LINK_ONLY:rt>"
  83. )
  84. # Create imported target opencv_imgcodecs
  85. add_library(opencv_imgcodecs STATIC IMPORTED)
  86. set_target_properties(opencv_imgcodecs PROPERTIES
  87. INTERFACE_LINK_LIBRARIES "opencv_core;opencv_imgproc;opencv_core;opencv_imgproc;\$<LINK_ONLY:dl>;\$<LINK_ONLY:m>;\$<LINK_ONLY:pthread>;\$<LINK_ONLY:rt>;\$<LINK_ONLY:libjpeg-turbo>;\$<LINK_ONLY:libwebp>;\$<LINK_ONLY:libpng>;\$<LINK_ONLY:libtiff>;\$<LINK_ONLY:libopenjp2>;\$<LINK_ONLY:zlib>"
  88. )
  89. # Create imported target opencv_videoio
  90. add_library(opencv_videoio STATIC IMPORTED)
  91. set_target_properties(opencv_videoio PROPERTIES
  92. INTERFACE_LINK_LIBRARIES "opencv_core;opencv_imgproc;opencv_imgcodecs;opencv_core;opencv_imgproc;opencv_imgcodecs;\$<LINK_ONLY:dl>;\$<LINK_ONLY:m>;\$<LINK_ONLY:pthread>;\$<LINK_ONLY:rt>"
  93. )
  94. # Create imported target opencv_highgui
  95. add_library(opencv_highgui STATIC IMPORTED)
  96. set_target_properties(opencv_highgui PROPERTIES
  97. INTERFACE_LINK_LIBRARIES "opencv_core;opencv_imgproc;opencv_imgcodecs;opencv_videoio;opencv_core;opencv_imgproc;opencv_imgcodecs;opencv_videoio;\$<LINK_ONLY:dl>;\$<LINK_ONLY:m>;\$<LINK_ONLY:pthread>;\$<LINK_ONLY:rt>"
  98. )
  99. if(CMAKE_VERSION VERSION_LESS 2.8.12)
  100. message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
  101. endif()
  102. # Load information for each installed configuration.
  103. get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
  104. file(GLOB CONFIG_FILES "${_DIR}/OpenCVModules-*.cmake")
  105. foreach(f ${CONFIG_FILES})
  106. include(${f})
  107. endforeach()
  108. # Cleanup temporary variables.
  109. set(_IMPORT_PREFIX)
  110. # Loop over all imported files and verify that they actually exist
  111. foreach(target ${_IMPORT_CHECK_TARGETS} )
  112. foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
  113. if(NOT EXISTS "${file}" )
  114. message(FATAL_ERROR "The imported target \"${target}\" references the file
  115. \"${file}\"
  116. but this file does not exist. Possible reasons include:
  117. * The file was deleted, renamed, or moved to another location.
  118. * An install or uninstall procedure did not complete successfully.
  119. * The installation package was faulty and contained
  120. \"${CMAKE_CURRENT_LIST_FILE}\"
  121. but not all the files it references.
  122. ")
  123. endif()
  124. endforeach()
  125. unset(_IMPORT_CHECK_FILES_FOR_${target})
  126. endforeach()
  127. unset(_IMPORT_CHECK_TARGETS)
  128. # This file does not depend on other imported targets which have
  129. # been exported from the same project but in a separate export set.
  130. # Commands beyond this point should not need to know the version.
  131. set(CMAKE_IMPORT_FILE_VERSION)
  132. cmake_policy(POP)