4ff94f70355c5a3cb2f9816df93f1f10c9375c53
[oota-llvm.git] / unittests / IR / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   asmparser
3   core
4   ipa
5   )
6
7 set(IRSources
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   TypesTest.cpp
17   ValueMapTest.cpp
18   VerifierTest.cpp
19   WaymarkTest.cpp
20   )
21
22 # MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug.
23 # See issue#331418 in Visual Studio.
24 if(MSVC AND MSVC_VERSION LESS 1600)
25   list(REMOVE_ITEM IRSources ValueMapTest.cpp)
26 endif()
27
28 # HACK: Declare a couple of source files as optionally compiled to satisfy the
29 # missing-file-checker in LLVM's weird CMake build.
30 set(LLVM_OPTIONAL_SOURCES
31   ValueMapTest.cpp
32   )
33
34 add_llvm_unittest(IRTests
35   ${IRSources}
36   )