summaryrefslogtreecommitdiffstats
path: root/src/s3select/rapidjson/RapidJSONConfig.cmake.in
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
commite6918187568dbd01842d8d1d2c808ce16a894239 (patch)
tree64f88b554b444a49f656b6c656111a145cbbaa28 /src/s3select/rapidjson/RapidJSONConfig.cmake.in
parentInitial commit. (diff)
downloadceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz
ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/s3select/rapidjson/RapidJSONConfig.cmake.in')
-rw-r--r--src/s3select/rapidjson/RapidJSONConfig.cmake.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/s3select/rapidjson/RapidJSONConfig.cmake.in b/src/s3select/rapidjson/RapidJSONConfig.cmake.in
new file mode 100644
index 000000000..c25d31258
--- /dev/null
+++ b/src/s3select/rapidjson/RapidJSONConfig.cmake.in
@@ -0,0 +1,25 @@
+################################################################################
+# CMake minimum version required
+cmake_minimum_required(VERSION 3.0)
+
+################################################################################
+# RapidJSON source dir
+set( RapidJSON_SOURCE_DIR "@CONFIG_SOURCE_DIR@")
+
+################################################################################
+# RapidJSON build dir
+set( RapidJSON_DIR "@CONFIG_DIR@")
+
+################################################################################
+# Compute paths
+get_filename_component(RapidJSON_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+
+set( RapidJSON_INCLUDE_DIR "@RapidJSON_INCLUDE_DIR@" )
+set( RapidJSON_INCLUDE_DIRS "@RapidJSON_INCLUDE_DIR@" )
+message(STATUS "RapidJSON found. Headers: ${RapidJSON_INCLUDE_DIRS}")
+
+if(NOT TARGET rapidjson)
+ add_library(rapidjson INTERFACE IMPORTED)
+ set_property(TARGET rapidjson PROPERTY
+ INTERFACE_INCLUDE_DIRECTORIES ${RapidJSON_INCLUDE_DIRS})
+endif()