Create an install target for the project

- define the project's version in the cmake listfile
- create a config and config version file for the cmake package
- install the json.hpp file and the package's targets, config and
config version files
This commit is contained in:
Robert Marki 2016-04-25 10:23:14 +02:00
parent 30e396043a
commit b1a2e9a715
2 changed files with 39 additions and 2 deletions

6
cmake/config.cmake.in Normal file
View file

@ -0,0 +1,6 @@
@PACKAGE_INIT@
cmake_policy(PUSH)
cmake_policy(SET CMP0024 OLD)
include(${CMAKE_CURRENT_LIST_DIR}/@JSON_TARGETS_FILENAME@)
cmake_policy(POP)