mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
UnitTests: ensure the Binaries/Tests directory exists before linking.
This commit is contained in:
parent
3d281593ba
commit
177ef615d7
@ -1,5 +1,8 @@
|
|||||||
macro(add_dolphin_test target srcs libs)
|
macro(add_dolphin_test target srcs libs)
|
||||||
add_executable(Tests/${target} EXCLUDE_FROM_ALL ${srcs})
|
add_executable(Tests/${target} EXCLUDE_FROM_ALL ${srcs})
|
||||||
|
add_custom_command(TARGET Tests/${target}
|
||||||
|
PRE_LINK
|
||||||
|
COMMAND mkdir -p ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Tests)
|
||||||
target_link_libraries(Tests/${target} ${libs} gtest)
|
target_link_libraries(Tests/${target} ${libs} gtest)
|
||||||
add_dependencies(unittests Tests/${target})
|
add_dependencies(unittests Tests/${target})
|
||||||
add_test(NAME ${target} COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Tests/${target})
|
add_test(NAME ${target} COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Tests/${target})
|
||||||
|
Loading…
Reference in New Issue
Block a user