Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
4f97b20f
Commit
4f97b20f
authored
Feb 19, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactored OpenCVConfig.cmake generation code.
parent
f83aa74b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
20 deletions
+15
-20
OpenCVGenConfig.cmake
cmake/OpenCVGenConfig.cmake
+0
-0
OpenCVConfig.cmake.in
cmake/templates/OpenCVConfig.cmake.in
+15
-20
No files found.
cmake/OpenCVGenConfig.cmake
View file @
4f97b20f
This diff is collapsed.
Click to expand it.
cmake/templates/OpenCVConfig.cmake.in
View file @
4f97b20f
...
...
@@ -13,10 +13,9 @@
#
# FIND_PACKAGE(OpenCV REQUIRED core highgui)
#
# If the module
found then OPENCV_<MODULE>_FOUND is set
.
# 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 libraries to links against.
# - OpenCV_LIB_DIR : The directory(es) where lib files are. Calling LINK_DIRECTORIES
# with this path is NOT needed.
...
...
@@ -36,19 +35,19 @@
# - OpenCV_USE_MANGLED_PATHS
# - OpenCV_HAVE_ANDROID_CAMERA
#
# ===================================================================================
==============
# ===================================================================================
# Version Compute Capability from which OpenCV has been compiled is remembered
set(OpenCV_COMPUTE_CAPABILITIES @OpenCV_CUDA_CC_CONFIGMAKE@)
set(OpenCV_COMPUTE_CAPABILITIES @OpenCV_CUDA_CC_CONFIG
C
MAKE@)
# Android API level from which OpenCV has been compiled is remembered
set(OpenCV_ANDROID_NATIVE_API_LEVEL @OpenCV_ANDROID_NATIVE_API_LEVEL_CONFIGMAKE@)
set(OpenCV_ANDROID_NATIVE_API_LEVEL @OpenCV_ANDROID_NATIVE_API_LEVEL_CONFIG
C
MAKE@)
# Some additional settings are required if OpenCV is built as static libs
set(OpenCV_SHARED @BUILD_SHARED_LIBS@)
# Enables mangled install paths, that help with side by side installs
set(OpenCV_USE_MANGLED_PATHS @OpenCV_USE_MANGLED_PATHS@)
set(OpenCV_USE_MANGLED_PATHS @OpenCV_USE_MANGLED_PATHS
_CONFIGCMAKE
@)
# Extract the directory where *this* file has been installed (determined at cmake run-time)
get_filename_component(OpenCV_CONFIG_PATH "${CMAKE_CURRENT_LIST_FILE}" PATH)
...
...
@@ -64,7 +63,7 @@ set(OpenCV_HAVE_ANDROID_CAMERA @HAVE_opencv_androidcamera@)
# ======================================================
# Provide the include directories to the caller
set(OpenCV_INCLUDE_DIRS @
CMAKE
_INCLUDE_DIRS_CONFIGCMAKE@)
set(OpenCV_INCLUDE_DIRS @
OpenCV
_INCLUDE_DIRS_CONFIGCMAKE@)
include_directories(${OpenCV_INCLUDE_DIRS})
# ======================================================
...
...
@@ -72,10 +71,10 @@ include_directories(${OpenCV_INCLUDE_DIRS})
# ======================================================
# Provide the libs directories to the caller
set(OpenCV_LIB_DIR_OPT @
CMAKE
_LIB_DIRS_CONFIGCMAKE@)
set(OpenCV_LIB_DIR_DBG @
CMAKE
_LIB_DIRS_CONFIGCMAKE@)
set(OpenCV_3RDPARTY_LIB_DIR_OPT @
CMAKE
_3RDPARTY_LIB_DIRS_CONFIGCMAKE@)
set(OpenCV_3RDPARTY_LIB_DIR_DBG @
CMAKE
_3RDPARTY_LIB_DIRS_CONFIGCMAKE@)
set(OpenCV_LIB_DIR_OPT @
OpenCV
_LIB_DIRS_CONFIGCMAKE@)
set(OpenCV_LIB_DIR_DBG @
OpenCV
_LIB_DIRS_CONFIGCMAKE@)
set(OpenCV_3RDPARTY_LIB_DIR_OPT @
OpenCV
_3RDPARTY_LIB_DIRS_CONFIGCMAKE@)
set(OpenCV_3RDPARTY_LIB_DIR_DBG @
OpenCV
_3RDPARTY_LIB_DIRS_CONFIGCMAKE@)
# ======================================================
# Version variables:
...
...
@@ -89,7 +88,7 @@ SET(OpenCV_VERSION_PATCH @OPENCV_VERSION_PATCH@)
# Link libraries: e.g. libopencv_core.so, opencv_imgproc220d.lib, etc...
# ====================================================================
SET(OpenCV_LIB_COMPONENTS @OPENCV_MODULES_CONFIGMAKE@)
SET(OpenCV_LIB_COMPONENTS @OPENCV_MODULES_CONFIG
C
MAKE@)
@OPENCV_DEPENDENCIES_MAP_OPT@
...
...
@@ -98,17 +97,13 @@ SET(OpenCV_LIB_COMPONENTS @OPENCV_MODULES_CONFIGMAKE@)
# ==============================================================
# Extra include directories, needed by OpenCV 2 new structure
# ==============================================================
SET(OpenCV2_INCLUDE_DIRS @
CMAKE_OPEN
CV2_INCLUDE_DIRS_CONFIGCMAKE@)
SET(OpenCV2_INCLUDE_DIRS @
Open
CV2_INCLUDE_DIRS_CONFIGCMAKE@)
if(OpenCV2_INCLUDE_DIRS)
include_directories(${OpenCV2_INCLUDE_DIRS})
list(APPEND OpenCV_INCLUDE_DIRS ${OpenCV2_INCLUDE_DIRS})
set(OpenCV_AddDebugRelease FALSE)
if(MSVC OR CMAKE_GENERATOR MATCHES Xcode)
set(OpenCV_AddDebugRelease TRUE)
endif()
if(OpenCV_AddDebugRelease)
set(OpenCV_ADD_DEBUG_RELEASE @OpenCV_ADD_DEBUG_RELEASE_CONFIGCMAKE@)
if(OpenCV_ADD_DEBUG_RELEASE)
set(OpenCV_LIB_DIR_OPT "${OpenCV_LIB_DIR_OPT}/Release")
set(OpenCV_LIB_DIR_DBG "${OpenCV_LIB_DIR_DBG}/Debug")
set(OpenCV_3RDPARTY_LIB_DIR_OPT "${OpenCV_3RDPARTY_LIB_DIR_OPT}/Release")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment