From ca76012343e80c70fa5901ff9292d03dcb451d3a Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Sun, 24 Apr 2011 11:36:09 +0200 Subject: [PATCH] Add header files to CMake build. This way, they will be available in IDE project files generated via CMake. --- CMakeLists.txt | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 28adf741..d4c7716f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -166,12 +166,11 @@ set_source_files_properties( COMPILE_DEFINITIONS LDC_TARGETS=${LLVM_MODULES_DEFINE} ) - -file(GLOB FE_SRC ${DMDFE_PATH}/*.c) -file(GLOB FE_SRC_ROOT ${DMDFE_PATH}/root/*.c) -file(GLOB_RECURSE GEN_HDR gen/*.h) -file(GLOB_RECURSE GEN_SRC gen/*.cpp) -file(GLOB IR_SRC ir/*.cpp) +# Also add the header files to the build so that they are available in IDE +# project files generated via CMake. +file(GLOB_RECURSE FE_SRC ${DMDFE_PATH}/*.c ${DMDFE_PATH}/*.h) +file(GLOB_RECURSE GEN_SRC gen/*.cpp gen/*.h) +file(GLOB IR_SRC ir/*.cpp ir/*.h) # exclude idgen and impcnvgen and generated sources, just in case list(REMOVE_ITEM FE_SRC ${PROJECT_SOURCE_DIR}/${DMDFE_PATH}/idgen.c @@ -182,9 +181,7 @@ list(REMOVE_ITEM FE_SRC set(LDC_SOURCE_FILES ${LDC_GENERATED} ${FE_SRC} - ${FE_SRC_ROOT} ${GEN_SRC} - ${GEN_HDR} ${IR_SRC} ) set_source_files_properties(