Clean up a pile of hacks in our CMake build relating to TableGen.
[oota-llvm.git] / lib / Target / PowerPC / CMakeLists.txt
1 set(LLVM_TARGET_DEFINITIONS PPC.td)
2
3 tablegen(PPCGenAsmWriter.inc -gen-asm-writer)
4 tablegen(PPCGenCodeEmitter.inc -gen-emitter)
5 tablegen(PPCGenMCCodeEmitter.inc -gen-emitter -mc-emitter)
6 tablegen(PPCGenRegisterInfo.inc -gen-register-info)
7 tablegen(PPCGenInstrInfo.inc -gen-instr-info)
8 tablegen(PPCGenDAGISel.inc -gen-dag-isel)
9 tablegen(PPCGenCallingConv.inc -gen-callingconv)
10 tablegen(PPCGenSubtargetInfo.inc -gen-subtarget)
11 add_public_tablegen_target(PowerPCCommonTableGen)
12
13 add_llvm_target(PowerPCCodeGen
14   PPCAsmPrinter.cpp
15   PPCBranchSelector.cpp
16   PPCCodeEmitter.cpp
17   PPCHazardRecognizers.cpp
18   PPCInstrInfo.cpp
19   PPCISelDAGToDAG.cpp
20   PPCISelLowering.cpp
21   PPCFrameLowering.cpp
22   PPCJITInfo.cpp
23   PPCMCInstLower.cpp
24   PPCPredicates.cpp
25   PPCRegisterInfo.cpp
26   PPCSubtarget.cpp
27   PPCTargetMachine.cpp
28   PPCSelectionDAGInfo.cpp
29   )
30
31 add_subdirectory(InstPrinter)
32 add_subdirectory(TargetInfo)
33 add_subdirectory(MCTargetDesc)