CMake: don't prefix test targets with Test_
The current prefixing makes it harder to build test executables directly from the command line, since the target name breaks CMake convention and doesn't match the name passed to `add_dolphin_test`. They all have "Test" somewhere in the name anyways.
This commit is contained in:
parent
bd178ea3c6
commit
942cbd3c8d
|
@ -12,13 +12,13 @@ macro(add_dolphin_test target srcs)
|
||||||
# core, but before other core dependencies like videocommon which also use
|
# core, but before other core dependencies like videocommon which also use
|
||||||
# Host_ functions.
|
# Host_ functions.
|
||||||
set(srcs2 ${srcs} ${CMAKE_SOURCE_DIR}/Source/UnitTests/TestUtils/StubHost.cpp ${ARGN})
|
set(srcs2 ${srcs} ${CMAKE_SOURCE_DIR}/Source/UnitTests/TestUtils/StubHost.cpp ${ARGN})
|
||||||
add_executable(Test_${target} EXCLUDE_FROM_ALL ${srcs2})
|
add_executable(${target} EXCLUDE_FROM_ALL ${srcs2})
|
||||||
set_target_properties(Test_${target} PROPERTIES
|
set_target_properties(${target} PROPERTIES
|
||||||
OUTPUT_NAME Tests/${target}
|
OUTPUT_NAME Tests/${target}
|
||||||
FOLDER Tests
|
FOLDER Tests
|
||||||
)
|
)
|
||||||
target_link_libraries(Test_${target} ${LIBS})
|
target_link_libraries(${target} ${LIBS})
|
||||||
add_dependencies(unittests Test_${target})
|
add_dependencies(unittests ${target})
|
||||||
add_test(NAME ${target} COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Tests/${target})
|
add_test(NAME ${target} COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Tests/${target})
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue