Use target_compile_options to add --coverage

depth-refraction
elsid 1 year ago
parent a527db8ca7
commit 1857d8a68c
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -14,7 +14,7 @@ target_link_libraries(bsatool
)
if (BUILD_WITH_CODE_COVERAGE)
add_definitions (--coverage)
target_compile_options(bsatool PRIVATE --coverage)
target_link_libraries(bsatool gcov)
endif()

@ -11,7 +11,7 @@ target_link_libraries(openmw-bulletobjecttool
)
if (BUILD_WITH_CODE_COVERAGE)
add_definitions(--coverage)
target_compile_options(openmw-bulletobjecttool PRIVATE --coverage)
target_link_libraries(openmw-bulletobjecttool gcov)
endif()

@ -21,7 +21,7 @@ target_link_libraries(esmtool
)
if (BUILD_WITH_CODE_COVERAGE)
add_definitions (--coverage)
target_compile_options(esmtool PRIVATE --coverage)
target_link_libraries(esmtool gcov)
endif()

@ -39,7 +39,7 @@ target_link_libraries(openmw-essimporter
)
if (BUILD_WITH_CODE_COVERAGE)
add_definitions (--coverage)
target_compile_options(openmw-essimporter PRIVATE --coverage)
target_link_libraries(openmw-essimporter gcov)
endif()

@ -85,7 +85,7 @@ target_link_libraries(openmw-launcher
target_link_libraries(openmw-launcher Qt::Widgets Qt::Core)
if (BUILD_WITH_CODE_COVERAGE)
add_definitions (--coverage)
target_compile_options(openmw-launcher PRIVATE --coverage)
target_link_libraries(openmw-launcher gcov)
endif()

@ -29,7 +29,7 @@ if (MINGW)
endif()
if (BUILD_WITH_CODE_COVERAGE)
add_definitions (--coverage)
target_compile_options(openmw-iniimporter PRIVATE --coverage)
target_link_libraries(openmw-iniimporter gcov)
endif()

@ -13,7 +13,7 @@ target_link_libraries(openmw-navmeshtool
)
if (BUILD_WITH_CODE_COVERAGE)
add_definitions(--coverage)
target_compile_options(openmw-navmeshtool PRIVATE --coverage)
target_link_libraries(openmw-navmeshtool gcov)
endif()

@ -13,7 +13,7 @@ target_link_libraries(niftest
)
if (BUILD_WITH_CODE_COVERAGE)
add_definitions (--coverage)
target_compile_options(niftest PRIVATE --coverage)
target_link_libraries(niftest gcov)
endif()

@ -230,7 +230,7 @@ if(APPLE)
endif(APPLE)
if (BUILD_WITH_CODE_COVERAGE)
add_definitions (--coverage)
target_compile_options(openmw PRIVATE --coverage)
target_link_libraries(openmw gcov)
endif()

@ -108,7 +108,7 @@ if (UNIX AND NOT APPLE)
endif()
if (BUILD_WITH_CODE_COVERAGE)
add_definitions(--coverage)
target_compile_options(openmw_test_suite PRIVATE --coverage)
target_link_libraries(openmw_test_suite gcov)
endif()

@ -94,7 +94,7 @@ if(DPKG_PROGRAM)
endif()
if (BUILD_WITH_CODE_COVERAGE)
add_definitions (--coverage)
target_compile_options(openmw-wizard PRIVATE --coverage)
target_link_libraries(openmw-wizard gcov)
endif()

@ -487,7 +487,7 @@ if (UNIX AND NOT APPLE)
endif()
if (BUILD_WITH_CODE_COVERAGE)
add_definitions(--coverage)
target_compile_options(components PRIVATE --coverage)
target_link_libraries(components gcov)
endif()

Loading…
Cancel
Save