From 94b7e44dfa9a0a986bf711ad877925ea7e588d87 Mon Sep 17 00:00:00 2001 From: Patrick Boettcher Date: Fri, 23 Dec 2016 09:51:41 +0100 Subject: [PATCH] cmake: add install-target --- CMakeLists.txt | 7 +++++++ README.md | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 27de78b..8eec58b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,13 @@ target_link_libraries(json-schema-validator INTERFACE json) +install( + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/src/json-schema-validator.hpp + DESTINATION + ${CMAKE_INSTALL_PREFIX}/include +) + # simple json-schema-validator-executable add_executable(json-schema-validate app/json-schema-validate.cpp) target_link_libraries(json-schema-validate json-schema-validator) diff --git a/README.md b/README.md index d3f6bec..9809a8f 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ cd build cmake .. \ -DNLOHMANN_JSON_DIR= \ -DJSON_SCHEMA_TEST_SUITE_PATH= # optional -make +make # install ``` ## Code