添加OpenCV静态库
parent
13825dc847
commit
ac50ca8f91
Binary file not shown.
Binary file not shown.
@ -0,0 +1,15 @@
|
||||
set(OpenCV_VERSION 4.1.0)
|
||||
set(PACKAGE_VERSION ${OpenCV_VERSION})
|
||||
|
||||
set(PACKAGE_VERSION_EXACT False)
|
||||
set(PACKAGE_VERSION_COMPATIBLE False)
|
||||
|
||||
if(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION)
|
||||
set(PACKAGE_VERSION_EXACT True)
|
||||
set(PACKAGE_VERSION_COMPATIBLE True)
|
||||
endif()
|
||||
|
||||
if(PACKAGE_FIND_VERSION_MAJOR EQUAL 4
|
||||
AND PACKAGE_FIND_VERSION VERSION_LESS PACKAGE_VERSION)
|
||||
set(PACKAGE_VERSION_COMPATIBLE True)
|
||||
endif()
|
@ -0,0 +1,315 @@
|
||||
# ===================================================================================
|
||||
# The OpenCV CMake configuration file
|
||||
#
|
||||
# ** File generated automatically, do not modify **
|
||||
#
|
||||
# Usage from an external project:
|
||||
# In your CMakeLists.txt, add these lines:
|
||||
#
|
||||
# find_package(OpenCV REQUIRED)
|
||||
# include_directories(${OpenCV_INCLUDE_DIRS}) # Not needed for CMake >= 2.8.11
|
||||
# target_link_libraries(MY_TARGET_NAME ${OpenCV_LIBS})
|
||||
#
|
||||
# Or you can search for specific OpenCV modules:
|
||||
#
|
||||
# find_package(OpenCV REQUIRED core videoio)
|
||||
#
|
||||
# You can also mark OpenCV components as optional:
|
||||
|
||||
# find_package(OpenCV REQUIRED core OPTIONAL_COMPONENTS viz)
|
||||
#
|
||||
# If the module is found then OPENCV_<MODULE>_FOUND is set to TRUE.
|
||||
#
|
||||
# This file will define the following variables:
|
||||
# - OpenCV_LIBS : The list of all imported targets for OpenCV modules.
|
||||
# - OpenCV_INCLUDE_DIRS : The OpenCV include directories.
|
||||
# - OpenCV_COMPUTE_CAPABILITIES : The version of compute capability.
|
||||
# - OpenCV_ANDROID_NATIVE_API_LEVEL : Minimum required level of Android API.
|
||||
# - OpenCV_VERSION : The version of this OpenCV build: "4.1.0"
|
||||
# - OpenCV_VERSION_MAJOR : Major version part of OpenCV_VERSION: "4"
|
||||
# - OpenCV_VERSION_MINOR : Minor version part of OpenCV_VERSION: "1"
|
||||
# - OpenCV_VERSION_PATCH : Patch version part of OpenCV_VERSION: "0"
|
||||
# - OpenCV_VERSION_STATUS : Development status of this build: ""
|
||||
#
|
||||
# Advanced variables:
|
||||
# - OpenCV_SHARED : Use OpenCV as shared library
|
||||
# - OpenCV_INSTALL_PATH : OpenCV location
|
||||
# - OpenCV_LIB_COMPONENTS : Present OpenCV modules list
|
||||
# - OpenCV_USE_MANGLED_PATHS : Mangled OpenCV path flag
|
||||
#
|
||||
# Deprecated variables:
|
||||
# - OpenCV_VERSION_TWEAK : Always "0"
|
||||
#
|
||||
# ===================================================================================
|
||||
|
||||
# ======================================================
|
||||
# Version variables:
|
||||
# ======================================================
|
||||
SET(OpenCV_VERSION 4.1.0)
|
||||
SET(OpenCV_VERSION_MAJOR 4)
|
||||
SET(OpenCV_VERSION_MINOR 1)
|
||||
SET(OpenCV_VERSION_PATCH 0)
|
||||
SET(OpenCV_VERSION_TWEAK 0)
|
||||
SET(OpenCV_VERSION_STATUS "")
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
if(NOT CMAKE_VERSION VERSION_LESS 2.8.8
|
||||
AND OpenCV_FIND_COMPONENTS # prevent excessive output
|
||||
)
|
||||
# HANDLE_COMPONENTS was introduced in CMake 2.8.8
|
||||
list(APPEND _OpenCV_FPHSA_ARGS HANDLE_COMPONENTS)
|
||||
# The missing components will be handled by the FindPackageHandleStandardArgs
|
||||
# module.
|
||||
set(_OpenCV_HANDLE_COMPONENTS_MANUALLY FALSE)
|
||||
else()
|
||||
# The missing components will be handled by this config.
|
||||
set(_OpenCV_HANDLE_COMPONENTS_MANUALLY TRUE)
|
||||
endif()
|
||||
|
||||
# Extract directory name from full path of the file currently being processed.
|
||||
# Note that CMake 2.8.3 introduced CMAKE_CURRENT_LIST_DIR. We reimplement it
|
||||
# for older versions of CMake to support these as well.
|
||||
if(CMAKE_VERSION VERSION_LESS "2.8.3")
|
||||
get_filename_component(CMAKE_CURRENT_LIST_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
endif()
|
||||
|
||||
# Extract the directory where *this* file has been installed (determined at cmake run-time)
|
||||
# Get the absolute path with no ../.. relative marks, to eliminate implicit linker warnings
|
||||
set(OpenCV_CONFIG_PATH "${CMAKE_CURRENT_LIST_DIR}")
|
||||
get_filename_component(OpenCV_INSTALL_PATH "${OpenCV_CONFIG_PATH}/../../../" REALPATH)
|
||||
|
||||
# Search packages for host system instead of packages for target system.
|
||||
# in case of cross compilation this macro should be defined by toolchain file
|
||||
if(NOT COMMAND find_host_package)
|
||||
macro(find_host_package)
|
||||
find_package(${ARGN})
|
||||
endmacro()
|
||||
endif()
|
||||
if(NOT COMMAND find_host_program)
|
||||
macro(find_host_program)
|
||||
find_program(${ARGN})
|
||||
endmacro()
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Some additional settings are required if OpenCV is built as static libs
|
||||
set(OpenCV_SHARED OFF)
|
||||
|
||||
# Enables mangled install paths, that help with side by side installs
|
||||
set(OpenCV_USE_MANGLED_PATHS FALSE)
|
||||
|
||||
set(OpenCV_LIB_COMPONENTS opencv_calib3d;opencv_core;opencv_dnn;opencv_features2d;opencv_flann;opencv_gapi;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;opencv_objdetect;opencv_photo;opencv_stitching;opencv_video;opencv_videoio;opencv_world)
|
||||
set(OpenCV_INCLUDE_DIRS "${OpenCV_INSTALL_PATH}/include")
|
||||
|
||||
if(NOT TARGET opencv_core)
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/OpenCVModules${OpenCV_MODULES_SUFFIX}.cmake)
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_VERSION VERSION_LESS "2.8.11")
|
||||
# Target property INTERFACE_INCLUDE_DIRECTORIES available since 2.8.11:
|
||||
# * http://www.cmake.org/cmake/help/v2.8.11/cmake.html#prop_tgt:INTERFACE_INCLUDE_DIRECTORIES
|
||||
foreach(__component ${OpenCV_LIB_COMPONENTS})
|
||||
if(TARGET ${__component})
|
||||
set_target_properties(
|
||||
${__component}
|
||||
PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${OpenCV_INCLUDE_DIRS}"
|
||||
)
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
|
||||
if(NOT DEFINED OPENCV_MAP_IMPORTED_CONFIG)
|
||||
if(CMAKE_GENERATOR MATCHES "Visual Studio" OR MSVC)
|
||||
# OpenCV supports Debug and Release builds only.
|
||||
# But MSVS has 'RelWithDebInfo' 'MinSizeRel' configurations for applications.
|
||||
# By default CMake maps these configuration on the first available (Debug) which is wrong.
|
||||
# Non-Debug build of Application can't be used with OpenCV Debug build (ABI mismatch problem)
|
||||
# Add mapping of RelWithDebInfo and MinSizeRel to Release here
|
||||
set(OPENCV_MAP_IMPORTED_CONFIG "RELWITHDEBINFO=!Release;MINSIZEREL=!Release")
|
||||
endif()
|
||||
endif()
|
||||
set(__remap_warnings "")
|
||||
macro(ocv_map_imported_config target)
|
||||
if(DEFINED OPENCV_MAP_IMPORTED_CONFIG) # list, "RELWITHDEBINFO=Release;MINSIZEREL=Release"
|
||||
get_target_property(__available_configurations ${target} IMPORTED_CONFIGURATIONS)
|
||||
foreach(remap ${OPENCV_MAP_IMPORTED_CONFIG})
|
||||
if(remap MATCHES "^(.+)=(!?)([^!]+)$")
|
||||
set(__remap_config "${CMAKE_MATCH_1}")
|
||||
set(__final_config "${CMAKE_MATCH_3}")
|
||||
set(__force_flag "${CMAKE_MATCH_2}")
|
||||
string(TOUPPER "${__final_config}" __final_config_upper)
|
||||
string(TOUPPER "${__remap_config}" __remap_config_upper)
|
||||
if(";${__available_configurations};" MATCHES ";${__remap_config_upper};" AND NOT "${__force_flag}" STREQUAL "!")
|
||||
# configuration already exists, skip remap
|
||||
set(__remap_warnings "${__remap_warnings}... Configuration already exists ${__remap_config} (skip mapping ${__remap_config} => ${__final_config}) (available configurations: ${__available_configurations})\n")
|
||||
continue()
|
||||
endif()
|
||||
if(__available_configurations AND NOT ";${__available_configurations};" MATCHES ";${__final_config_upper};")
|
||||
# skip, configuration is not available
|
||||
if(NOT "${__force_flag}" STREQUAL "!")
|
||||
set(__remap_warnings "${__remap_warnings}... Configuration is not available '${__final_config}' for ${target}, build may fail (available configurations: ${__available_configurations})\n")
|
||||
endif()
|
||||
endif()
|
||||
set_target_properties(${target} PROPERTIES
|
||||
MAP_IMPORTED_CONFIG_${__remap_config} "${__final_config}"
|
||||
)
|
||||
else()
|
||||
message(WARNING "Invalid entry of OPENCV_MAP_IMPORTED_CONFIG: '${remap}' (${OPENCV_MAP_IMPORTED_CONFIG})")
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
|
||||
# ==============================================================
|
||||
# Form list of modules (components) to find
|
||||
# ==============================================================
|
||||
if(NOT OpenCV_FIND_COMPONENTS)
|
||||
set(OpenCV_FIND_COMPONENTS ${OpenCV_LIB_COMPONENTS})
|
||||
list(REMOVE_ITEM OpenCV_FIND_COMPONENTS opencv_java)
|
||||
if(GTest_FOUND OR GTEST_FOUND)
|
||||
list(REMOVE_ITEM OpenCV_FIND_COMPONENTS opencv_ts)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(OpenCV_WORLD_COMPONENTS opencv_calib3d;opencv_core;opencv_dnn;opencv_features2d;opencv_flann;opencv_gapi;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;opencv_objdetect;opencv_photo;opencv_stitching;opencv_video;opencv_videoio)
|
||||
|
||||
# expand short module names and see if requested components exist
|
||||
foreach(__cvcomponent ${OpenCV_FIND_COMPONENTS})
|
||||
# Store the name of the original component so we can set the
|
||||
# OpenCV_<component>_FOUND variable which can be checked by the user.
|
||||
set (__original_cvcomponent ${__cvcomponent})
|
||||
if(NOT __cvcomponent MATCHES "^opencv_")
|
||||
set(__cvcomponent opencv_${__cvcomponent})
|
||||
endif()
|
||||
list(FIND OpenCV_LIB_COMPONENTS ${__cvcomponent} __cvcomponentIdx)
|
||||
if(__cvcomponentIdx LESS 0)
|
||||
if(_OpenCV_HANDLE_COMPONENTS_MANUALLY)
|
||||
# Either the component is required or the user did not set any components at
|
||||
# all. In the latter case, the OpenCV_FIND_REQUIRED_<component> variable
|
||||
# will not be defined since it is not set by this config. So let's assume
|
||||
# the implicitly set components are always required.
|
||||
if(NOT DEFINED OpenCV_FIND_REQUIRED_${__original_cvcomponent} OR
|
||||
OpenCV_FIND_REQUIRED_${__original_cvcomponent})
|
||||
message(FATAL_ERROR "${__cvcomponent} is required but was not found")
|
||||
elseif(NOT OpenCV_FIND_QUIETLY)
|
||||
# The component was marked as optional using OPTIONAL_COMPONENTS
|
||||
message(WARNING "Optional component ${__cvcomponent} was not found")
|
||||
endif()
|
||||
endif(_OpenCV_HANDLE_COMPONENTS_MANUALLY)
|
||||
#indicate that module is NOT found
|
||||
string(TOUPPER "${__cvcomponent}" __cvcomponentUP)
|
||||
set(${__cvcomponentUP}_FOUND "${__cvcomponentUP}_FOUND-NOTFOUND")
|
||||
set(OpenCV_${__original_cvcomponent}_FOUND FALSE)
|
||||
else()
|
||||
# Not using list(APPEND) here, because OpenCV_LIBS may not exist yet.
|
||||
# Also not clearing OpenCV_LIBS anywhere, so that multiple calls
|
||||
# to find_package(OpenCV) with different component lists add up.
|
||||
set(OpenCV_LIBS ${OpenCV_LIBS} "${__cvcomponent}")
|
||||
#indicate that module is found
|
||||
string(TOUPPER "${__cvcomponent}" __cvcomponentUP)
|
||||
set(${__cvcomponentUP}_FOUND 1)
|
||||
set(OpenCV_${__original_cvcomponent}_FOUND TRUE)
|
||||
endif()
|
||||
if(OpenCV_SHARED AND ";${OpenCV_WORLD_COMPONENTS};" MATCHES ";${__cvcomponent};" AND NOT TARGET ${__cvcomponent})
|
||||
get_target_property(__implib_dbg opencv_world IMPORTED_IMPLIB_DEBUG)
|
||||
get_target_property(__implib_release opencv_world IMPORTED_IMPLIB_RELEASE)
|
||||
get_target_property(__location_dbg opencv_world IMPORTED_LOCATION_DEBUG)
|
||||
get_target_property(__location_release opencv_world IMPORTED_LOCATION_RELEASE)
|
||||
get_target_property(__include_dir opencv_world INTERFACE_INCLUDE_DIRECTORIES)
|
||||
add_library(${__cvcomponent} SHARED IMPORTED)
|
||||
set_target_properties(${__cvcomponent} PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${__include_dir}")
|
||||
if(__location_dbg)
|
||||
set_property(TARGET ${__cvcomponent} APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
||||
set_target_properties(${__cvcomponent} PROPERTIES
|
||||
IMPORTED_IMPLIB_DEBUG "${__implib_dbg}"
|
||||
IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG ""
|
||||
IMPORTED_LOCATION_DEBUG "${__location_dbg}"
|
||||
)
|
||||
endif()
|
||||
if(__location_release)
|
||||
set_property(TARGET ${__cvcomponent} APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
||||
set_target_properties(${__cvcomponent} PROPERTIES
|
||||
IMPORTED_IMPLIB_RELEASE "${__implib_release}"
|
||||
IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE ""
|
||||
IMPORTED_LOCATION_RELEASE "${__location_release}"
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
if(TARGET ${__cvcomponent})
|
||||
ocv_map_imported_config(${__cvcomponent})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
if(__remap_warnings AND NOT OpenCV_FIND_QUIETLY)
|
||||
message("OpenCV: configurations remap warnings:\n${__remap_warnings}OpenCV: Check variable OPENCV_MAP_IMPORTED_CONFIG=${OPENCV_MAP_IMPORTED_CONFIG}")
|
||||
endif()
|
||||
|
||||
# ==============================================================
|
||||
# Compatibility stuff
|
||||
# ==============================================================
|
||||
set(OpenCV_LIBRARIES ${OpenCV_LIBS})
|
||||
|
||||
#
|
||||
# Some macros for samples
|
||||
#
|
||||
macro(ocv_check_dependencies)
|
||||
set(OCV_DEPENDENCIES_FOUND TRUE)
|
||||
foreach(d ${ARGN})
|
||||
if(NOT TARGET ${d})
|
||||
message(WARNING "OpenCV: Can't resolve dependency: ${d}")
|
||||
set(OCV_DEPENDENCIES_FOUND FALSE)
|
||||
break()
|
||||
endif()
|
||||
endforeach()
|
||||
endmacro()
|
||||
|
||||
# adds include directories in such way that directories from the OpenCV source tree go first
|
||||
function(ocv_include_directories)
|
||||
set(__add_before "")
|
||||
file(TO_CMAKE_PATH "${OpenCV_INSTALL_PATH}" __baseDir)
|
||||
foreach(dir ${ARGN})
|
||||
get_filename_component(__abs_dir "${dir}" ABSOLUTE)
|
||||
if("${__abs_dir}" MATCHES "^${__baseDir}")
|
||||
list(APPEND __add_before "${dir}")
|
||||
else()
|
||||
include_directories(AFTER SYSTEM "${dir}")
|
||||
endif()
|
||||
endforeach()
|
||||
include_directories(BEFORE ${__add_before})
|
||||
endfunction()
|
||||
|
||||
macro(ocv_include_modules)
|
||||
include_directories(BEFORE "${OpenCV_INCLUDE_DIRS}")
|
||||
endmacro()
|
||||
|
||||
macro(ocv_include_modules_recurse)
|
||||
include_directories(BEFORE "${OpenCV_INCLUDE_DIRS}")
|
||||
endmacro()
|
||||
|
||||
macro(ocv_target_link_libraries)
|
||||
target_link_libraries(${ARGN})
|
||||
endmacro()
|
||||
|
||||
# remove all matching elements from the list
|
||||
macro(ocv_list_filterout lst regex)
|
||||
foreach(item ${${lst}})
|
||||
if(item MATCHES "${regex}")
|
||||
list(REMOVE_ITEM ${lst} "${item}")
|
||||
endif()
|
||||
endforeach()
|
||||
endmacro()
|
||||
|
||||
# We do not actually need REQUIRED_VARS to be checked for. Just use the
|
||||
# installation directory for the status.
|
||||
find_package_handle_standard_args(OpenCV REQUIRED_VARS OpenCV_INSTALL_PATH
|
||||
VERSION_VAR OpenCV_VERSION ${_OpenCV_FPHSA_ARGS})
|
@ -0,0 +1,129 @@
|
||||
#----------------------------------------------------------------
|
||||
# Generated CMake target import file for configuration "Debug".
|
||||
#----------------------------------------------------------------
|
||||
|
||||
# Commands may need to know the format version.
|
||||
set(CMAKE_IMPORT_FILE_VERSION 1)
|
||||
|
||||
# Import target "zlib" for configuration "Debug"
|
||||
set_property(TARGET zlib APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
||||
set_target_properties(zlib PROPERTIES
|
||||
IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "C"
|
||||
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/x86/vc14/staticlib/zlibd.lib"
|
||||
)
|
||||
|
||||
list(APPEND _IMPORT_CHECK_TARGETS zlib )
|
||||
list(APPEND _IMPORT_CHECK_FILES_FOR_zlib "${_IMPORT_PREFIX}/x86/vc14/staticlib/zlibd.lib" )
|
||||
|
||||
# Import target "libjpeg-turbo" for configuration "Debug"
|
||||
set_property(TARGET libjpeg-turbo APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
||||
set_target_properties(libjpeg-turbo PROPERTIES
|
||||
IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "C"
|
||||
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/x86/vc14/staticlib/libjpeg-turbod.lib"
|
||||
)
|
||||
|
||||
list(APPEND _IMPORT_CHECK_TARGETS libjpeg-turbo )
|
||||
list(APPEND _IMPORT_CHECK_FILES_FOR_libjpeg-turbo "${_IMPORT_PREFIX}/x86/vc14/staticlib/libjpeg-turbod.lib" )
|
||||
|
||||
# Import target "libtiff" for configuration "Debug"
|
||||
set_property(TARGET libtiff APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
||||
set_target_properties(libtiff PROPERTIES
|
||||
IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "C;CXX"
|
||||
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/x86/vc14/staticlib/libtiffd.lib"
|
||||
)
|
||||
|
||||
list(APPEND _IMPORT_CHECK_TARGETS libtiff )
|
||||
list(APPEND _IMPORT_CHECK_FILES_FOR_libtiff "${_IMPORT_PREFIX}/x86/vc14/staticlib/libtiffd.lib" )
|
||||
|
||||
# Import target "libwebp" for configuration "Debug"
|
||||
set_property(TARGET libwebp APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
||||
set_target_properties(libwebp PROPERTIES
|
||||
IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "C"
|
||||
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/x86/vc14/staticlib/libwebpd.lib"
|
||||
)
|
||||
|
||||
list(APPEND _IMPORT_CHECK_TARGETS libwebp )
|
||||
list(APPEND _IMPORT_CHECK_FILES_FOR_libwebp "${_IMPORT_PREFIX}/x86/vc14/staticlib/libwebpd.lib" )
|
||||
|
||||
# Import target "libjasper" for configuration "Debug"
|
||||
set_property(TARGET libjasper APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
||||
set_target_properties(libjasper PROPERTIES
|
||||
IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "C"
|
||||
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/x86/vc14/staticlib/libjasperd.lib"
|
||||
)
|
||||
|
||||
list(APPEND _IMPORT_CHECK_TARGETS libjasper )
|
||||
list(APPEND _IMPORT_CHECK_FILES_FOR_libjasper "${_IMPORT_PREFIX}/x86/vc14/staticlib/libjasperd.lib" )
|
||||
|
||||
# Import target "libpng" for configuration "Debug"
|
||||
set_property(TARGET libpng APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
||||
set_target_properties(libpng PROPERTIES
|
||||
IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "C"
|
||||
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/x86/vc14/staticlib/libpngd.lib"
|
||||
)
|
||||
|
||||
list(APPEND _IMPORT_CHECK_TARGETS libpng )
|
||||
list(APPEND _IMPORT_CHECK_FILES_FOR_libpng "${_IMPORT_PREFIX}/x86/vc14/staticlib/libpngd.lib" )
|
||||
|
||||
# Import target "IlmImf" for configuration "Debug"
|
||||
set_property(TARGET IlmImf APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
||||
set_target_properties(IlmImf PROPERTIES
|
||||
IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX"
|
||||
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/x86/vc14/staticlib/IlmImfd.lib"
|
||||
)
|
||||
|
||||
list(APPEND _IMPORT_CHECK_TARGETS IlmImf )
|
||||
list(APPEND _IMPORT_CHECK_FILES_FOR_IlmImf "${_IMPORT_PREFIX}/x86/vc14/staticlib/IlmImfd.lib" )
|
||||
|
||||
# Import target "libprotobuf" for configuration "Debug"
|
||||
set_property(TARGET libprotobuf APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
||||
set_target_properties(libprotobuf PROPERTIES
|
||||
IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX"
|
||||
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/x86/vc14/staticlib/libprotobufd.lib"
|
||||
)
|
||||
|
||||
list(APPEND _IMPORT_CHECK_TARGETS libprotobuf )
|
||||
list(APPEND _IMPORT_CHECK_FILES_FOR_libprotobuf "${_IMPORT_PREFIX}/x86/vc14/staticlib/libprotobufd.lib" )
|
||||
|
||||
# Import target "quirc" for configuration "Debug"
|
||||
set_property(TARGET quirc APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
||||
set_target_properties(quirc PROPERTIES
|
||||
IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "C"
|
||||
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/x86/vc14/staticlib/quircd.lib"
|
||||
)
|
||||
|
||||
list(APPEND _IMPORT_CHECK_TARGETS quirc )
|
||||
list(APPEND _IMPORT_CHECK_FILES_FOR_quirc "${_IMPORT_PREFIX}/x86/vc14/staticlib/quircd.lib" )
|
||||
|
||||
# Import target "ittnotify" for configuration "Debug"
|
||||
set_property(TARGET ittnotify APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
||||
set_target_properties(ittnotify PROPERTIES
|
||||
IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "C"
|
||||
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/x86/vc14/staticlib/ittnotifyd.lib"
|
||||
)
|
||||
|
||||
list(APPEND _IMPORT_CHECK_TARGETS ittnotify )
|
||||
list(APPEND _IMPORT_CHECK_FILES_FOR_ittnotify "${_IMPORT_PREFIX}/x86/vc14/staticlib/ittnotifyd.lib" )
|
||||
|
||||
# Import target "ade" for configuration "Debug"
|
||||
set_property(TARGET ade APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
||||
set_target_properties(ade PROPERTIES
|
||||
IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX"
|
||||
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/x86/vc14/staticlib/ade.lib"
|
||||
)
|
||||
|
||||
list(APPEND _IMPORT_CHECK_TARGETS ade )
|
||||
list(APPEND _IMPORT_CHECK_FILES_FOR_ade "${_IMPORT_PREFIX}/x86/vc14/staticlib/ade.lib" )
|
||||
|
||||
# Import target "opencv_world" for configuration "Debug"
|
||||
set_property(TARGET opencv_world APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
||||
set_target_properties(opencv_world PROPERTIES
|
||||
IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX"
|
||||
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/x86/vc14/staticlib/opencv_world410d.lib"
|
||||
)
|
||||
|
||||
list(APPEND _IMPORT_CHECK_TARGETS opencv_world )
|
||||
list(APPEND _IMPORT_CHECK_FILES_FOR_opencv_world "${_IMPORT_PREFIX}/x86/vc14/staticlib/opencv_world410d.lib" )
|
||||
|
||||
# Commands beyond this point should not need to know the version.
|
||||
set(CMAKE_IMPORT_FILE_VERSION)
|
@ -0,0 +1,161 @@
|
||||
# Generated by CMake
|
||||
|
||||
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5)
|
||||
message(FATAL_ERROR "CMake >= 2.6.0 required")
|
||||
endif()
|
||||
cmake_policy(PUSH)
|
||||
cmake_policy(VERSION 2.6)
|
||||
#----------------------------------------------------------------
|
||||
# Generated CMake target import file.
|
||||
#----------------------------------------------------------------
|
||||
|
||||
# Commands may need to know the format version.
|
||||
set(CMAKE_IMPORT_FILE_VERSION 1)
|
||||
|
||||
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
|
||||
set(_targetsDefined)
|
||||
set(_targetsNotDefined)
|
||||
set(_expectedTargets)
|
||||
foreach(_expectedTarget zlib libjpeg-turbo libtiff libwebp libjasper libpng IlmImf libprotobuf quirc ittnotify ade ocv.3rdparty.dshow ocv.3rdparty.msmf opencv_world)
|
||||
list(APPEND _expectedTargets ${_expectedTarget})
|
||||
if(NOT TARGET ${_expectedTarget})
|
||||
list(APPEND _targetsNotDefined ${_expectedTarget})
|
||||
endif()
|
||||
if(TARGET ${_expectedTarget})
|
||||
list(APPEND _targetsDefined ${_expectedTarget})
|
||||
endif()
|
||||
endforeach()
|
||||
if("${_targetsDefined}" STREQUAL "${_expectedTargets}")
|
||||
unset(_targetsDefined)
|
||||
unset(_targetsNotDefined)
|
||||
unset(_expectedTargets)
|
||||
set(CMAKE_IMPORT_FILE_VERSION)
|
||||
cmake_policy(POP)
|
||||
return()
|
||||
endif()
|
||||
if(NOT "${_targetsDefined}" STREQUAL "")
|
||||
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n")
|
||||
endif()
|
||||
unset(_targetsDefined)
|
||||
unset(_targetsNotDefined)
|
||||
unset(_expectedTargets)
|
||||
|
||||
|
||||
# Compute the installation prefix relative to this file.
|
||||
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||
if(_IMPORT_PREFIX STREQUAL "/")
|
||||
set(_IMPORT_PREFIX "")
|
||||
endif()
|
||||
|
||||
# Create imported target zlib
|
||||
add_library(zlib STATIC IMPORTED)
|
||||
|
||||
# Create imported target libjpeg-turbo
|
||||
add_library(libjpeg-turbo STATIC IMPORTED)
|
||||
|
||||
# Create imported target libtiff
|
||||
add_library(libtiff STATIC IMPORTED)
|
||||
|
||||
set_target_properties(libtiff PROPERTIES
|
||||
INTERFACE_LINK_LIBRARIES "zlib"
|
||||
)
|
||||
|
||||
# Create imported target libwebp
|
||||
add_library(libwebp STATIC IMPORTED)
|
||||
|
||||
# Create imported target libjasper
|
||||
add_library(libjasper STATIC IMPORTED)
|
||||
|
||||
# Create imported target libpng
|
||||
add_library(libpng STATIC IMPORTED)
|
||||
|
||||
set_target_properties(libpng PROPERTIES
|
||||
INTERFACE_LINK_LIBRARIES "zlib"
|
||||
)
|
||||
|
||||
# Create imported target IlmImf
|
||||
add_library(IlmImf STATIC IMPORTED)
|
||||
|
||||
set_target_properties(IlmImf PROPERTIES
|
||||
INTERFACE_LINK_LIBRARIES "zlib"
|
||||
)
|
||||
|
||||
# Create imported target libprotobuf
|
||||
add_library(libprotobuf STATIC IMPORTED)
|
||||
|
||||
# Create imported target quirc
|
||||
add_library(quirc STATIC IMPORTED)
|
||||
|
||||
# Create imported target ittnotify
|
||||
add_library(ittnotify STATIC IMPORTED)
|
||||
|
||||
# Create imported target ade
|
||||
add_library(ade STATIC IMPORTED)
|
||||
|
||||
# Create imported target ocv.3rdparty.dshow
|
||||
add_library(ocv.3rdparty.dshow INTERFACE IMPORTED)
|
||||
|
||||
set_target_properties(ocv.3rdparty.dshow PROPERTIES
|
||||
INTERFACE_COMPILE_DEFINITIONS "HAVE_DSHOW"
|
||||
INTERFACE_INCLUDE_DIRECTORIES ""
|
||||
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES ""
|
||||
)
|
||||
|
||||
# Create imported target ocv.3rdparty.msmf
|
||||
add_library(ocv.3rdparty.msmf INTERFACE IMPORTED)
|
||||
|
||||
set_target_properties(ocv.3rdparty.msmf PROPERTIES
|
||||
INTERFACE_COMPILE_DEFINITIONS "HAVE_MSMF;HAVE_MSMF_DXVA"
|
||||
INTERFACE_INCLUDE_DIRECTORIES ""
|
||||
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES ""
|
||||
)
|
||||
|
||||
# Create imported target opencv_world
|
||||
add_library(opencv_world STATIC IMPORTED)
|
||||
|
||||
set_target_properties(opencv_world PROPERTIES
|
||||
INTERFACE_LINK_LIBRARIES "\$<LINK_ONLY:libprotobuf>;\$<LINK_ONLY:ade>;\$<LINK_ONLY:zlib>;\$<LINK_ONLY:libjpeg-turbo>;\$<LINK_ONLY:libwebp>;\$<LINK_ONLY:libpng>;\$<LINK_ONLY:libtiff>;\$<LINK_ONLY:libjasper>;\$<LINK_ONLY:IlmImf>;\$<LINK_ONLY:comctl32>;\$<LINK_ONLY:gdi32>;\$<LINK_ONLY:ole32>;\$<LINK_ONLY:setupapi>;\$<LINK_ONLY:ws2_32>;\$<LINK_ONLY:zlib>;\$<LINK_ONLY:ittnotify>;\$<LINK_ONLY:ocv.3rdparty.dshow>;\$<LINK_ONLY:ocv.3rdparty.msmf>;\$<LINK_ONLY:quirc>"
|
||||
)
|
||||
|
||||
if(CMAKE_VERSION VERSION_LESS 3.0.0)
|
||||
message(FATAL_ERROR "This file relies on consumers using CMake 3.0.0 or greater.")
|
||||
endif()
|
||||
|
||||
# Load information for each installed configuration.
|
||||
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
file(GLOB CONFIG_FILES "${_DIR}/OpenCVModules-*.cmake")
|
||||
foreach(f ${CONFIG_FILES})
|
||||
include(${f})
|
||||
endforeach()
|
||||
|
||||
# Cleanup temporary variables.
|
||||
set(_IMPORT_PREFIX)
|
||||
|
||||
# Loop over all imported files and verify that they actually exist
|
||||
foreach(target ${_IMPORT_CHECK_TARGETS} )
|
||||
foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
|
||||
if(NOT EXISTS "${file}" )
|
||||
message(FATAL_ERROR "The imported target \"${target}\" references the file
|
||||
\"${file}\"
|
||||
but this file does not exist. Possible reasons include:
|
||||
* The file was deleted, renamed, or moved to another location.
|
||||
* An install or uninstall procedure did not complete successfully.
|
||||
* The installation package was faulty and contained
|
||||
\"${CMAKE_CURRENT_LIST_FILE}\"
|
||||
but not all the files it references.
|
||||
")
|
||||
endif()
|
||||
endforeach()
|
||||
unset(_IMPORT_CHECK_FILES_FOR_${target})
|
||||
endforeach()
|
||||
unset(_IMPORT_CHECK_TARGETS)
|
||||
|
||||
# This file does not depend on other imported targets which have
|
||||
# been exported from the same project but in a separate export set.
|
||||
|
||||
# Commands beyond this point should not need to know the version.
|
||||
set(CMAKE_IMPORT_FILE_VERSION)
|
||||
cmake_policy(POP)
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue