aboutsummaryrefslogtreecommitdiff
path: root/cmake/lcov.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/lcov.cmake')
-rw-r--r--cmake/lcov.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/lcov.cmake b/cmake/lcov.cmake
new file mode 100644
index 0000000..d6f990d
--- /dev/null
+++ b/cmake/lcov.cmake
@@ -0,0 +1,4 @@
+function(target_lcov target_name)
+ target_compile_options(${target_name} INTERFACE --coverage -O0 -g)
+ target_link_libraries(${target_name} INTERFACE --coverage)
+endfunction()