2013-01-02 11:36:10 +00:00
|
|
|
add_subdirectory(IR)
|
2008-11-15 00:24:38 +00:00
|
|
|
|
2009-04-01 15:40:21 +00:00
|
|
|
if( MSVC_IDE OR XCODE )
|
2008-11-15 02:08:08 +00:00
|
|
|
# Creates a dummy target containing all headers for the benefit of
|
2014-01-28 16:07:10 +00:00
|
|
|
# XCode and Visual Studio users.
|
2008-11-15 02:08:08 +00:00
|
|
|
file(GLOB_RECURSE headers *.h)
|
|
|
|
add_td_sources(headers)
|
|
|
|
add_library(llvm_headers_do_not_build EXCLUDE_FROM_ALL
|
|
|
|
# We need at least one source file:
|
|
|
|
${LLVM_MAIN_SRC_DIR}/lib/Transforms/Hello/Hello.cpp
|
|
|
|
${headers})
|
2014-01-28 16:07:10 +00:00
|
|
|
set_target_properties(llvm_headers_do_not_build PROPERTIES FOLDER "Misc"
|
|
|
|
EXCLUDE_FROM_DEFAULT_BUILD ON)
|
2008-11-15 02:08:08 +00:00
|
|
|
endif()
|
2014-05-21 02:46:14 +00:00
|
|
|
|
|
|
|
# If we're doing an out-of-tree build, copy a module map for generated
|
|
|
|
# header files into the build area.
|
|
|
|
if (NOT "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
|
|
|
|
configure_file(module.modulemap.build module.modulemap COPYONLY)
|
|
|
|
endif (NOT "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
|