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
68a54e7f
Commit
68a54e7f
authored
Feb 09, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed incorrectly merged patch.
parent
3ef5bfa1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
6 deletions
+21
-6
OpenCVGenConfig.cmake
cmake/OpenCVGenConfig.cmake
+4
-0
OpenCVConfig.cmake.in
cmake/templates/OpenCVConfig.cmake.in
+13
-3
CMakeLists.txt
modules/androidcamera/CMakeLists.txt
+3
-1
CMakeLists.txt
modules/highgui/CMakeLists.txt
+1
-2
No files found.
cmake/OpenCVGenConfig.cmake
View file @
68a54e7f
...
...
@@ -44,6 +44,10 @@ macro(ocv_generate_dependencies_map_configmake suffix configuration)
list
(
GET OPENCV_LIBS_TO_PROCESS 0 __ocv_lib
)
get_target_property
(
__libname
${
__ocv_lib
}
LOCATION_
${
configuration
}
)
get_filename_component
(
__libname
"
${
__libname
}
"
NAME
)
if
(
WIN32
)
string
(
REGEX REPLACE
"[.]dll$"
".lib"
__libname
"
${
__libname
}
"
)
endif
()
set
(
OPENCV_DEPENDENCIES_MAP_
${
suffix
}
"
${
OPENCV_DEPENDENCIES_MAP_
${
suffix
}}
set(OpenCV_
${
__ocv_lib
}
_LIBNAME_
${
suffix
}
\"
${
__libname
}
\"
)
\n
"
)
set
(
OPENCV_DEPENDENCIES_MAP_
${
suffix
}
"
${
OPENCV_DEPENDENCIES_MAP_
${
suffix
}}
set(OpenCV_
${
__ocv_lib
}
_DEPS_
${
suffix
}
${${
__ocv_lib
}
_MODULE_DEPS_
${
suffix
}}
)
\n
"
)
...
...
cmake/templates/OpenCVConfig.cmake.in
View file @
68a54e7f
...
...
@@ -18,7 +18,7 @@
# This file will define the following variables:
# -
# - OpenCV_LIBS : The list of libraries to links against.
# - OpenCV_LIB_DIR : The directory where lib files are. Calling LINK_DIRECTORIES
# - OpenCV_LIB_DIR : The directory
(es)
where lib files are. Calling LINK_DIRECTORIES
# with this path is NOT needed.
# - OpenCV_INCLUDE_DIRS : The OpenCV include directories.
# - OpenCV_COMPUTE_CAPABILITIES : The version of compute capability
...
...
@@ -35,7 +35,6 @@
# - OpenCV_LIB_COMPONENTS
# - OpenCV_USE_MANGLED_PATHS
# - OpenCV_HAVE_ANDROID_CAMERA
# - OpenCV_SOURCE_PATH
#
# =================================================================================================
...
...
@@ -103,7 +102,13 @@ SET(OpenCV2_INCLUDE_DIRS @CMAKE_OPENCV2_INCLUDE_DIRS_CONFIGCMAKE@)
if(OpenCV2_INCLUDE_DIRS)
include_directories(${OpenCV2_INCLUDE_DIRS})
list(APPEND OpenCV_INCLUDE_DIRS ${OpenCV2_INCLUDE_DIRS})
if(MSVC)
set(OpenCV_AddDebugRelease FALSE)
if(MSVC OR CMAKE_GENERATOR MATCHES Xcode)
set(OpenCV_AddDebugRelease TRUE)
endif()
if(OpenCV_AddDebugRelease)
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")
...
...
@@ -247,4 +252,9 @@ endif()
# ==============================================================
# Compatibility stuff
# ==============================================================
if(CMAKE_BUILD_TYPE MATCHES "Debug")
SET(OpenCV_LIB_DIR ${OpenCV_LIB_DIR_DBG} ${OpenCV_3RDPARTY_LIB_DIR_DBG})
else()
SET(OpenCV_LIB_DIR ${OpenCV_LIB_DIR_OPT} ${OpenCV_3RDPARTY_LIB_DIR_OPT})
endif()
set(OpenCV_LIBRARIES ${OpenCV_LIBS})
modules/androidcamera/CMakeLists.txt
View file @
68a54e7f
...
...
@@ -20,12 +20,14 @@ if(ANDROID_SOURCE_TREE)
endif
()
if
(
NOT
"
${
ANDROID_VERSION
}
"
STREQUAL
""
)
SET
(
BUILD_ANDROID_CAMERA_WRAPPER ON
)
set
(
ANDROID_VERSION
"
${
ANDROID_VERSION
}
"
CACHE INTERNAL
"Version of Android source tree"
)
endif
()
endif
()
set
(
BUILD_ANDROID_CAMERA_WRAPPER
${
BUILD_ANDROID_CAMERA_WRAPPER
}
CACHE INTERNAL
"Build new wrapper for Android"
)
MARK_AS_ADVANCED
(
ANDROID_SOURCE_TREE
)
# process wrapper libs
if
(
BUILD_ANDROID_CAMERA_WRAPPER
)
if
(
BUILD_ANDROID_CAMERA_WRAPPER
)
add_subdirectory
(
camera_wrapper
)
else
()
file
(
GLOB camera_wrappers
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../../3rdparty/lib/
${
ANDROID_NDK_ABI_NAME
}
/libnative_camera_r*.so"
)
...
...
modules/highgui/CMakeLists.txt
View file @
68a54e7f
...
...
@@ -210,8 +210,7 @@ if(APPLE)
endif
()
endif
(
APPLE
)
set
(
OPENCV_MODULE_ANDROIDCAMERA
"ON"
)
#TODO: fix it
if
(
HAVE_opencv_androidcamera AND OPENCV_MODULE_ANDROIDCAMERA
)
if
(
HAVE_opencv_androidcamera
)
set
(
highgui_srcs
${
highgui_srcs
}
src/cap_android.cpp
)
add_definitions
(
-DHAVE_ANDROID_NATIVE_CAMERA
)
#TODO: remove this line
endif
()
...
...
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