xo-flatstring: build docs

This commit is contained in:
Roland Conybeare 2024-04-17 12:36:44 -04:00
commit 0cc317b140
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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