mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 04:16:38 +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:
@@ -25,7 +25,7 @@ set_target_properties(python PROPERTIES PREFIX "")
|
||||
if(PYTHON_FOUND)
|
||||
include_directories(${PYTHON_INCLUDE_PATH})
|
||||
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${PYTHON_LFLAGS}")
|
||||
target_link_libraries(python ${PYTHON_LIBRARY} weechat_plugins_scripts)
|
||||
target_link_libraries(python ${PYTHON_LIBRARY} weechat_plugins_scripts coverage_config)
|
||||
endif()
|
||||
|
||||
install(TARGETS python LIBRARY DESTINATION ${LIBDIR}/plugins)
|
||||
|
||||
Reference in New Issue
Block a user