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-07-06 13:48:52 +08:00
|
|
|
add_subdirectory(ASTMatchers)
|
2012-06-21 17:51:42 +08:00
|
|
|
add_subdirectory(Basic)
|
|
|
|
add_subdirectory(Lex)
|
|
|
|
add_subdirectory(Frontend)
|
|
|
|
add_subdirectory(Tooling)
|