[Support] Allow multiple paired calls to {start,stop}Timer()
[oota-llvm.git] / unittests / Support / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   ${LLVM_TARGETS_TO_BUILD}
3   Support
4   )
5
6 add_llvm_unittest(SupportTests
7   AlignOfTest.cpp
8   AllocatorTest.cpp
9   ArrayRecyclerTest.cpp
10   BlockFrequencyTest.cpp
11   BranchProbabilityTest.cpp
12   Casting.cpp
13   CommandLineTest.cpp
14   CompressionTest.cpp
15   ConvertUTFTest.cpp
16   DataExtractorTest.cpp
17   DwarfTest.cpp
18   EndianStreamTest.cpp
19   EndianTest.cpp
20   ErrorOrTest.cpp
21   FileOutputBufferTest.cpp
22   IteratorTest.cpp
23   LEB128Test.cpp
24   LineIteratorTest.cpp
25   LockFileManagerTest.cpp
26   MD5Test.cpp
27   ManagedStatic.cpp
28   MathExtrasTest.cpp
29   MemoryBufferTest.cpp
30   MemoryTest.cpp
31   Path.cpp
32   ProcessTest.cpp
33   ProgramTest.cpp
34   RegexTest.cpp
35   ReplaceFileTest.cpp
36   ScaledNumberTest.cpp
37   SourceMgrTest.cpp
38   SpecialCaseListTest.cpp
39   StreamingMemoryObject.cpp
40   StringPool.cpp
41   SwapByteOrderTest.cpp
42   TargetRegistry.cpp
43   ThreadLocalTest.cpp
44   ThreadPool.cpp
45   TimerTest.cpp
46   TimeValueTest.cpp
47   TrailingObjectsTest.cpp
48   UnicodeTest.cpp
49   YAMLIOTest.cpp
50   YAMLParserTest.cpp
51   formatted_raw_ostream_test.cpp
52   raw_ostream_test.cpp
53   raw_pwrite_stream_test.cpp
54   )
55
56 # ManagedStatic.cpp uses <pthread>.
57 if(LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD)
58   target_link_libraries(SupportTests pthread)
59 endif()