[C++11] Add unit tests for OwningPtr<T> in preparation for changes to make
[oota-llvm.git] / unittests / ADT / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   Support
3   )
4
5 set(ADTSources
6   APFloatTest.cpp
7   APIntTest.cpp
8   ArrayRefTest.cpp
9   BitVectorTest.cpp
10   DAGDeltaAlgorithmTest.cpp
11   DeltaAlgorithmTest.cpp
12   DenseMapTest.cpp
13   DenseSetTest.cpp
14   FoldingSet.cpp
15   HashingTest.cpp
16   ilistTest.cpp
17   ImmutableMapTest.cpp
18   ImmutableSetTest.cpp
19   IntEqClassesTest.cpp
20   IntervalMapTest.cpp
21   IntrusiveRefCntPtrTest.cpp
22   MapVectorTest.cpp
23   OptionalTest.cpp
24   OwningPtrTest.cpp
25   PackedVectorTest.cpp
26   PointerUnionTest.cpp
27   SCCIteratorTest.cpp
28   SmallPtrSetTest.cpp
29   SmallStringTest.cpp
30   SmallVectorTest.cpp
31   SparseBitVectorTest.cpp
32   SparseMultiSetTest.cpp
33   SparseSetTest.cpp
34   StringMapTest.cpp
35   StringRefTest.cpp
36   TinyPtrVectorTest.cpp
37   TripleTest.cpp
38   TwineTest.cpp
39   VariadicFunctionTest.cpp
40   polymorphic_ptr_test.cpp
41  )
42
43 # They cannot be compiled on MSVC9 due to its bug.
44 if(MSVC AND MSVC_VERSION LESS 1600)
45   set(LLVM_OPTIONAL_SOURCES
46     DenseMapTest.cpp
47     SmallVectorTest.cpp
48     )
49   list(REMOVE_ITEM ADTSources ${LLVM_OPTIONAL_SOURCES})
50 endif()
51
52 add_llvm_unittest(ADTTests
53   ${ADTSources}
54   )