blob: dac637335bd14d7fdf058d6c7892605958c602bc [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)
Chandler Carrutheb2dea22012-06-27 00:30:08 +00007 if((NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt) AND
8 (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libcxx))
Daniel Dunbar50a5aa12010-01-22 18:14:27 +00009 add_subdirectory(${entry})
10 endif()
Oscar Fuentes5c6bf652009-03-06 01:16:52 +000011 endif()
12endforeach(entry)