[CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt.
[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 # MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug.
29 # See issue#331418 in Visual Studio.
30 if(MSVC AND MSVC_VERSION LESS 1600)
31   list(REMOVE_ITEM IRSources ValueMapTest.cpp)
32 endif()
33
34 # HACK: Declare a couple of source files as optionally compiled to satisfy the
35 # missing-file-checker in LLVM's weird CMake build.
36 set(LLVM_OPTIONAL_SOURCES
37   ValueMapTest.cpp
38   )
39
40 add_llvm_unittest(IRTests
41   ${IRSources}
42   )