2012-06-21 13:23:23 +08:00
|
|
|
add_custom_target(ClangUnitTests)
|
|
|
|
set_target_properties(ClangUnitTests PROPERTIES FOLDER "Clang tests")
|
|
|
|
|
2012-06-21 10:04:39 +08:00
|
|
|
# add_clang_unittest(test_dirname file1.cpp file2.cpp)
|
2011-02-20 02:06:01 +08:00
|
|
|
#
|
|
|
|
# Will compile the list of files together and link against the clang
|
2012-06-21 10:04:39 +08:00
|
|
|
# Produces a binary named 'basename(test_dirname)'.
|
|
|
|
function(add_clang_unittest test_dirname)
|
2012-06-21 13:23:23 +08:00
|
|
|
add_unittest(ClangUnitTests ${test_dirname} ${ARGN})
|
2011-02-15 15:54:28 +08:00
|
|
|
endfunction()
|
|
|
|
|
2012-06-21 17:51:42 +08:00
|
|
|
add_subdirectory(Basic)
|
|
|
|
add_subdirectory(Lex)
|
2013-05-30 05:09:18 +08:00
|
|
|
if(CLANG_ENABLE_STATIC_ANALYZER)
|
|
|
|
add_subdirectory(Frontend)
|
|
|
|
endif()
|
|
|
|
if(CLANG_ENABLE_REWRITER)
|
|
|
|
add_subdirectory(ASTMatchers)
|
|
|
|
add_subdirectory(AST)
|
|
|
|
add_subdirectory(Tooling)
|
|
|
|
add_subdirectory(Format)
|
2013-08-13 03:54:38 +08:00
|
|
|
add_subdirectory(Sema)
|
2013-05-30 05:09:18 +08:00
|
|
|
endif()
|