blob: 415530e33236788ac26f296f6b88e4b2acdf6129 [file] [log] [blame]
Oscar Fuentes5c6bf652009-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)
Oscar Fuentesf6814752010-02-15 15:17:05 +00007 if(NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt)
Daniel Dunbar50a5aa12010-01-22 18:14:27 +00008 add_subdirectory(${entry})
9 endif()
Oscar Fuentes5c6bf652009-03-06 01:16:52 +000010 endif()
11endforeach(entry)