Export symbols in tools that support loading plugins.
[oota-llvm.git] / tools / lli / CMakeLists.txt
1
2 set(LLVM_LINK_COMPONENTS mcjit jit interpreter nativecodegen bitreader asmparser irreader selectiondag native instrumentation)
3
4 add_subdirectory(ChildTarget)
5
6 if( LLVM_USE_OPROFILE )
7   set(LLVM_LINK_COMPONENTS
8     ${LLVM_LINK_COMPONENTS}
9     OProfileJIT
10     )
11 endif( LLVM_USE_OPROFILE )
12
13 if( LLVM_USE_INTEL_JITEVENTS )
14   set(LLVM_LINK_COMPONENTS
15     ${LLVM_LINK_COMPONENTS}
16     DebugInfo
17     IntelJITEvents
18     Object
19     )
20 endif( LLVM_USE_INTEL_JITEVENTS )
21
22 add_llvm_tool(lli
23   lli.cpp
24   RemoteMemoryManager.cpp
25   RemoteTarget.cpp
26   RemoteTargetExternal.cpp
27   )
28 set_target_properties(lli PROPERTIES ENABLE_EXPORTS 1)