diff --git a/README.md b/README.md index ab049018..99492884 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/cmake/printjsonConfig.cmake.in b/cmake/printjsonConfig.cmake.in index c7d8974c..e7f7f1be 100644 --- a/cmake/printjsonConfig.cmake.in +++ b/cmake/printjsonConfig.cmake.in @@ -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@")