diff --git a/README.md b/README.md index 7f136f0..0e7ca89 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 142a1a4..091e56e 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