1add_custom_target(UnitTests) 2set_target_properties(UnitTests PROPERTIES FOLDER "Tests") 3 4function(add_llvm_unittest test_dirname) 5 add_unittest(UnitTests ${test_dirname} ${ARGN}) 6endfunction() 7function(add_llvm_unittest_with_input_files test_dirname) 8 add_unittest_with_input_files(UnitTests ${test_dirname} ${ARGN}) 9endfunction() 10 11# The target unittests may test APIs that aren't exported in libLLVM.so, so 12# we need to always link against the static libraries. 13function(add_llvm_target_unittest test_dir_name) 14 add_llvm_unittest(${test_dir_name} DISABLE_LLVM_LINK_LLVM_DYLIB ${ARGN}) 15endfunction() 16 17add_subdirectory(ADT) 18add_subdirectory(Analysis) 19add_subdirectory(AsmParser) 20add_subdirectory(BinaryFormat) 21add_subdirectory(Bitcode) 22add_subdirectory(Bitstream) 23add_subdirectory(CodeGen) 24add_subdirectory(DebugInfo) 25add_subdirectory(Demangle) 26add_subdirectory(ExecutionEngine) 27add_subdirectory(FileCheck) 28add_subdirectory(Frontend) 29add_subdirectory(FuzzMutate) 30add_subdirectory(InterfaceStub) 31add_subdirectory(IR) 32add_subdirectory(LineEditor) 33add_subdirectory(Linker) 34add_subdirectory(MC) 35add_subdirectory(MI) 36add_subdirectory(Object) 37add_subdirectory(ObjectYAML) 38add_subdirectory(Option) 39add_subdirectory(Remarks) 40add_subdirectory(Passes) 41add_subdirectory(ProfileData) 42add_subdirectory(Support) 43add_subdirectory(TableGen) 44add_subdirectory(Target) 45add_subdirectory(TextAPI) 46add_subdirectory(Transforms) 47add_subdirectory(XRay) 48add_subdirectory(tools) 49