llvm.org GIT mirror llvm / 5c6bf65
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 Oscar Fuentes 11 years ago
2 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
202202 add_subdirectory(lib/Debugger)
203203 add_subdirectory(lib/Archive)
204204
205 add_subdirectory(projects)
205206 add_subdirectory(tools)
206207
207208 add_subdirectory(examples)
0 # Discover the projects that use CMake in the subdirectories.
1 # Note that explicit cmake invocation is required every time a new project is
2 # added or removed.
3 file(GLOB entries *)
4 foreach(entry ${entries})
5 if(IS_DIRECTORY ${entry} AND EXISTS ${entry}/CMakeLists.txt)
6 add_subdirectory(${entry})
7 endif()
8 endforeach(entry)