blob: 1a286db9ec660be163198b9536ec544727b4ce7d [file] [log] [blame]
Oscar Fuentes7b6742b2009-03-06 01:16:52 +00001# 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.
4file(GLOB entries *)
5foreach(entry ${entries})
6 if(IS_DIRECTORY ${entry} AND EXISTS ${entry}/CMakeLists.txt)
Daniel Dunbarcaad8092010-01-22 18:14:27 +00007 if(NOT (${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt))
8 add_subdirectory(${entry})
9 endif()
Oscar Fuentes7b6742b2009-03-06 01:16:52 +000010 endif()
11endforeach(entry)