Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndriy Senkovych <jolly_roger@itblog.org.ua>2014-11-04 01:36:24 +0300
committerAndriy Senkovych <jolly_roger@itblog.org.ua>2014-11-11 18:26:59 +0300
commit8ae1c971ea833fed0640dd87abdeb3374ce890e7 (patch)
tree4edb218eeb3a4776e6fdb1f8b9a11bece86540dd /RapidJSONConfig.cmake.in
parent8d4405cf6309acb89c2cffad4bd5c19ff23b3584 (diff)
Add initial CMake support
* Support for both in-source and out-of-source builds * Set library version to 0.12 to map Debian package * Add separate options to build tests, examples and documentation * Add pkgconfig lookup support (if installed with `make install`) * Add CMake lookup support (if isntalled with `make install`) * Add Google Test Source lookup * Add CTest support for running tests (use `make test` or `ctest -V`)
Diffstat (limited to 'RapidJSONConfig.cmake.in')
-rw-r--r--RapidJSONConfig.cmake.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/RapidJSONConfig.cmake.in b/RapidJSONConfig.cmake.in
new file mode 100644
index 00000000..9fa12186
--- /dev/null
+++ b/RapidJSONConfig.cmake.in
@@ -0,0 +1,3 @@
+get_filename_component(RAPIDJSON_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+set(RAPIDJSON_INCLUDE_DIRS "@INCLUDE_INSTALL_DIR@")
+message(STATUS "RapidJSON found. Headers: ${RAPIDJSON_INCLUDE_DIRS}")