632eab57197cd6b7b6687dc7a5d47d08da729d89
[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   IRBuilderTest.cpp
11   InstructionsTest.cpp
12   MDBuilderTest.cpp
13   MetadataTest.cpp
14   PassManagerTest.cpp
15   TypeBuilderTest.cpp
16   ValueMapTest.cpp
17   VerifierTest.cpp
18   )
19
20 # MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug.
21 # See issue#331418 in Visual Studio.
22 if(MSVC AND MSVC_VERSION LESS 1600)
23   list(REMOVE_ITEM VMCoreSources ValueMapTest.cpp)
24 endif()
25
26 # HACK: Declare a couple of source files as optionally compiled to satisfy the
27 # missing-file-checker in LLVM's weird CMake build.
28 set(LLVM_OPTIONAL_SOURCES
29   ValueMapTest.cpp
30   )
31
32 add_llvm_unittest(VMCoreTests
33   ${VMCoreSources}
34   )