mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
11 lines
297 B
CMake
11 lines
297 B
CMake
file(GLOB ocvmodules RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/*")
|
|
if(ocvmodules)
|
|
list(SORT ocvmodules)
|
|
endif()
|
|
|
|
foreach(mod ${ocvmodules})
|
|
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${mod}/CMakeLists.txt")
|
|
add_subdirectory("${mod}")
|
|
endif()
|
|
endforeach()
|