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)
|
2014-02-12 11:21:20 +08:00
|
|
|
add_subdirectory(Driver)
|
2013-05-30 05:09:18 +08:00
|
|
|
if(CLANG_ENABLE_STATIC_ANALYZER)
|
2015-03-05 01:59:34 +08:00
|
|
|
add_subdirectory(StaticAnalyzer)
|
2013-05-30 05:09:18 +08:00
|
|
|
add_subdirectory(Frontend)
|
|
|
|
endif()
|
2014-07-17 00:48:33 +08:00
|
|
|
add_subdirectory(ASTMatchers)
|
|
|
|
add_subdirectory(AST)
|
|
|
|
add_subdirectory(Tooling)
|
|
|
|
add_subdirectory(Format)
|
2015-03-08 12:00:33 +08:00
|
|
|
add_subdirectory(Rewrite)
|
2014-07-17 00:48:33 +08:00
|
|
|
add_subdirectory(Sema)
|
2014-08-27 06:10:15 +08:00
|
|
|
add_subdirectory(CodeGen)
|
2014-07-17 00:48:33 +08:00
|
|
|
# FIXME: Why are the libclang unit tests disabled on Windows?
|
|
|
|
if(NOT WIN32)
|
2014-02-18 23:20:02 +08:00
|
|
|
add_subdirectory(libclang)
|
|
|
|
endif()
|