Fix CMake build.
[oota-llvm.git] / lib / Target / ARM / CMakeLists.txt
1 set(LLVM_TARGET_DEFINITIONS ARM.td)
2
3 llvm_tablegen(ARMGenRegisterInfo.inc -gen-register-info)
4 llvm_tablegen(ARMGenInstrInfo.inc -gen-instr-info)
5 llvm_tablegen(ARMGenCodeEmitter.inc -gen-emitter)
6 llvm_tablegen(ARMGenMCCodeEmitter.inc -gen-emitter -mc-emitter)
7 llvm_tablegen(ARMGenMCPseudoLowering.inc -gen-pseudo-lowering)
8 llvm_tablegen(ARMGenAsmWriter.inc -gen-asm-writer)
9 llvm_tablegen(ARMGenAsmMatcher.inc -gen-asm-matcher)
10 llvm_tablegen(ARMGenDAGISel.inc -gen-dag-isel)
11 llvm_tablegen(ARMGenFastISel.inc -gen-fast-isel)
12 llvm_tablegen(ARMGenCallingConv.inc -gen-callingconv)
13 llvm_tablegen(ARMGenSubtargetInfo.inc -gen-subtarget)
14 llvm_tablegen(ARMGenEDInfo.inc -gen-enhanced-disassembly-info)
15 llvm_tablegen(ARMGenDisassemblerTables.inc -gen-disassembler)
16 add_public_tablegen_target(ARMCommonTableGen)
17
18 add_llvm_target(ARMCodeGen
19   ARMAsmPrinter.cpp
20   ARMBaseInstrInfo.cpp
21   ARMBaseRegisterInfo.cpp
22   ARMCodeEmitter.cpp
23   ARMConstantIslandPass.cpp
24   ARMConstantPoolValue.cpp
25   ARMELFWriterInfo.cpp
26   ARMExpandPseudoInsts.cpp
27   ARMFastISel.cpp
28   ARMFrameLowering.cpp
29   ARMHazardRecognizer.cpp
30   ARMISelDAGToDAG.cpp
31   ARMISelLowering.cpp
32   ARMInstrInfo.cpp
33   ARMJITInfo.cpp
34   ARMLoadStoreOptimizer.cpp
35   ARMMCInstLower.cpp
36   ARMRegisterInfo.cpp
37   ARMSelectionDAGInfo.cpp
38   ARMSubtarget.cpp
39   ARMTargetMachine.cpp
40   ARMTargetObjectFile.cpp
41   MLxExpansionPass.cpp
42   Thumb1FrameLowering.cpp
43   Thumb1InstrInfo.cpp
44   Thumb1RegisterInfo.cpp
45   Thumb2ITBlockPass.cpp
46   Thumb2InstrInfo.cpp
47   Thumb2RegisterInfo.cpp
48   Thumb2SizeReduction.cpp
49   )
50
51 add_llvm_library_dependencies(LLVMARMCodeGen
52   LLVMARMAsmPrinter
53   LLVMARMDesc
54   LLVMARMInfo
55   LLVMAnalysis
56   LLVMAsmPrinter
57   LLVMCodeGen
58   LLVMCore
59   LLVMMC
60   LLVMSelectionDAG
61   LLVMSupport
62   LLVMTarget
63   )
64
65 # workaround for hanging compilation on MSVC10
66 if( MSVC_VERSION EQUAL 1600 )
67 set_property(
68   SOURCE ARMISelLowering.cpp
69   PROPERTY COMPILE_FLAGS "/Od"
70   )
71 endif()
72
73 add_subdirectory(TargetInfo)
74 add_subdirectory(AsmParser)
75 add_subdirectory(Disassembler)
76 add_subdirectory(InstPrinter)
77 add_subdirectory(MCTargetDesc)