1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 16:53:14 +02:00

core: add CMake option "ENABLE_CODE_COVERAGE" to compile with code coverage options

This option is OFF by default and should be enabled only for tests, to measure
test coverage.
This commit is contained in:
Sébastien Helleu
2019-03-24 09:02:04 +01:00
parent 47c4329404
commit 2612adf899
35 changed files with 107 additions and 66 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ set_target_properties(php PROPERTIES PREFIX "")
if(PHP_FOUND)
include_directories(${PHP_INCLUDE_DIRS})
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${PHP_LDFLAGS}")
target_link_libraries(php ${PHP_LIB} weechat_plugins_scripts)
target_link_libraries(php ${PHP_LIB} weechat_plugins_scripts coverage_config)
endif()
install(TARGETS php LIBRARY DESTINATION ${LIBDIR}/plugins)