add cmake install targets

This commit is contained in:
BlackMATov
2023-01-05 08:58:13 +07:00
parent caf82fc66f
commit 6c5f8a8427
10 changed files with 143 additions and 38 deletions

View File

@@ -1,9 +1,10 @@
# https://clang.llvm.org/docs/SourceBasedCodeCoverage.html
add_library(enable_gcov INTERFACE)
add_library(${PROJECT_NAME}.enable_gcov INTERFACE)
add_library(${PROJECT_NAME}::enable_gcov ALIAS ${PROJECT_NAME}.enable_gcov)
target_compile_options(enable_gcov INTERFACE
target_compile_options(${PROJECT_NAME}.enable_gcov INTERFACE
--coverage)
target_link_options(enable_gcov INTERFACE
target_link_options(${PROJECT_NAME}.enable_gcov INTERFACE
--coverage)