@@ -0,0 +1,10 @@
|
||||
# Add every subdirectory inside examples/ that contains a CMakeLists.txt
|
||||
file(GLOB children LIST_DIRECTORIES true RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*")
|
||||
|
||||
foreach(child ${children})
|
||||
if(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${child}" AND
|
||||
EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${child}/CMakeLists.txt")
|
||||
message(STATUS "Adding example: ${child}")
|
||||
add_subdirectory("${child}")
|
||||
endif()
|
||||
endforeach()
|
||||
Reference in New Issue
Block a user