mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 18:45:38 +00:00
Use target_compile_options to add --coverage
This commit is contained in:
parent
a527db8ca7
commit
1857d8a68c
12 changed files with 12 additions and 12 deletions
|
@ -14,7 +14,7 @@ target_link_libraries(bsatool
|
||||||
)
|
)
|
||||||
|
|
||||||
if (BUILD_WITH_CODE_COVERAGE)
|
if (BUILD_WITH_CODE_COVERAGE)
|
||||||
add_definitions (--coverage)
|
target_compile_options(bsatool PRIVATE --coverage)
|
||||||
target_link_libraries(bsatool gcov)
|
target_link_libraries(bsatool gcov)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ target_link_libraries(openmw-bulletobjecttool
|
||||||
)
|
)
|
||||||
|
|
||||||
if (BUILD_WITH_CODE_COVERAGE)
|
if (BUILD_WITH_CODE_COVERAGE)
|
||||||
add_definitions(--coverage)
|
target_compile_options(openmw-bulletobjecttool PRIVATE --coverage)
|
||||||
target_link_libraries(openmw-bulletobjecttool gcov)
|
target_link_libraries(openmw-bulletobjecttool gcov)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ target_link_libraries(esmtool
|
||||||
)
|
)
|
||||||
|
|
||||||
if (BUILD_WITH_CODE_COVERAGE)
|
if (BUILD_WITH_CODE_COVERAGE)
|
||||||
add_definitions (--coverage)
|
target_compile_options(esmtool PRIVATE --coverage)
|
||||||
target_link_libraries(esmtool gcov)
|
target_link_libraries(esmtool gcov)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ target_link_libraries(openmw-essimporter
|
||||||
)
|
)
|
||||||
|
|
||||||
if (BUILD_WITH_CODE_COVERAGE)
|
if (BUILD_WITH_CODE_COVERAGE)
|
||||||
add_definitions (--coverage)
|
target_compile_options(openmw-essimporter PRIVATE --coverage)
|
||||||
target_link_libraries(openmw-essimporter gcov)
|
target_link_libraries(openmw-essimporter gcov)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@ target_link_libraries(openmw-launcher
|
||||||
target_link_libraries(openmw-launcher Qt::Widgets Qt::Core)
|
target_link_libraries(openmw-launcher Qt::Widgets Qt::Core)
|
||||||
|
|
||||||
if (BUILD_WITH_CODE_COVERAGE)
|
if (BUILD_WITH_CODE_COVERAGE)
|
||||||
add_definitions (--coverage)
|
target_compile_options(openmw-launcher PRIVATE --coverage)
|
||||||
target_link_libraries(openmw-launcher gcov)
|
target_link_libraries(openmw-launcher gcov)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ if (MINGW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (BUILD_WITH_CODE_COVERAGE)
|
if (BUILD_WITH_CODE_COVERAGE)
|
||||||
add_definitions (--coverage)
|
target_compile_options(openmw-iniimporter PRIVATE --coverage)
|
||||||
target_link_libraries(openmw-iniimporter gcov)
|
target_link_libraries(openmw-iniimporter gcov)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ target_link_libraries(openmw-navmeshtool
|
||||||
)
|
)
|
||||||
|
|
||||||
if (BUILD_WITH_CODE_COVERAGE)
|
if (BUILD_WITH_CODE_COVERAGE)
|
||||||
add_definitions(--coverage)
|
target_compile_options(openmw-navmeshtool PRIVATE --coverage)
|
||||||
target_link_libraries(openmw-navmeshtool gcov)
|
target_link_libraries(openmw-navmeshtool gcov)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ target_link_libraries(niftest
|
||||||
)
|
)
|
||||||
|
|
||||||
if (BUILD_WITH_CODE_COVERAGE)
|
if (BUILD_WITH_CODE_COVERAGE)
|
||||||
add_definitions (--coverage)
|
target_compile_options(niftest PRIVATE --coverage)
|
||||||
target_link_libraries(niftest gcov)
|
target_link_libraries(niftest gcov)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -230,7 +230,7 @@ if(APPLE)
|
||||||
endif(APPLE)
|
endif(APPLE)
|
||||||
|
|
||||||
if (BUILD_WITH_CODE_COVERAGE)
|
if (BUILD_WITH_CODE_COVERAGE)
|
||||||
add_definitions (--coverage)
|
target_compile_options(openmw PRIVATE --coverage)
|
||||||
target_link_libraries(openmw gcov)
|
target_link_libraries(openmw gcov)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,7 @@ if (UNIX AND NOT APPLE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (BUILD_WITH_CODE_COVERAGE)
|
if (BUILD_WITH_CODE_COVERAGE)
|
||||||
add_definitions(--coverage)
|
target_compile_options(openmw_test_suite PRIVATE --coverage)
|
||||||
target_link_libraries(openmw_test_suite gcov)
|
target_link_libraries(openmw_test_suite gcov)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ if(DPKG_PROGRAM)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (BUILD_WITH_CODE_COVERAGE)
|
if (BUILD_WITH_CODE_COVERAGE)
|
||||||
add_definitions (--coverage)
|
target_compile_options(openmw-wizard PRIVATE --coverage)
|
||||||
target_link_libraries(openmw-wizard gcov)
|
target_link_libraries(openmw-wizard gcov)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -487,7 +487,7 @@ if (UNIX AND NOT APPLE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (BUILD_WITH_CODE_COVERAGE)
|
if (BUILD_WITH_CODE_COVERAGE)
|
||||||
add_definitions(--coverage)
|
target_compile_options(components PRIVATE --coverage)
|
||||||
target_link_libraries(components gcov)
|
target_link_libraries(components gcov)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue