aboutsummaryrefslogblamecommitdiff
path: root/unittests/CMakeLists.txt
blob: d0e2860e07f0833d9fe73f0b8c89e7412c976f22 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                                     
 
                                                      

                                                                    


                                                      

             

                       
                        


                                




                             
                         


                                                             
       
add_custom_target(ClangUnitTests)
set_target_properties(ClangUnitTests PROPERTIES FOLDER "Clang tests")

# add_clang_unittest(test_dirname file1.cpp file2.cpp)
#
# Will compile the list of files together and link against the clang
# Produces a binary named 'basename(test_dirname)'.
function(add_clang_unittest test_dirname)
  add_unittest(ClangUnitTests ${test_dirname} ${ARGN})
endfunction()

add_subdirectory(Basic)
add_subdirectory(Lex)
add_subdirectory(Driver)
if(CLANG_ENABLE_STATIC_ANALYZER)
  add_subdirectory(Frontend)
endif()
add_subdirectory(ASTMatchers)
add_subdirectory(AST)
add_subdirectory(Tooling)
add_subdirectory(Format)
add_subdirectory(Sema)
add_subdirectory(CodeGen)
# FIXME: Why are the libclang unit tests disabled on Windows?
if(NOT WIN32) 
  add_subdirectory(libclang)
endif()