Rewrite the CMake build to use explicit dependencies between libraries,
[oota-llvm.git] / lib / Target / CellSPU / CMakeLists.txt
1 set(LLVM_TARGET_DEFINITIONS SPU.td)
2
3 tablegen(SPUGenAsmWriter.inc -gen-asm-writer)
4 tablegen(SPUGenCodeEmitter.inc -gen-emitter)
5 tablegen(SPUGenRegisterInfo.inc -gen-register-info)
6 tablegen(SPUGenInstrInfo.inc -gen-instr-info)
7 tablegen(SPUGenDAGISel.inc -gen-dag-isel)
8 tablegen(SPUGenSubtargetInfo.inc -gen-subtarget)
9 tablegen(SPUGenCallingConv.inc -gen-callingconv)
10 add_public_tablegen_target(CellSPUCommonTableGen)
11
12 add_llvm_target(CellSPUCodeGen
13   SPUAsmPrinter.cpp
14   SPUHazardRecognizers.cpp
15   SPUInstrInfo.cpp
16   SPUISelDAGToDAG.cpp
17   SPUISelLowering.cpp
18   SPUFrameLowering.cpp
19   SPURegisterInfo.cpp
20   SPUSubtarget.cpp
21   SPUTargetMachine.cpp
22   SPUSelectionDAGInfo.cpp
23   SPUNopFiller.cpp
24   )
25
26 add_llvm_library_dependencies(LLVMCellSPUCodeGen
27   LLVMAsmPrinter
28   LLVMCellSPUDesc
29   LLVMCellSPUInfo
30   LLVMCodeGen
31   LLVMCore
32   LLVMMC
33   LLVMSelectionDAG
34   LLVMSupport
35   LLVMTarget
36   )
37
38 add_subdirectory(TargetInfo)
39 add_subdirectory(MCTargetDesc)