blob: 6636d82db74d57b36b621ab018ecc53ee0ada87f [file] [log] [blame]
Chandler Carruthf0dcac62012-06-21 05:23:23 +00001add_custom_target(ClangUnitTests)
2set_target_properties(ClangUnitTests PROPERTIES FOLDER "Clang tests")
3
Chandler Carruth88973312012-06-21 02:04:39 +00004# add_clang_unittest(test_dirname file1.cpp file2.cpp)
Jeffrey Yasskin39a58202011-02-19 18:06:01 +00005#
6# Will compile the list of files together and link against the clang
Chandler Carruth88973312012-06-21 02:04:39 +00007# Produces a binary named 'basename(test_dirname)'.
8function(add_clang_unittest test_dirname)
Chandler Carruthf0dcac62012-06-21 05:23:23 +00009 add_unittest(ClangUnitTests ${test_dirname} ${ARGN})
Jeffrey Yasskincd3858b2011-02-15 07:54:28 +000010endfunction()
11
Chandler Carruth016bbd82012-06-21 09:51:42 +000012add_subdirectory(Basic)
13add_subdirectory(Lex)
Jonathan Roelofs2cea1be2014-02-12 03:21:20 +000014add_subdirectory(Driver)
Roman Divacky95ad7792013-05-29 21:09:18 +000015if(CLANG_ENABLE_STATIC_ANALYZER)
Gabor Horvathe40c71c2015-03-04 17:59:34 +000016 add_subdirectory(StaticAnalyzer)
Roman Divacky95ad7792013-05-29 21:09:18 +000017 add_subdirectory(Frontend)
18endif()
Alp Toker0621cb22014-07-16 16:48:33 +000019add_subdirectory(ASTMatchers)
20add_subdirectory(AST)
21add_subdirectory(Tooling)
22add_subdirectory(Format)
Argyrios Kyrtzidis69e6f1f2015-03-08 04:00:33 +000023add_subdirectory(Rewrite)
Alp Toker0621cb22014-07-16 16:48:33 +000024add_subdirectory(Sema)
Keno Fischer84778b22014-08-26 22:10:15 +000025add_subdirectory(CodeGen)
Yaron Kerene41dee12015-07-05 17:53:00 +000026# FIXME: libclang unit tests are disabled on Windows due
27# to failures, mostly in libclang.VirtualFileOverlay_*.
Alp Toker0621cb22014-07-16 16:48:33 +000028if(NOT WIN32)
Dmitri Gribenko1bf8d912014-02-18 15:20:02 +000029 add_subdirectory(libclang)
30endif()