From 5c6bf65a090e799462af8ce6afbbb6dc1f3f78f5 Mon Sep 17 00:00:00 2001 From: Oscar Fuentes Date: Fri, 6 Mar 2009 01:16:52 +0000 Subject: CMake: auto-discover project files under the projects/ subdirectory. Patch by Viktar Zviarovich! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66230 91177308-0d34-0410-b5e6-96231b3b80d8 --- projects/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 projects/CMakeLists.txt (limited to 'projects/CMakeLists.txt') diff --git a/projects/CMakeLists.txt b/projects/CMakeLists.txt new file mode 100644 index 0000000000..78e12fd34a --- /dev/null +++ b/projects/CMakeLists.txt @@ -0,0 +1,9 @@ +# 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) + add_subdirectory(${entry}) + endif() +endforeach(entry) -- cgit v1.2.3