| 1 | add_custom_target(ClangUnitTests) |
| 2 | set_target_properties(ClangUnitTests PROPERTIES FOLDER "Clang tests") |
| 3 | |
| 4 | # add_clang_unittest(test_dirname file1.cpp file2.cpp) |
| 5 | # |
| 6 | # Will compile the list of files together and link against the clang |
| 7 | # Produces a binary named 'basename(test_dirname)'. |
| 8 | function(add_clang_unittest test_dirname) |
| 9 | add_unittest(ClangUnitTests ${test_dirname} ${ARGN}) |
| 10 | endfunction() |
| 11 | |
| 12 | add_subdirectory(Basic) |
| 13 | add_subdirectory(Lex) |
| 14 | add_subdirectory(Driver) |
| 15 | if(CLANG_ENABLE_STATIC_ANALYZER) |
| 16 | add_subdirectory(Analysis) |
| 17 | add_subdirectory(StaticAnalyzer) |
| 18 | add_subdirectory(Frontend) |
| 19 | endif() |
| 20 | add_subdirectory(ASTMatchers) |
| 21 | add_subdirectory(AST) |
| 22 | add_subdirectory(CrossTU) |
| 23 | add_subdirectory(Tooling) |
| 24 | add_subdirectory(Format) |
| 25 | add_subdirectory(Rewrite) |
| 26 | add_subdirectory(Sema) |
| 27 | add_subdirectory(CodeGen) |
| 28 | # FIXME: libclang unit tests are disabled on Windows due |
| 29 | # to failures, mostly in libclang.VirtualFileOverlay_*. |
| 30 | if(NOT WIN32 AND CLANG_TOOL_LIBCLANG_BUILD) |
| 31 | add_subdirectory(libclang) |
| 32 | endif() |
| 33 | add_subdirectory(Rename) |
| 34 | add_subdirectory(Index) |
| 35 | add_subdirectory(Serialization) |
| 36 | |