Rewrite the CMake build to use explicit dependencies between libraries,
[oota-llvm.git] / lib / Target / PTX / CMakeLists.txt
1 set(LLVM_TARGET_DEFINITIONS PTX.td)
2
3 tablegen(PTXGenAsmWriter.inc -gen-asm-writer)
4 tablegen(PTXGenCallingConv.inc -gen-callingconv)
5 tablegen(PTXGenDAGISel.inc -gen-dag-isel)
6 tablegen(PTXGenInstrInfo.inc -gen-instr-info)
7 tablegen(PTXGenRegisterInfo.inc -gen-register-info)
8 tablegen(PTXGenSubtargetInfo.inc -gen-subtarget)
9 add_public_tablegen_target(PTXCommonTableGen)
10
11 add_llvm_target(PTXCodeGen
12   PTXAsmPrinter.cpp
13   PTXISelDAGToDAG.cpp
14   PTXISelLowering.cpp
15   PTXInstrInfo.cpp
16   PTXFrameLowering.cpp
17   PTXMCAsmStreamer.cpp
18   PTXMFInfoExtract.cpp
19   PTXRegisterInfo.cpp
20   PTXSubtarget.cpp
21   PTXTargetMachine.cpp
22   )
23
24 add_llvm_library_dependencies(LLVMPTXCodeGen
25   LLVMAnalysis
26   LLVMAsmPrinter
27   LLVMCodeGen
28   LLVMCore
29   LLVMMC
30   LLVMPTXDesc
31   LLVMPTXInfo
32   LLVMSelectionDAG
33   LLVMSupport
34   LLVMTarget
35   )
36
37 add_subdirectory(TargetInfo)
38 add_subdirectory(MCTargetDesc)