[CMake] LLVMSupport: Give system_libs PRIVATE scope when LLVMSupport is built as...
[oota-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   ArrayRecyclerTest.cpp
9   BlockFrequencyTest.cpp
10   BranchProbabilityTest.cpp
11   Casting.cpp
12   CommandLineTest.cpp
13   CompressionTest.cpp
14   ConvertUTFTest.cpp
15   DataExtractorTest.cpp
16   EndianTest.cpp
17   ErrorOrTest.cpp
18   FileOutputBufferTest.cpp
19   IteratorTest.cpp
20   LEB128Test.cpp
21   LineIteratorTest.cpp
22   LockFileManagerTest.cpp
23   MD5Test.cpp
24   ManagedStatic.cpp
25   MathExtrasTest.cpp
26   MemoryBufferTest.cpp
27   MemoryTest.cpp
28   Path.cpp
29   ProcessTest.cpp
30   ProgramTest.cpp
31   RegexTest.cpp
32   ScaledNumberTest.cpp
33   SourceMgrTest.cpp
34   SpecialCaseListTest.cpp
35   StringPool.cpp
36   SwapByteOrderTest.cpp
37   ThreadLocalTest.cpp
38   TimeValueTest.cpp
39   UnicodeTest.cpp
40   YAMLIOTest.cpp
41   YAMLParserTest.cpp
42   formatted_raw_ostream_test.cpp
43   raw_ostream_test.cpp
44   )
45
46 # ManagedStatic.cpp uses <pthread>.
47 if(LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD)
48   target_link_libraries(SupportTests pthread)
49 endif()