From cb2efbd11512926bfc129e493f6b835ff7f6ccea 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199640 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Index/CMakeLists.txt | 4 +++- lib/Serialization/CMakeLists.txt | 6 ++++-- tools/libclang/CMakeLists.txt | 20 +++++++++++--------- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/lib/Index/CMakeLists.txt b/lib/Index/CMakeLists.txt index 0a9b568360..e9da8e591d 100644 --- a/lib/Index/CMakeLists.txt +++ b/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/lib/Serialization/CMakeLists.txt b/lib/Serialization/CMakeLists.txt index 13c2f3759b..cade8fad72 100644 --- a/lib/Serialization/CMakeLists.txt +++ b/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/tools/libclang/CMakeLists.txt b/tools/libclang/CMakeLists.txt index 881a86923a..b47539ae4c 100644 --- a/tools/libclang/CMakeLists.txt +++ b/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 ) -- 2.40.0