aboutsummaryrefslogtreecommitdiff
path: root/cmake/LCov.cmake
diff options
context:
space:
mode:
authorJoe Hildebrand <joe-github@cursive.net>2015-03-31 00:21:21 -0600
committerJoe Hildebrand <joe-github@cursive.net>2015-03-31 00:21:21 -0600
commit7c6c3569f73a22882b4d26d2c5cf74b8d2a531f6 (patch)
tree558d9cc71ed74fda45c4f4e123915b08465ec110 /cmake/LCov.cmake
parentbeee57de2a891ac8cdb206bb69aa838c19b99d50 (diff)
downloadcn-cbor-7c6c3569f73a22882b4d26d2c5cf74b8d2a531f6.tar.gz
cmake working
Diffstat (limited to 'cmake/LCov.cmake')
-rw-r--r--cmake/LCov.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/LCov.cmake b/cmake/LCov.cmake
new file mode 100644
index 0000000..ebdc665
--- /dev/null
+++ b/cmake/LCov.cmake
@@ -0,0 +1,6 @@
+# TODO: parameterize for reuse
+add_custom_target(coverage_report
+ COMMAND lcov --directory src/CMakeFiles/cn-cbor.dir --capture --output-file cn-cbor.info
+ COMMAND genhtml --output-directory lcov cn-cbor.info
+ COMMAND echo "Coverage report in: file://${CMAKE_BINARY_DIR}/lcov/index.html"
+)