CMake: Also include header files in target when the generator is 'XCode'.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67703 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2009-03-25 20:34:07 +00:00
Родитель b8547e800f
Коммит bf5de3faf3
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1,13 +1,13 @@
macro(add_clang_library name)
set(srcs ${ARGN})
if(MSVC_IDE)
if(MSVC_IDE OR XCODE)
file( GLOB_RECURSE headers *.h)
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)
set(srcs ${srcs} ${headers})
endif(MSVC_IDE)
endif(MSVC_IDE OR XCODE)
add_library( ${name} ${srcs} )
if( LLVM_COMMON_DEPENDS )
add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} )