From d515bc069198e84a1efa2df832fecee9b3a83f6c Mon Sep 17 00:00:00 2001 From: zvon Date: Thu, 29 Sep 2022 00:11:09 +0200 Subject: [PATCH] test binary should be named differently than tests directory --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a78bf93..ee02141 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,7 @@ add_library(moviedb SHARED target_link_libraries(moviedb curl) -add_executable(tests +add_executable(test tests/tests.cpp rename_object.cpp functions.cpp @@ -63,6 +63,6 @@ add_executable(tests jwt.cpp ) set_source_files_properties(tests/tests.cpp PROPERTIES COMPILE_OPTIONS "--coverage;-g;-fsanitize=address,undefined") -target_compile_options(tests PUBLIC -Wall -fprofile-arcs -ftest-coverage --coverage -g) -target_link_options(tests PUBLIC --coverage -Wall -fprofile-arcs -ftest-coverage -fsanitize=address,undefined) -target_link_libraries(tests PRIVATE restbed config++ jwt Catch2::Catch2WithMain) +target_compile_options(test PUBLIC -Wall -fprofile-arcs -ftest-coverage --coverage -g) +target_link_options(test PUBLIC --coverage -Wall -fprofile-arcs -ftest-coverage -fsanitize=address,undefined) +target_link_libraries(test PRIVATE restbed config++ jwt Catch2::Catch2WithMain)