Cleaning up a bunch of pre-Visual C++ 2012 build hacks.
[oota-llvm.git] / unittests / IR / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   Analysis
3   AsmParser
4   Core
5   IPA
6   Support
7   )
8
9 set(IRSources
10   AttributesTest.cpp
11   ConstantsTest.cpp
12   DominatorTreeTest.cpp
13   IRBuilderTest.cpp
14   InstructionsTest.cpp
15   LegacyPassManagerTest.cpp
16   MDBuilderTest.cpp
17   MetadataTest.cpp
18   PassManagerTest.cpp
19   PatternMatch.cpp
20   TypeBuilderTest.cpp
21   TypesTest.cpp
22   ValueMapTest.cpp
23   ValueTest.cpp
24   VerifierTest.cpp
25   WaymarkTest.cpp
26   )
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   )