dcf8264203e28c004e9d420a4ed998d715dc69c3
[oota-llvm.git] / unittests / ExecutionEngine / MCJIT / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   Analysis
3   AsmParser
4   Core
5   ExecutionEngine
6   IPO
7   MC
8   MCJIT
9   ScalarOpts
10   Support
11   Target
12   nativecodegen
13   )
14
15 set(MCJITTestsSources
16   MCJITTest.cpp
17   MCJITCAPITest.cpp
18   MCJITMemoryManagerTest.cpp
19   MCJITMultipleModuleTest.cpp
20   MCJITObjectCacheTest.cpp
21   )
22
23 if(MSVC)
24   list(APPEND MCJITTestsSources MCJITTests.def)
25 endif()
26
27 add_llvm_unittest(MCJITTests
28   ${MCJITTestsSources}
29   )
30
31 if(MINGW OR CYGWIN)
32   set_property(TARGET MCJITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols)
33 endif()