Updating opencv module definition in cmake

This commit is contained in:
Andrey Kamaev
2012-01-24 16:55:47 +00:00
parent 2395654cbf
commit 13f4e70e95
6 changed files with 127 additions and 217 deletions

View File

@@ -116,3 +116,14 @@ macro(status text)
endif()
endmacro()
# Setup include path for OpenCV headers for specified modules
macro(include_opencv_modules)
foreach(d ${ARGN})
if(d MATCHES "opencv_")
string(REPLACE "opencv_" "${OpenCV_SOURCE_DIR}/modules/" d_dir ${d})
if (EXISTS "${d_dir}/include")
include_directories("${d_dir}/include")
endif()
endif()
endforeach()
endmacro()