From 3c309a5f3bec09940714762d23f8f9a06cbed6fa Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Thu, 21 Dec 2017 09:41:04 +0200 Subject: [PATCH] Use correct add_test() format to obtain correct path to test executables --- Telegram/SourceFiles/base/tests/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/base/tests/CMakeLists.txt b/Telegram/SourceFiles/base/tests/CMakeLists.txt index 9664620c9..bfce1e534 100644 --- a/Telegram/SourceFiles/base/tests/CMakeLists.txt +++ b/Telegram/SourceFiles/base/tests/CMakeLists.txt @@ -1,11 +1,11 @@ add_executable(tests_flags flags_tests.cpp) target_link_libraries(tests_flags Qt5::Core) -add_test(flagsTest ${CMAKE_BINARY_DIR}/bin/tests_flags) +add_test(NAME flagsTest COMMAND tests_flags) add_executable(tests_flat_map flat_map_tests.cpp) target_link_libraries(tests_flat_map Qt5::Core) -add_test(flatMapTest ${CMAKE_BINARY_DIR}/bin/tests_flat_map) +add_test(NAME flatMapTest COMMAND tests_flat_map) add_executable(tests_flat_set flat_set_tests.cpp) target_link_libraries(tests_flat_set Qt5::Core) -add_test(flatSetTest ${CMAKE_BINARY_DIR}/bin/tests_flat_set) +add_test(NAME flatSetTest COMMAND tests_flat_set)