[Modules] Move the LeakDetector header into the IR library where the
[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   ConstantRangeTest.cpp
12   ConstantsTest.cpp
13   DominatorTreeTest.cpp
14   IRBuilderTest.cpp
15   InstructionsTest.cpp
16   LeakDetectorTest.cpp
17   LegacyPassManagerTest.cpp
18   MDBuilderTest.cpp
19   MetadataTest.cpp
20   PassManagerTest.cpp
21   PatternMatch.cpp
22   TypeBuilderTest.cpp
23   TypesTest.cpp
24   ValueHandleTest.cpp
25   ValueMapTest.cpp
26   ValueTest.cpp
27   VerifierTest.cpp
28   WaymarkTest.cpp
29   )
30
31 # HACK: Declare a couple of source files as optionally compiled to satisfy the
32 # missing-file-checker in LLVM's weird CMake build.
33 set(LLVM_OPTIONAL_SOURCES
34   ValueMapTest.cpp
35   )
36
37 add_llvm_unittest(IRTests
38   ${IRSources}
39   )