Use correct add_test() format to obtain correct path to test executables

This commit is contained in:
Berkus Decker 2017-12-21 09:41:04 +02:00 committed by Stanislav Ershov
parent f6eb504ab7
commit 3c309a5f3b
1 changed files with 3 additions and 3 deletions

View File

@ -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)