]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - unittests/IR/CMakeLists.txt
Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / unittests / IR / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   asmparser
3   core
4   ipa
5   )
6
7 set(IRSources
8   AttributesTest.cpp
9   ConstantsTest.cpp
10   DominatorTreeTest.cpp
11   IRBuilderTest.cpp
12   InstructionsTest.cpp
13   LegacyPassManagerTest.cpp
14   MDBuilderTest.cpp
15   MetadataTest.cpp
16   PassManagerTest.cpp
17   PatternMatch.cpp
18   TypeBuilderTest.cpp
19   TypesTest.cpp
20   ValueMapTest.cpp
21   ValueTest.cpp
22   VerifierTest.cpp
23   WaymarkTest.cpp
24   )
25
26 # MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug.
27 # See issue#331418 in Visual Studio.
28 if(MSVC AND MSVC_VERSION LESS 1600)
29   list(REMOVE_ITEM IRSources ValueMapTest.cpp)
30 endif()
31
32 # HACK: Declare a couple of source files as optionally compiled to satisfy the
33 # missing-file-checker in LLVM's weird CMake build.
34 set(LLVM_OPTIONAL_SOURCES
35   ValueMapTest.cpp
36   )
37
38 add_llvm_unittest(IRTests
39   ${IRSources}
40   )