Add the coverage cflags to the link step as well to make sure
[oota-llvm.git] / include / llvm / CMakeLists.txt
1 add_subdirectory(IR)
2
3 if( MSVC_IDE OR XCODE )
4   # Creates a dummy target containing all headers for the benefit of
5   # XCode and Visual Studio users.
6   file(GLOB_RECURSE headers *.h)
7   add_td_sources(headers)
8   add_library(llvm_headers_do_not_build EXCLUDE_FROM_ALL
9     # We need at least one source file:
10     ${LLVM_MAIN_SRC_DIR}/lib/Transforms/Hello/Hello.cpp
11     ${headers})
12   set_target_properties(llvm_headers_do_not_build PROPERTIES FOLDER "Misc"
13                         EXCLUDE_FROM_DEFAULT_BUILD ON)
14 endif()
15
16 # If we're doing an out-of-tree build, copy a module map for generated
17 # header files into the build area.
18 if (NOT "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
19   configure_file(module.modulemap.build module.modulemap COPYONLY)
20 endif (NOT "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")