Oscar Fuentes | 5c6bf65 | 2009-03-06 01:16:52 +0000 | [diff] [blame] | 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) |
Oscar Fuentes | f681475 | 2010-02-15 15:17:05 +0000 | [diff] [blame] | 7 | if(NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt) |
Daniel Dunbar | 50a5aa1 | 2010-01-22 18:14:27 +0000 | [diff] [blame] | 8 | add_subdirectory(${entry}) |
| 9 | endif() |
Oscar Fuentes | 5c6bf65 | 2009-03-06 01:16:52 +0000 | [diff] [blame] | 10 | endif() |
| 11 | endforeach(entry) |