• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1add_custom_target(ClangUnitTests)
2set_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)'.
8function(add_clang_unittest test_dirname)
9  add_unittest(ClangUnitTests ${test_dirname} ${ARGN})
10endfunction()
11
12add_subdirectory(Basic)
13add_subdirectory(Lex)
14if(CLANG_ENABLE_STATIC_ANALYZER)
15  add_subdirectory(Frontend)
16endif()
17if(CLANG_ENABLE_REWRITER)
18  add_subdirectory(ASTMatchers)
19  add_subdirectory(AST)
20  add_subdirectory(Tooling)
21  add_subdirectory(Format)
22endif()
23