2021-03-28 16:58:51 +02:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
|
2022-05-21 17:38:10 +02:00
|
|
|
find_path(RapidJSON_INCLUDE_DIR rapidjson/rapidjson.h HINTS ${CMAKE_SOURCE_DIR}/lib/rapidjson/include)
|
2021-03-28 16:58:51 +02:00
|
|
|
|
2022-05-21 17:38:10 +02:00
|
|
|
find_package_handle_standard_args(RapidJSON DEFAULT_MSG RapidJSON_INCLUDE_DIR)
|
2021-03-28 16:58:51 +02:00
|
|
|
|
|
|
|
if (RapidJSON_FOUND)
|
|
|
|
add_library(RapidJSON::RapidJSON INTERFACE IMPORTED)
|
|
|
|
set_target_properties(RapidJSON::RapidJSON PROPERTIES
|
2022-05-21 17:38:10 +02:00
|
|
|
INTERFACE_INCLUDE_DIRECTORIES "${RapidJSON_INCLUDE_DIR}"
|
2021-03-28 16:58:51 +02:00
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
|
2022-05-21 17:38:10 +02:00
|
|
|
mark_as_advanced(RapidJSON_INCLUDE_DIR)
|