1 # Discover the projects that use CMake in the subdirectories. 2 # Note that explicit cmake invocation is required every time a new project is 3 # added or removed. 4 file(GLOB entries *) 5 foreach(entry ${entries}) 6 if(IS_DIRECTORY ${entry} AND EXISTS ${entry}/CMakeLists.txt) 7 if(NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt) 8 add_subdirectory(${entry}) 9 endif() 10 endif() 11 endforeach(entry) 12