Implements support for test coverage.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
db002c784f
commit
573ff56bb6
|
@ -45,7 +45,9 @@ if (WINDOWS)
|
||||||
target_link_libraries(CreatureLibLibrary -static -static-libgcc -static-libstdc++)
|
target_link_libraries(CreatureLibLibrary -static -static-libgcc -static-libstdc++)
|
||||||
target_link_libraries(CreatureLibBattling -static -static-libgcc -static-libstdc++)
|
target_link_libraries(CreatureLibBattling -static -static-libgcc -static-libstdc++)
|
||||||
target_link_libraries(CreatureLibTests -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
|
# Add a definition for the test library
|
||||||
target_compile_definitions(CreatureLibTests PRIVATE TESTS_BUILD)
|
target_compile_definitions(CreatureLibTests PRIVATE TESTS_BUILD)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage")
|
||||||
|
|
Loading…
Reference in New Issue