Tests for MCJIT multiple module support
[oota-llvm.git] / unittests / ExecutionEngine / MCJIT / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   asmparser
3   bitreader
4   bitwriter
5   jit
6   mcjit
7   nativecodegen
8   )
9
10 set(MCJITTestsSources
11   MCJITTest.cpp
12   MCJITCAPITest.cpp
13   MCJITMemoryManagerTest.cpp
14   MCJITMultipleModuleTest.cpp
15   MCJITObjectCacheTest.cpp
16   )
17
18 if(MSVC)
19   list(APPEND MCJITTestsSources MCJITTests.def)
20 endif()
21
22 add_llvm_unittest(MCJITTests
23   ${MCJITTestsSources}
24   )
25
26 if(MINGW OR CYGWIN)
27   set_property(TARGET MCJITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols)
28 endif()