build: + reflect dependency

This commit is contained in:
Roland Conybeare 2023-10-11 20:12:16 -04:00
commit 12d38a7e4a
2 changed files with 8 additions and 5 deletions

View file

@ -1,6 +1,6 @@
# printjson library
### build + install
# build + install
```
$ cd xo-printjson
$ mkdir build
@ -11,15 +11,18 @@ $ make
$ make install
```
### build for unit test coverage
# build for unit test coverage
```
$ cd xo-printjson
$ mkdir ccov
$ cd ccov
$ cmake -DCMAKE_MODULE_PATH=${PREFIX}/share/cmake -DCMAKE_PREFIX_PATH=${PREFIX} -DCODE_COVERAGE=ON -DCMAKE_BUILD_TYPE=Debug ..
$ make # builds executables
$ make ccov # runs instrumented unit tests
$ make ccov-all # generates lcov report
```
### LSP support
# LSP support
```
$ cd xo-printjson
$ ln -s build/compile_commands.json # lsp will look for compile_commands.json in the root of the source tree

View file

@ -1,6 +1,6 @@
@PACKAGE_INIT@
#include(CMakeFindDependencyMacro)
#find_dependency(refcnt)
include(CMakeFindDependencyMacro)
find_dependency(reflect)
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
check_required_components("@PROJECT_NAME@")