Files
Bausager bd2edea8ef
Sync public mirror / sync (push) Failing after 24s
p.238 in NNFS
2025-12-23 14:47:40 +01:00

11 lines
417 B
CMake

# 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()