Allow llvm::Optional to work with types without default constructors.
[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   BitVectorTest.cpp
9   DAGDeltaAlgorithmTest.cpp
10   DeltaAlgorithmTest.cpp
11   DenseMapTest.cpp
12   DenseSetTest.cpp
13   FoldingSet.cpp
14   HashingTest.cpp
15   ilistTest.cpp
16   ImmutableMapTest.cpp
17   ImmutableSetTest.cpp
18   IntEqClassesTest.cpp
19   IntervalMapTest.cpp
20   IntrusiveRefCntPtrTest.cpp
21   MapVectorTest.cpp
22   OptionalTest.cpp
23   PackedVectorTest.cpp
24   SCCIteratorTest.cpp
25   SmallPtrSetTest.cpp
26   SmallStringTest.cpp
27   SmallVectorTest.cpp
28   SparseBitVectorTest.cpp
29   SparseMultiSetTest.cpp
30   SparseSetTest.cpp
31   StringMapTest.cpp
32   StringRefTest.cpp
33   TinyPtrVectorTest.cpp
34   TripleTest.cpp
35   TwineTest.cpp
36   VariadicFunctionTest.cpp
37  )
38
39 # They cannot be compiled on MSVC9 due to its bug.
40 if(MSVC AND MSVC_VERSION LESS 1600)
41   set(LLVM_OPTIONAL_SOURCES
42     DenseMapTest.cpp
43     SmallVectorTest.cpp
44     )
45   list(REMOVE_ITEM ADTSources ${LLVM_OPTIONAL_SOURCES})
46 endif()
47
48 add_llvm_unittest(ADTTests
49   ${ADTSources}
50   )