From 0cc317b140d444d88a25edd4af2c7177cb3a0478 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Wed, 17 Apr 2024 12:36:44 -0400 Subject: [PATCH] xo-flatstring: build docs --- README.md | 3 +++ utest/CMakeLists.txt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 7f136f0e..0e7ca89b 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,9 @@ $ cmake --build .build-ccov -- ccov browse to `.build-ccov/ccov/html/index.html` +Running `cmake --install` for a coverage build will install coverage report (if generated) +to `${CMAKE_INSTALL_PREFIX}/share/doc/xo_flatstring` + ### LSP support ``` $ cd xo-flatstring diff --git a/utest/CMakeLists.txt b/utest/CMakeLists.txt index 142a1a4b..091e56ef 100644 --- a/utest/CMakeLists.txt +++ b/utest/CMakeLists.txt @@ -17,6 +17,9 @@ add_test(NAME ${SELF_EXE} COMMAND ${SELF_EXE}) set(CCOV_OUTPUT_DIR ${PROJECT_BINARY_DIR}/ccov/html) set(CCOV_INDEX_FILE ${CCOV_OUTPUT_DIR}/index.html) set(CCOV_REPORT_EXE ${PROJECT_BINARY_DIR}/gen-ccov) +# CMAKE_INSTALL_DOCDIR +# =default=> DATAROOTDIR/doc/PROJECT_NAME +# =default=> CMAKE_INSTALL_PREFIX/share/doc/xo_flatstring set(CCOV_INSTALL_DOCDIR ${CMAKE_INSTALL_DOCDIR}/ccov) # 'test' target should always be out-of-date