Skip to content

Commit dc2a08b

Browse files
rusloNeroBurner
authored andcommitted
hunter: Add OPENCV_WITH_EXTRA_MODULES option
1 parent fa4af9e commit dc2a08b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,10 @@ ocv_include_directories(${OPENCV_CONFIG_FILE_INCLUDE_DIR})
659659
# Path for additional modules
660660
# ----------------------------------------------------------------------------
661661
set(OPENCV_EXTRA_MODULES_PATH "" CACHE PATH "Where to look for additional OpenCV modules (can be ;-separated list of paths)")
662+
if(OPENCV_WITH_EXTRA_MODULES AND HUNTER_ENABLED)
663+
hunter_add_package(OpenCV-Extra)
664+
set(OPENCV_EXTRA_MODULES_PATH "${OPENCV-EXTRA_ROOT}/modules")
665+
endif()
662666

663667
# ----------------------------------------------------------------------------
664668
# Autodetect if we are in a GIT repository

0 commit comments

Comments
 (0)