Reland "[clang-repl] Re-implement clang-interpreter as a test case."
[llvm-project.git] / lld / unittests / CMakeLists.txt
blob84d35d43f4e877473651292d0bafe93d991df5bb
1 add_custom_target(LLDUnitTests)
2 set_target_properties(LLDUnitTests PROPERTIES FOLDER "lld tests")
4 set(CMAKE_BUILD_WITH_INSTALL_RPATH OFF)
6 # add_lld_unittest(test_dirname file1.cpp file2.cpp)
8 # Will compile the list of files together and link against lld
9 # Produces a binary named 'basename(test_dirname)'.
10 function(add_lld_unittest test_dirname)
11   add_unittest(LLDUnitTests ${test_dirname} ${ARGN})
12   target_link_libraries(${test_dirname} ${LLVM_COMMON_LIBS})
13 endfunction()
15 add_subdirectory(DriverTests)
16 add_subdirectory(MachOTests)