60c731b6b0cf1fa8eade425db1c67bc417623d28
[oota-llvm.git] / tools / lli / CMakeLists.txt
1 add_subdirectory(ChildTarget)
2
3 set(LLVM_LINK_COMPONENTS
4   CodeGen
5   Core
6   ExecutionEngine
7   IRReader
8   Instrumentation
9   Interpreter
10   MC
11   MCJIT
12   Object
13   OrcJIT
14   RuntimeDyld
15   SelectionDAG
16   Support
17   native
18   )
19
20 if( LLVM_USE_OPROFILE )
21   set(LLVM_LINK_COMPONENTS
22     ${LLVM_LINK_COMPONENTS}
23     OProfileJIT
24     )
25 endif( LLVM_USE_OPROFILE )
26
27 if( LLVM_USE_INTEL_JITEVENTS )
28   set(LLVM_LINK_COMPONENTS
29     ${LLVM_LINK_COMPONENTS}
30     DebugInfoDWARF
31     IntelJITEvents
32     Object
33     )
34 endif( LLVM_USE_INTEL_JITEVENTS )
35
36 add_llvm_tool(lli
37   lli.cpp
38   RemoteMemoryManager.cpp
39   RemoteTarget.cpp
40   RemoteTargetExternal.cpp
41   )
42 export_executable_symbols(lli)