mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 11:10:21 +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()
|