summaryrefslogtreecommitdiff
path: root/unittests/ADT/CMakeLists.txt
blob: 8ad303a9e1b33e7bb3482419101e77816002948e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
set(LLVM_LINK_COMPONENTS
  Support
  )

set(ADTSources
  APFloatTest.cpp
  APIntTest.cpp
  BitVectorTest.cpp
  DAGDeltaAlgorithmTest.cpp
  DeltaAlgorithmTest.cpp
  DenseMapTest.cpp
  DenseSetTest.cpp
  FoldingSet.cpp
  HashingTest.cpp
  ilistTest.cpp
  ImmutableMapTest.cpp
  ImmutableSetTest.cpp
  IntEqClassesTest.cpp
  IntervalMapTest.cpp
  IntrusiveRefCntPtrTest.cpp
  MapVectorTest.cpp
  OptionalTest.cpp
  PackedVectorTest.cpp
  PointerUnionTest.cpp
  SCCIteratorTest.cpp
  SmallPtrSetTest.cpp
  SmallStringTest.cpp
  SmallVectorTest.cpp
  SparseBitVectorTest.cpp
  SparseMultiSetTest.cpp
  SparseSetTest.cpp
  StringMapTest.cpp
  StringRefTest.cpp
  TinyPtrVectorTest.cpp
  TripleTest.cpp
  TwineTest.cpp
  VariadicFunctionTest.cpp
  polymorphic_ptr_test.cpp
 )

# They cannot be compiled on MSVC9 due to its bug.
if(MSVC AND MSVC_VERSION LESS 1600)
  set(LLVM_OPTIONAL_SOURCES
    DenseMapTest.cpp
    SmallVectorTest.cpp
    )
  list(REMOVE_ITEM ADTSources ${LLVM_OPTIONAL_SOURCES})
endif()

add_llvm_unittest(ADTTests
  ${ADTSources}
  )