From 8dcf52c90b1340b9aadd3c8b7eae50302efb7b4c Mon Sep 17 00:00:00 2001 From: Leonid Beynenson Date: Tue, 28 Aug 2012 17:44:33 +0400 Subject: [PATCH] Added possibility to make subfolders in modules' folders "src/". --- cmake/OpenCVModule.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/OpenCVModule.cmake b/cmake/OpenCVModule.cmake index 018a467..72c7fc8 100644 --- a/cmake/OpenCVModule.cmake +++ b/cmake/OpenCVModule.cmake @@ -422,8 +422,8 @@ endmacro() # Usage: # ocv_glob_module_sources() macro(ocv_glob_module_sources) - file(GLOB lib_srcs "src/*.cpp") - file(GLOB lib_int_hdrs "src/*.hpp" "src/*.h") + file(GLOB_RECURSE lib_srcs "src/*.cpp") + file(GLOB_RECURSE lib_int_hdrs "src/*.hpp" "src/*.h") file(GLOB lib_hdrs "include/opencv2/${name}/*.hpp" "include/opencv2/${name}/*.h") file(GLOB lib_hdrs_detail "include/opencv2/${name}/detail/*.hpp" "include/opencv2/${name}/detail/*.h") -- 2.7.4