kds_s2000w_image_converter_tests
kds_s2000w_pixel_converter_tests)
-add_custom_target(cppcheck
- ALL ${CPPCHECK}
+add_custom_command(TARGET runningtests
+ POST_BUILD
+ COMMAND ${CPPCHECK}
--check-level=exhaustive
--enable=warning,style
--inline-suppr
--error-exitcode=1
${CMAKE_SOURCE_DIR}/src
- ${CMAKE_SOURCE_DIR}/tests
- DEPENDS runningtests)
+ ${CMAKE_SOURCE_DIR}/tests)
-add_custom_target(generate_gcov_coverage
- ALL gcov ${CMAKE_BINARY_DIR}/src/CMakeFiles/sane-kds_s2000w_net-static.dir/*.c.o
- DEPENDS runningtests)
-
-add_custom_target(generate_lcov_coverage
- ALL lcov
+add_custom_command(TARGET runningtests
+ POST_BUILD
+ COMMAND gcov ${CMAKE_BINARY_DIR}/src/CMakeFiles/sane-kds_s2000w_net-static.dir/*.c.o
+ COMMAND lcov
--capture
--directory ${CMAKE_BINARY_DIR}/src/CMakeFiles/sane-kds_s2000w_net-static.dir
--exclude include*
--exclude kds_s2000w_debug.c
--exclude kds_s2000w_image_converter*.c
--output-file ${CMAKE_BINARY_DIR}/coverage.info
- DEPENDS generate_gcov_coverage)
-
-add_custom_target(generate_html_coverage
- ALL genhtml
+ COMMAND genhtml
--output-directory ${CMAKE_BINARY_DIR}/coverage
- ${CMAKE_BINARY_DIR}/coverage.info
- DEPENDS generate_lcov_coverage)
\ No newline at end of file
+ ${CMAKE_BINARY_DIR}/coverage.info)
\ No newline at end of file