79ee22c186d986454fd81aa070418b41f38ba045
[oota-llvm.git] / unittests / VMCore / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   asmparser
3   core
4   ipa
5   )
6
7 set(VMCoreSources
8   ConstantsTest.cpp
9   DominatorTreeTest.cpp
10   InstructionsTest.cpp
11   MDBuilderTest.cpp
12   MetadataTest.cpp
13   PassManagerTest.cpp
14   ValueMapTest.cpp
15   VerifierTest.cpp
16   )
17
18 # MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug.
19 # See issue#331418 in Visual Studio.
20 if(MSVC AND MSVC_VERSION LESS 1600)
21   list(REMOVE_ITEM VMCoreSources ValueMapTest.cpp)
22 endif()
23
24 # HACK: Declare a couple of source files as optionally compiled to satisfy the
25 # missing-file-checker in LLVM's weird CMake build.
26 set(LLVM_OPTIONAL_SOURCES
27   ValueMapTest.cpp
28   )
29
30 add_llvm_unittest(VMCoreTests
31   ${VMCoreSources}
32   )