415530e33236788ac26f296f6b88e4b2acdf6129
[oota-llvm.git] / projects / CMakeLists.txt
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)