From 573ff56bb6751020a44a1d0f884fb7f17e3327b8 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Thu, 19 Dec 2019 11:40:59 +0100 Subject: [PATCH] Implements support for test coverage. --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b90f08..575c25f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,9 @@ if (WINDOWS) target_link_libraries(CreatureLibLibrary -static -static-libgcc -static-libstdc++) target_link_libraries(CreatureLibBattling -static -static-libgcc -static-libstdc++) target_link_libraries(CreatureLibTests -static -static-libgcc -static-libstdc++) -endif(WINDOWS) +endif (WINDOWS) # Add a definition for the test library -target_compile_definitions(CreatureLibTests PRIVATE TESTS_BUILD) \ No newline at end of file +target_compile_definitions(CreatureLibTests PRIVATE TESTS_BUILD) + +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage")