mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 15:01:16 +01:00
CMake: pass all srcs to add_test in ARGN
This commit is contained in:
parent
9d130b52f7
commit
87d64afe19
@ -13,10 +13,11 @@ file(MAKE_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Tests)
|
||||
# GNU linker complain.
|
||||
add_library(unittests_stubhost OBJECT TestUtils/StubHost.cpp)
|
||||
|
||||
macro(add_dolphin_test target srcs)
|
||||
|
||||
set(srcs2 ${srcs} $<TARGET_OBJECTS:unittests_stubhost> ${ARGN})
|
||||
add_executable(${target} EXCLUDE_FROM_ALL ${srcs2})
|
||||
macro(add_dolphin_test target)
|
||||
add_executable(${target} EXCLUDE_FROM_ALL
|
||||
${ARGN}
|
||||
$<TARGET_OBJECTS:unittests_stubhost>
|
||||
)
|
||||
set_target_properties(${target} PROPERTIES
|
||||
OUTPUT_NAME Tests/${target}
|
||||
FOLDER Tests
|
||||
|
Loading…
x
Reference in New Issue
Block a user