Revert my CMake patches concerning building with /MT (r194589, r194596)
[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   PointerUnionTest.cpp
25   SCCIteratorTest.cpp
26   SmallPtrSetTest.cpp
27   SmallStringTest.cpp
28   SmallVectorTest.cpp
29   SparseBitVectorTest.cpp
30   SparseMultiSetTest.cpp
31   SparseSetTest.cpp
32   StringMapTest.cpp
33   StringRefTest.cpp
34   TinyPtrVectorTest.cpp
35   TripleTest.cpp
36   TwineTest.cpp
37   VariadicFunctionTest.cpp
38   polymorphic_ptr_test.cpp
39  )
40
41 # They cannot be compiled on MSVC9 due to its bug.
42 if(MSVC AND MSVC_VERSION LESS 1600)
43   set(LLVM_OPTIONAL_SOURCES
44     DenseMapTest.cpp
45     SmallVectorTest.cpp
46     )
47   list(REMOVE_ITEM ADTSources ${LLVM_OPTIONAL_SOURCES})
48 endif()
49
50 add_llvm_unittest(ADTTests
51   ${ADTSources}
52   )