aboutsummaryrefslogtreecommitdiffstats
path: root/projects
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2009-03-06 01:16:52 +0000
committerOscar Fuentes <ofv@wanadoo.es>2009-03-06 01:16:52 +0000
commit7b6742bc2d902f0cd273c18130851f3976e3b14d (patch)
tree3f6421fc307dafc97782ba9bab03b2333a3eb635 /projects
parent7ad10e131cfdc983a50da2637fa165cb655e11f3 (diff)
downloadexternal_llvm-7b6742bc2d902f0cd273c18130851f3976e3b14d.zip
external_llvm-7b6742bc2d902f0cd273c18130851f3976e3b14d.tar.gz
external_llvm-7b6742bc2d902f0cd273c18130851f3976e3b14d.tar.bz2
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
Diffstat (limited to 'projects')
-rw-r--r--projects/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/projects/CMakeLists.txt b/projects/CMakeLists.txt
new file mode 100644
index 0000000..78e12fd
--- /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)