Recommit r373598 "[yaml2obj/obj2yaml] - Add support for SHT_LLVM_ADDRSIG sections."
[llvm-complete.git] / lib / Target / CMakeLists.txt
blob1e6abfacb79217465db19499a127268273f5d865
1 list(APPEND LLVM_COMMON_DEPENDS intrinsics_gen)
3 list(APPEND LLVM_TABLEGEN_FLAGS -I ${LLVM_MAIN_SRC_DIR}/lib/Target)
5 add_llvm_library(LLVMTarget
6   Target.cpp
7   TargetIntrinsicInfo.cpp
8   TargetLoweringObjectFile.cpp
9   TargetMachine.cpp
10   TargetMachineC.cpp
12   ADDITIONAL_HEADER_DIRS
13   ${LLVM_MAIN_INCLUDE_DIR}/llvm/Target
14   )
16 foreach(t ${LLVM_TARGETS_TO_BUILD})
17   message(STATUS "Targeting ${t}")
18   add_subdirectory(${t})
19 endforeach()
21 # Currently we do not allow libraries from lib to reference targets directly.
22 # This property is used to enforce that convention. It is important because the
23 # logic in llvm_map_components_to_libnames is order dependent on the target
24 # libraries being created.
25 set_property(GLOBAL PROPERTY LLVM_TARGETS_CONFIGURED On)