Mercurial > hg > CbC > CbC_llvm
comparison clang/unittests/CMakeLists.txt @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | 2e18cbf3894f |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 add_custom_target(ClangUnitTests) | |
2 set_target_properties(ClangUnitTests PROPERTIES FOLDER "Clang tests") | |
3 | |
4 if(CLANG_BUILT_STANDALONE) | |
5 # LLVMTestingSupport library is needed for some of the unittests. | |
6 if (EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Testing/Support | |
7 AND NOT TARGET LLVMTestingSupport) | |
8 add_subdirectory(${LLVM_MAIN_SRC_DIR}/lib/Testing/Support | |
9 lib/Testing/Support) | |
10 endif() | |
11 endif() | |
12 | |
13 # add_clang_unittest(test_dirname file1.cpp file2.cpp) | |
14 # | |
15 # Will compile the list of files together and link against the clang | |
16 # Produces a binary named 'basename(test_dirname)'. | |
17 function(add_clang_unittest test_dirname) | |
18 add_unittest(ClangUnitTests ${test_dirname} ${ARGN}) | |
19 endfunction() | |
20 | |
21 add_subdirectory(Basic) | |
22 add_subdirectory(Lex) | |
23 add_subdirectory(Driver) | |
24 if(CLANG_ENABLE_STATIC_ANALYZER) | |
25 add_subdirectory(Analysis) | |
26 add_subdirectory(StaticAnalyzer) | |
27 add_subdirectory(Frontend) | |
28 endif() | |
29 add_subdirectory(ASTMatchers) | |
30 add_subdirectory(AST) | |
31 add_subdirectory(CrossTU) | |
32 add_subdirectory(Tooling) | |
33 add_subdirectory(Format) | |
34 add_subdirectory(Rewrite) | |
35 add_subdirectory(Sema) | |
36 add_subdirectory(CodeGen) | |
37 # FIXME: libclang unit tests are disabled on Windows due | |
38 # to failures, mostly in libclang.VirtualFileOverlay_*. | |
39 if(NOT WIN32 AND CLANG_TOOL_LIBCLANG_BUILD) | |
40 add_subdirectory(libclang) | |
41 endif() | |
42 add_subdirectory(DirectoryWatcher) | |
43 add_subdirectory(Rename) | |
44 add_subdirectory(Index) | |
45 add_subdirectory(Serialization) |