OSDN Git Service

Resubmit r325107 (case folding DJB hash)
[android-x86/external-llvm.git] / unittests / Support / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   Support
3   )
4
5 add_llvm_unittest(SupportTests
6   AlignOfTest.cpp
7   AllocatorTest.cpp
8   ARMAttributeParser.cpp
9   ArrayRecyclerTest.cpp
10   BinaryStreamTest.cpp
11   BlockFrequencyTest.cpp
12   BranchProbabilityTest.cpp
13   CachePruningTest.cpp
14   CrashRecoveryTest.cpp
15   Casting.cpp
16   Chrono.cpp
17   CommandLineTest.cpp
18   CompressionTest.cpp
19   ConvertUTFTest.cpp
20   DataExtractorTest.cpp
21   DebugTest.cpp
22   DJBTest.cpp
23   EndianStreamTest.cpp
24   EndianTest.cpp
25   ErrnoTest.cpp
26   ErrorOrTest.cpp
27   ErrorTest.cpp
28   FileOutputBufferTest.cpp
29   FormatVariadicTest.cpp
30   GlobPatternTest.cpp
31   Host.cpp
32   LEB128Test.cpp
33   LineIteratorTest.cpp
34   LockFileManagerTest.cpp
35   MD5Test.cpp
36   ManagedStatic.cpp
37   MathExtrasTest.cpp
38   MemoryBufferTest.cpp
39   MemoryTest.cpp
40   NativeFormatTests.cpp
41   ParallelTest.cpp
42   Path.cpp
43   ProcessTest.cpp
44   ProgramTest.cpp
45   RegexTest.cpp
46   ReverseIterationTest.cpp
47   ReplaceFileTest.cpp
48   ScaledNumberTest.cpp
49   SourceMgrTest.cpp
50   SpecialCaseListTest.cpp
51   StringPool.cpp
52   SwapByteOrderTest.cpp
53   TarWriterTest.cpp
54   TargetParserTest.cpp
55   ThreadLocalTest.cpp
56   ThreadPool.cpp
57   Threading.cpp
58   TimerTest.cpp
59   TypeNameTest.cpp
60   TrailingObjectsTest.cpp
61   TrigramIndexTest.cpp
62   UnicodeTest.cpp
63   YAMLIOTest.cpp
64   YAMLParserTest.cpp
65   formatted_raw_ostream_test.cpp
66   raw_ostream_test.cpp
67   raw_pwrite_stream_test.cpp
68   raw_sha1_ostream_test.cpp
69   xxhashTest.cpp
70   )
71
72 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport)
73
74 # Disable all warning for AlignOfTest.cpp,
75 # as it does things intentionally, and there is no reliable way of
76 # disabling all warnings for all the compilers by using pragmas.
77 set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w)
78
79 # ManagedStatic.cpp uses <pthread>.
80 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport ${LLVM_PTHREAD_LIB})
81
82 add_subdirectory(DynamicLibrary)