Merge branch 'dietoref1-2prep-2-3-4-5-6-7-dwzpair-altlink-sharedstmt-dieref-dwz3...
[lldb.git] / lld / unittests / CMakeLists.txt
1 add_custom_target(LLDUnitTests)
2 set_target_properties(LLDUnitTests PROPERTIES FOLDER "lld tests")
3
4 set(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)'.
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()
14
15 add_subdirectory(DriverTests)
16 add_subdirectory(MachOTests)