diff --git a/CMakeLists.txt b/CMakeLists.txt index 3dcc5e4f7ff..4ee8d204007 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -203,6 +203,7 @@ add_subdirectory(lib/AsmParser) add_subdirectory(lib/Debugger) add_subdirectory(lib/Archive) +add_subdirectory(projects) add_subdirectory(tools) add_subdirectory(examples) diff --git a/projects/CMakeLists.txt b/projects/CMakeLists.txt new file mode 100644 index 00000000000..78e12fd34a0 --- /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)