Added possibility to make subfolders in modules' folders "src/".
authorLeonid Beynenson <Leonid.Beynenson@itseez.com>
Tue, 28 Aug 2012 13:44:33 +0000 (17:44 +0400)
committerLeonid Beynenson <Leonid.Beynenson@itseez.com>
Tue, 28 Aug 2012 13:44:33 +0000 (17:44 +0400)
cmake/OpenCVModule.cmake

index 018a467..72c7fc8 100644 (file)
@@ -422,8 +422,8 @@ endmacro()
 # Usage:
 # ocv_glob_module_sources(<extra sources&headers in the same format as used in ocv_set_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")