Update CMake build.
[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   PackedVectorTest.cpp
22   SCCIteratorTest.cpp
23   SmallPtrSetTest.cpp
24   SmallStringTest.cpp
25   SmallVectorTest.cpp
26   SparseBitVectorTest.cpp
27   SparseSetTest.cpp
28   StringMapTest.cpp
29   StringRefTest.cpp
30   TinyPtrVectorTest.cpp
31   TripleTest.cpp
32   TwineTest.cpp
33   VariadicFunctionTest.cpp
34  )
35
36 # They cannot be compiled on MSVC9 due to its bug.
37 if(MSVC AND MSVC_VERSION LESS 1600)
38   set(LLVM_OPTIONAL_SOURCES
39     DenseMapTest.cpp
40     SmallVectorTest.cpp
41     )
42   list(REMOVE_ITEM ADTSources ${LLVM_OPTIONAL_SOURCES})
43 endif()
44
45 add_llvm_unittest(ADTTests
46   ${ADTSources}
47   )