diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-06-17 18:31:02 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-06-17 18:31:02 +0000 |
commit | f5216f2fa1e8cd580e22d45fd469bf110ac6373e (patch) | |
tree | 05207530ae5d8405223591c70356f1f44e556b40 /CMakeLists.txt | |
parent | 2fe119410f3d40b09a2a1b850f1ad231ea9773df (diff) |
Make sure that .td and .def files get into the list of headers in a CMake build, for use in Xcode and Visual Studio
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73623 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f63051a0d..bb128d68f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,11 +1,14 @@ macro(add_clang_library name) set(srcs ${ARGN}) if(MSVC_IDE OR XCODE) - file( GLOB_RECURSE headers *.h) + file( GLOB_RECURSE headers *.h *.td *.def) set(srcs ${srcs} ${headers}) string( REGEX MATCHALL "/[^/]+" split_path ${CMAKE_CURRENT_SOURCE_DIR}) list( GET split_path -1 dir) - file( GLOB_RECURSE headers ../../include/clang${dir}/*.h) + file( GLOB_RECURSE headers + ../../include/clang${dir}/*.h + ../../include/clang${dir}/*.td + ../../include/clang${dir}/*.def) set(srcs ${srcs} ${headers}) endif(MSVC_IDE OR XCODE) add_library( ${name} ${srcs} ) @@ -29,7 +32,7 @@ endmacro(add_clang_library) macro(add_clang_executable name) set(srcs ${ARGN}) if(MSVC_IDE) - file( GLOB_RECURSE headers *.h) + file( GLOB_RECURSE headers *.h *.td *.def) set(srcs ${srcs} ${headers}) endif(MSVC_IDE) add_llvm_executable( ${name} ${srcs} ) |