Add support for adding custom OpenCV modules.
This commit is contained in:
parent
087db2949a
commit
a954d3630f
@ -286,6 +286,10 @@ set(OPENCV_CONFIG_FILE_INCLUDE_DIR "${CMAKE_BINARY_DIR}/" CACHE PATH "Where to c
|
|||||||
add_definitions(-DHAVE_CVCONFIG_H)
|
add_definitions(-DHAVE_CVCONFIG_H)
|
||||||
ocv_include_directories(${OPENCV_CONFIG_FILE_INCLUDE_DIR})
|
ocv_include_directories(${OPENCV_CONFIG_FILE_INCLUDE_DIR})
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
# Path for additional modules
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
set(OPENCV_EXTRA_MODULES_PATH "" CACHE PATH "Where to look for additional OpenCV modules")
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
# Autodetect if we are in a GIT repository
|
# Autodetect if we are in a GIT repository
|
||||||
|
@ -2,4 +2,4 @@ if(NOT OPENCV_MODULES_PATH)
|
|||||||
set(OPENCV_MODULES_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
|
set(OPENCV_MODULES_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
ocv_glob_modules(${OPENCV_MODULES_PATH})
|
ocv_glob_modules(${OPENCV_MODULES_PATH} ${OPENCV_EXTRA_MODULES_PATH})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user