mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
70997406e4
suitable for building as a whole-project. llvm-svn: 159241
13 lines
485 B
CMake
13 lines
485 B
CMake
# Discover the projects that use CMake in the subdirectories.
|
|
# Note that explicit cmake invocation is required every time a new project is
|
|
# added or removed.
|
|
file(GLOB entries *)
|
|
foreach(entry ${entries})
|
|
if(IS_DIRECTORY ${entry} AND EXISTS ${entry}/CMakeLists.txt)
|
|
if((NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt) AND
|
|
(NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libcxx))
|
|
add_subdirectory(${entry})
|
|
endif()
|
|
endif()
|
|
endforeach(entry)
|