2021-02-13 10:40:27 +01:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
|
|
|
|
find_path(RapidJSON_INCLUDE_DIRS rapidjson/rapidjson.h HINTS ${CMAKE_SOURCE_DIR}/lib/rapidjson/include)
|
|
|
|
|
2021-02-24 12:01:39 +01:00
|
|
|
find_package_handle_standard_args(RapidJSON DEFAULT_MSG RapidJSON_INCLUDE_DIRS)
|
2021-02-13 10:40:27 +01:00
|
|
|
|
2021-02-24 12:01:39 +01:00
|
|
|
if (RapidJSON_FOUND)
|
|
|
|
add_library(RapidJSON::RapidJSON INTERFACE IMPORTED)
|
|
|
|
set_target_properties(RapidJSON::RapidJSON PROPERTIES
|
2021-02-13 10:40:27 +01:00
|
|
|
INTERFACE_INCLUDE_DIRECTORIES "${RapidJSON_INCLUDE_DIRS}"
|
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
|
2021-02-21 15:22:12 +01:00
|
|
|
mark_as_advanced(RapidJSON_INCLUDE_DIRS)
|