OpenCVModules.cmake 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # Generated by CMake 3.3.1
  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 opencv_world)
  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. set(CMAKE_IMPORT_FILE_VERSION)
  27. cmake_policy(POP)
  28. return()
  29. endif()
  30. if(NOT "${_targetsDefined}" STREQUAL "")
  31. message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n")
  32. endif()
  33. unset(_targetsDefined)
  34. unset(_targetsNotDefined)
  35. unset(_expectedTargets)
  36. # Compute the installation prefix relative to this file.
  37. get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
  38. get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
  39. get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
  40. get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
  41. # Create imported target opencv_world
  42. add_library(opencv_world SHARED IMPORTED)
  43. # Load information for each installed configuration.
  44. get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
  45. file(GLOB CONFIG_FILES "${_DIR}/OpenCVModules-*.cmake")
  46. foreach(f ${CONFIG_FILES})
  47. include(${f})
  48. endforeach()
  49. # Cleanup temporary variables.
  50. set(_IMPORT_PREFIX)
  51. # Loop over all imported files and verify that they actually exist
  52. foreach(target ${_IMPORT_CHECK_TARGETS} )
  53. foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
  54. if(NOT EXISTS "${file}" )
  55. message(FATAL_ERROR "The imported target \"${target}\" references the file
  56. \"${file}\"
  57. but this file does not exist. Possible reasons include:
  58. * The file was deleted, renamed, or moved to another location.
  59. * An install or uninstall procedure did not complete successfully.
  60. * The installation package was faulty and contained
  61. \"${CMAKE_CURRENT_LIST_FILE}\"
  62. but not all the files it references.
  63. ")
  64. endif()
  65. endforeach()
  66. unset(_IMPORT_CHECK_FILES_FOR_${target})
  67. endforeach()
  68. unset(_IMPORT_CHECK_TARGETS)
  69. # This file does not depend on other imported targets which have
  70. # been exported from the same project but in a separate export set.
  71. # Commands beyond this point should not need to know the version.
  72. set(CMAKE_IMPORT_FILE_VERSION)
  73. cmake_policy(POP)