From bf6d1efbba9c3df309c8f238f2784f5dab96b147 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Mon, 20 Jan 2014 10:24:05 +0000 Subject: [PATCH] [CMake] Apply ADDITIONAL_HEADERS introduced in r199639. llvm-svn: 199640 --- clang/lib/Index/CMakeLists.txt | 4 +++- clang/lib/Serialization/CMakeLists.txt | 6 ++++-- clang/tools/libclang/CMakeLists.txt | 20 +++++++++++--------- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/clang/lib/Index/CMakeLists.txt b/clang/lib/Index/CMakeLists.txt index 0a9b5683609b..e9da8e591dbf 100644 --- a/clang/lib/Index/CMakeLists.txt +++ b/clang/lib/Index/CMakeLists.txt @@ -4,8 +4,10 @@ set(LLVM_LINK_COMPONENTS add_clang_library(clangIndex CommentToXML.cpp - SimpleFormatContext.h USRGeneration.cpp + + ADDITIONAL_HEADERS + SimpleFormatContext.h ) target_link_libraries(clangIndex diff --git a/clang/lib/Serialization/CMakeLists.txt b/clang/lib/Serialization/CMakeLists.txt index 13c2f3759b55..cade8fad7218 100644 --- a/clang/lib/Serialization/CMakeLists.txt +++ b/clang/lib/Serialization/CMakeLists.txt @@ -5,8 +5,6 @@ set(LLVM_LINK_COMPONENTS add_clang_library(clangSerialization - ASTCommon.h - ASTReaderInternals.h ASTCommon.cpp ASTReader.cpp ASTReaderDecl.cpp @@ -18,6 +16,10 @@ add_clang_library(clangSerialization GlobalModuleIndex.cpp Module.cpp ModuleManager.cpp + + ADDITIONAL_HEADERS + ASTCommon.h + ASTReaderInternals.h ) add_dependencies(clangSerialization diff --git a/clang/tools/libclang/CMakeLists.txt b/clang/tools/libclang/CMakeLists.txt index 881a86923acf..b47539ae4c28 100644 --- a/clang/tools/libclang/CMakeLists.txt +++ b/clang/tools/libclang/CMakeLists.txt @@ -9,32 +9,34 @@ set(SOURCES CIndexCXX.cpp CIndexCodeCompletion.cpp CIndexDiagnostic.cpp - CIndexDiagnostic.h CIndexHigh.cpp CIndexInclusionStack.cpp CIndexUSRs.cpp CIndexer.cpp - CIndexer.h CXComment.cpp CXCursor.cpp - CXCursor.h CXCompilationDatabase.cpp CXLoadedDiagnostic.cpp - CXLoadedDiagnostic.h CXSourceLocation.cpp - CXSourceLocation.h CXStoredDiagnostic.cpp CXString.cpp - CXString.h - CXTranslationUnit.h CXType.cpp - CXType.h IndexBody.cpp IndexDecl.cpp IndexTypeSourceInfo.cpp - Index_Internal.h Indexing.cpp IndexingContext.cpp + + ADDITIONAL_HEADERS + CIndexDiagnostic.h + CIndexer.h + CXCursor.h + CXLoadedDiagnostic.h + CXSourceLocation.h + CXString.h + CXTranslationUnit.h + CXType.h + Index_Internal.h IndexingContext.h ../../include/clang-c/Index.h )