OSDN Git Service

299106e0dbf739d5aa932d8cfcdb16386fa2b0be
[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   EndianStreamTest.cpp
23   EndianTest.cpp
24   ErrnoTest.cpp
25   ErrorOrTest.cpp
26   ErrorTest.cpp
27   FileOutputBufferTest.cpp
28   FormatVariadicTest.cpp
29   GlobPatternTest.cpp
30   Host.cpp
31   LEB128Test.cpp
32   LineIteratorTest.cpp
33   LockFileManagerTest.cpp
34   MD5Test.cpp
35   ManagedStatic.cpp
36   MathExtrasTest.cpp
37   MemoryBufferTest.cpp
38   MemoryTest.cpp
39   NativeFormatTests.cpp
40   ParallelTest.cpp
41   Path.cpp
42   ProcessTest.cpp
43   ProgramTest.cpp
44   RegexTest.cpp
45   ReverseIterationTest.cpp
46   ReplaceFileTest.cpp
47   ScaledNumberTest.cpp
48   SourceMgrTest.cpp
49   SpecialCaseListTest.cpp
50   StringPool.cpp
51   SwapByteOrderTest.cpp
52   TarWriterTest.cpp
53   TargetParserTest.cpp
54   ThreadLocalTest.cpp
55   ThreadPool.cpp
56   Threading.cpp
57   TimerTest.cpp
58   TypeNameTest.cpp
59   TrailingObjectsTest.cpp
60   TrigramIndexTest.cpp
61   UnicodeTest.cpp
62   YAMLIOTest.cpp
63   YAMLParserTest.cpp
64   formatted_raw_ostream_test.cpp
65   raw_ostream_test.cpp
66   raw_pwrite_stream_test.cpp
67   raw_sha1_ostream_test.cpp
68   xxhashTest.cpp
69   )
70
71 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport)
72
73 # Disable all warning for AlignOfTest.cpp,
74 # as it does things intentionally, and there is no reliable way of
75 # disabling all warnings for all the compilers by using pragmas.
76 set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w)
77
78 # ManagedStatic.cpp uses <pthread>.
79 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport ${LLVM_PTHREAD_LIB})
80
81 add_subdirectory(DynamicLibrary)