mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 15:39:48 +00:00
Add --coverage to components_qt, benchmarks and openmw-cs
This commit is contained in:
parent
1857d8a68c
commit
1cc4909144
3 changed files with 15 additions and 0 deletions
|
@ -13,3 +13,8 @@ endif()
|
|||
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.16 AND MSVC)
|
||||
target_precompile_headers(openmw_detournavigator_navmeshtilescache_benchmark PRIVATE <algorithm>)
|
||||
endif()
|
||||
|
||||
if (BUILD_WITH_CODE_COVERAGE)
|
||||
target_compile_options(openmw_detournavigator_navmeshtilescache_benchmark PRIVATE --coverage)
|
||||
target_link_libraries(openmw_detournavigator_navmeshtilescache_benchmark gcov)
|
||||
endif()
|
||||
|
|
|
@ -260,6 +260,11 @@ if(USE_QT)
|
|||
set_property(TARGET openmw-cs PROPERTY AUTOMOC ON)
|
||||
endif(USE_QT)
|
||||
|
||||
if (BUILD_WITH_CODE_COVERAGE)
|
||||
target_compile_options(openmw-cs PRIVATE --coverage)
|
||||
target_link_libraries(openmw-cs gcov)
|
||||
endif()
|
||||
|
||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.16 AND MSVC)
|
||||
target_precompile_headers(openmw-cs PRIVATE
|
||||
<boost/filesystem.hpp>
|
||||
|
|
|
@ -462,6 +462,11 @@ if (USE_QT)
|
|||
add_library(components_qt STATIC ${COMPONENT_QT_FILES} ${ESM_UI_HDR})
|
||||
target_link_libraries(components_qt components Qt::Widgets Qt::Core)
|
||||
target_compile_definitions(components_qt PRIVATE OPENMW_DOC_BASEURL="${OPENMW_DOC_BASEURL}")
|
||||
|
||||
if (BUILD_WITH_CODE_COVERAGE)
|
||||
target_compile_options(components_qt PRIVATE --coverage)
|
||||
target_link_libraries(components_qt gcov)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (GIT_CHECKOUT)
|
||||
|
|
Loading…
Reference in a new issue