[cfe-commits] r73623 - /cfe/trunk/CMakeLists.txt
Douglas Gregor
dgregor at apple.com
Wed Jun 17 11:31:06 PDT 2009
Author: dgregor
Date: Wed Jun 17 13:31:02 2009
New Revision: 73623
URL: http://llvm.org/viewvc/llvm-project?rev=73623&view=rev
Log:
Make sure that .td and .def files get into the list of headers in a CMake build, for use in Xcode and Visual Studio
Modified:
cfe/trunk/CMakeLists.txt
Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=73623&r1=73622&r2=73623&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Wed Jun 17 13:31:02 2009
@@ -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 @@
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} )
More information about the cfe-commits
mailing list