blob: 0e67ec71537eefbdd27e27c2bd0c7e9c19f39caf [file] [log] [blame]
Chandler Carruth20e41292012-06-21 05:23:23 +00001add_custom_target(ClangUnitTests)
2set_target_properties(ClangUnitTests PROPERTIES FOLDER "Clang tests")
3
Chandler Carruthf96b9ce2012-06-21 02:04:39 +00004# add_clang_unittest(test_dirname file1.cpp file2.cpp)
Jeffrey Yasskinf91ae522011-02-19 18:06:01 +00005#
6# Will compile the list of files together and link against the clang
Chandler Carruthf96b9ce2012-06-21 02:04:39 +00007# Produces a binary named 'basename(test_dirname)'.
8function(add_clang_unittest test_dirname)
Chandler Carruth20e41292012-06-21 05:23:23 +00009 add_unittest(ClangUnitTests ${test_dirname} ${ARGN})
Jeffrey Yasskin718b01d2011-02-15 07:54:28 +000010endfunction()
11
Chandler Carruth0c750ec2012-06-21 09:51:42 +000012add_subdirectory(Basic)
13add_subdirectory(Lex)
Stephen Hines651f13c2014-04-23 16:59:28 -070014add_subdirectory(Driver)
Roman Divackyff62d642013-05-29 21:09:18 +000015if(CLANG_ENABLE_STATIC_ANALYZER)
Pirama Arumuga Nainar3ea9e332015-04-08 08:57:32 -070016 add_subdirectory(StaticAnalyzer)
Roman Divackyff62d642013-05-29 21:09:18 +000017 add_subdirectory(Frontend)
18endif()
Stephen Hines176edba2014-12-01 14:53:08 -080019add_subdirectory(ASTMatchers)
20add_subdirectory(AST)
21add_subdirectory(Tooling)
22add_subdirectory(Format)
Pirama Arumuga Nainar3ea9e332015-04-08 08:57:32 -070023add_subdirectory(Rewrite)
Stephen Hines176edba2014-12-01 14:53:08 -080024add_subdirectory(Sema)
25add_subdirectory(CodeGen)
26# FIXME: Why are the libclang unit tests disabled on Windows?
27if(NOT WIN32)
Stephen Hines651f13c2014-04-23 16:59:28 -070028 add_subdirectory(libclang)
29endif()