summaryrefslogtreecommitdiff
path: root/Source/UnitTests
diff options
context:
space:
mode:
authorMichael Maltese <michaeljosephmaltese@gmail.com>2017-05-20 16:00:55 -0700
committerMichael Maltese <michaeljosephmaltese@gmail.com>2017-05-22 00:19:13 -0700
commit942cbd3c8d579796e2eb47c47483ae20191fc421 (patch)
treeaa8364a628f94c49e1a3ff5ba34238e31613aac7 /Source/UnitTests
parentbd178ea3c689048921b69f4388a812bff831ee21 (diff)
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.
Diffstat (limited to 'Source/UnitTests')
-rw-r--r--Source/UnitTests/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/UnitTests/CMakeLists.txt b/Source/UnitTests/CMakeLists.txt
index a884724444..b06d4a1ce1 100644
--- a/Source/UnitTests/CMakeLists.txt
+++ b/Source/UnitTests/CMakeLists.txt
@@ -12,13 +12,13 @@ macro(add_dolphin_test target srcs)
# core, but before other core dependencies like videocommon which also use
# Host_ functions.
set(srcs2 ${srcs} ${CMAKE_SOURCE_DIR}/Source/UnitTests/TestUtils/StubHost.cpp ${ARGN})
- add_executable(Test_${target} EXCLUDE_FROM_ALL ${srcs2})
- set_target_properties(Test_${target} PROPERTIES
+ add_executable(${target} EXCLUDE_FROM_ALL ${srcs2})
+ set_target_properties(${target} PROPERTIES
OUTPUT_NAME Tests/${target}
FOLDER Tests
)
- target_link_libraries(Test_${target} ${LIBS})
- add_dependencies(unittests Test_${target})
+ target_link_libraries(${target} ${LIBS})
+ add_dependencies(unittests ${target})
add_test(NAME ${target} COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Tests/${target})
endmacro()