2012-12-19 08:51:07 +08:00
|
|
|
add_custom_target(LLDUnitTests)
|
|
|
|
set_target_properties(LLDUnitTests PROPERTIES FOLDER "lld tests")
|
|
|
|
|
|
|
|
# add_lld_unittest(test_dirname file1.cpp file2.cpp)
|
|
|
|
#
|
|
|
|
# Will compile the list of files together and link against lld
|
|
|
|
# Produces a binary named 'basename(test_dirname)'.
|
|
|
|
function(add_lld_unittest test_dirname)
|
|
|
|
add_unittest(LLDUnitTests ${test_dirname} ${ARGN})
|
2013-04-05 06:04:16 +08:00
|
|
|
target_link_libraries(${test_dirname} ${LLVM_COMMON_LIBS})
|
2012-12-19 08:51:07 +08:00
|
|
|
endfunction()
|
|
|
|
|
2013-04-05 06:04:16 +08:00
|
|
|
add_subdirectory(CoreTests)
|
|
|
|
add_subdirectory(DriverTests)
|
2013-10-08 08:43:34 +08:00
|
|
|
add_subdirectory(MachOTests)
|