Compare commits

..

2 Commits

2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.0) cmake_minimum_required(VERSION 3.0)
project(myx-cmake VERSION 0.4.0 LANGUAGES) project(myx-cmake VERSION 0.4.1 LANGUAGES)
include(GNUInstallDirs) include(GNUInstallDirs)
file(WRITE ${CMAKE_SOURCE_DIR}/MyxCMake/MyxCMakeConfigVersion.cmake file(WRITE ${CMAKE_SOURCE_DIR}/MyxCMake/MyxCMakeConfigVersion.cmake

View File

@ -17,8 +17,10 @@ function(myx_cmake_code_coverage target)
add_custom_target( add_custom_target(
${target}-coverage ${target}-coverage
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
COMMAND ${LCOV_EXE} --test-name ${target} --output "${target}.lcov" COMMAND ${LCOV_EXE} --test-name ${target} --output "${target}.lcov" --capture
--capture --directory ${CMAKE_BINARY_DIR}) --exclude "/usr/\\\*"
--exclude "${CMAKE_BINARY_DIR}/\\\*"
--directory ${CMAKE_BINARY_DIR})
add_dependencies(${target}-coverage ${target}) add_dependencies(${target}-coverage ${target})
if(GENHTML_EXE) if(GENHTML_EXE)