test binary should be named differently than tests directory
This commit is contained in:
parent
701b091833
commit
d515bc0691
@ -54,7 +54,7 @@ add_library(moviedb SHARED
|
|||||||
|
|
||||||
target_link_libraries(moviedb curl)
|
target_link_libraries(moviedb curl)
|
||||||
|
|
||||||
add_executable(tests
|
add_executable(test
|
||||||
tests/tests.cpp
|
tests/tests.cpp
|
||||||
rename_object.cpp
|
rename_object.cpp
|
||||||
functions.cpp
|
functions.cpp
|
||||||
@ -63,6 +63,6 @@ add_executable(tests
|
|||||||
jwt.cpp
|
jwt.cpp
|
||||||
)
|
)
|
||||||
set_source_files_properties(tests/tests.cpp PROPERTIES COMPILE_OPTIONS "--coverage;-g;-fsanitize=address,undefined")
|
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_compile_options(test PUBLIC -Wall -fprofile-arcs -ftest-coverage --coverage -g)
|
||||||
target_link_options(tests PUBLIC --coverage -Wall -fprofile-arcs -ftest-coverage -fsanitize=address,undefined)
|
target_link_options(test PUBLIC --coverage -Wall -fprofile-arcs -ftest-coverage -fsanitize=address,undefined)
|
||||||
target_link_libraries(tests PRIVATE restbed config++ jwt Catch2::Catch2WithMain)
|
target_link_libraries(test PRIVATE restbed config++ jwt Catch2::Catch2WithMain)
|
||||||
|
Loading…
Reference in New Issue
Block a user