1add_custom_target(LLDUnitTests)
2set_target_properties(LLDUnitTests PROPERTIES FOLDER "lld tests")
3
4set(CMAKE_BUILD_WITH_INSTALL_RPATH OFF)
5
6# add_lld_unittest(test_dirname file1.cpp file2.cpp)
7#
8# Will compile the list of files together and link against lld
9# Produces a binary named 'basename(test_dirname)'.
10function(add_lld_unittest test_dirname)
11  add_unittest(LLDUnitTests ${test_dirname} ${ARGN})
12  target_link_libraries(${test_dirname} ${LLVM_COMMON_LIBS})
13endfunction()
14
15add_subdirectory(DriverTests)
16add_subdirectory(MachOTests)
17