subrepo: subdir: "xo-printjson" merged: "c5c01502" upstream: origin: "git@github.com:Rconybea/xo-printjson.git" branch: "main" commit: "c5c01502" git-subrepo: version: "0.4.9" origin: "???" commit: "???"
902 B
902 B
printjson library
Getting Started
build + install dependencies
build + install
$ cd xo-printjson
$ mkdir build
$ cd build
$ PREFIX=/usr/local # or wherever you prefer
$ cmake -DCMAKE_MODULE_PATH=${PREFIX}/share/cmake -DCMAKE_PREFIX_PATH=${PREFIX} -DCMAKE_INSTALL_PREFIX=${PREFIX} ..
$ make
$ make install
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
$ cd xo-printjson
$ ln -s build/compile_commands.json # lsp will look for compile_commands.json in the root of the source tree