Chandler Carruth | f0dcac6 | 2012-06-21 05:23:23 +0000 | [diff] [blame] | 1 | add_custom_target(ClangUnitTests) |
| 2 | set_target_properties(ClangUnitTests PROPERTIES FOLDER "Clang tests") |
| 3 | |
Chandler Carruth | 8897331 | 2012-06-21 02:04:39 +0000 | [diff] [blame] | 4 | # add_clang_unittest(test_dirname file1.cpp file2.cpp) |
Jeffrey Yasskin | 39a5820 | 2011-02-19 18:06:01 +0000 | [diff] [blame] | 5 | # |
| 6 | # Will compile the list of files together and link against the clang |
Chandler Carruth | 8897331 | 2012-06-21 02:04:39 +0000 | [diff] [blame] | 7 | # Produces a binary named 'basename(test_dirname)'. |
| 8 | function(add_clang_unittest test_dirname) |
Chandler Carruth | f0dcac6 | 2012-06-21 05:23:23 +0000 | [diff] [blame] | 9 | add_unittest(ClangUnitTests ${test_dirname} ${ARGN}) |
Jeffrey Yasskin | cd3858b | 2011-02-15 07:54:28 +0000 | [diff] [blame] | 10 | endfunction() |
| 11 | |
Chandler Carruth | 016bbd8 | 2012-06-21 09:51:42 +0000 | [diff] [blame] | 12 | add_subdirectory(Basic) |
| 13 | add_subdirectory(Lex) |
Jonathan Roelofs | 2cea1be | 2014-02-12 03:21:20 +0000 | [diff] [blame] | 14 | add_subdirectory(Driver) |
Roman Divacky | 95ad779 | 2013-05-29 21:09:18 +0000 | [diff] [blame] | 15 | if(CLANG_ENABLE_STATIC_ANALYZER) |
| 16 | add_subdirectory(Frontend) |
| 17 | endif() |
Alp Toker | 0621cb2 | 2014-07-16 16:48:33 +0000 | [diff] [blame] | 18 | add_subdirectory(ASTMatchers) |
| 19 | add_subdirectory(AST) |
| 20 | add_subdirectory(Tooling) |
| 21 | add_subdirectory(Format) |
| 22 | add_subdirectory(Sema) |
Keno Fischer | 84778b2 | 2014-08-26 22:10:15 +0000 | [diff] [blame^] | 23 | add_subdirectory(CodeGen) |
Alp Toker | 0621cb2 | 2014-07-16 16:48:33 +0000 | [diff] [blame] | 24 | # FIXME: Why are the libclang unit tests disabled on Windows? |
| 25 | if(NOT WIN32) |
Dmitri Gribenko | 1bf8d91 | 2014-02-18 15:20:02 +0000 | [diff] [blame] | 26 | add_subdirectory(libclang) |
| 27 | endif() |