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