2019-12-04 01:01:46 +01:00
|
|
|
# Find package structure taken from libcurl
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
|
|
|
|
find_path(JSONCPP_INCLUDE_DIRS json/json.h)
|
|
|
|
find_library(JSONCPP_LIBRARY jsoncpp)
|
|
|
|
|
2020-04-11 22:31:39 +02:00
|
|
|
find_package_handle_standard_args(JsonCpp
|
2019-12-04 01:01:46 +01:00
|
|
|
FOUND_VAR
|
|
|
|
JSONCPP_FOUND
|
|
|
|
REQUIRED_VARS
|
|
|
|
JSONCPP_LIBRARY
|
|
|
|
JSONCPP_INCLUDE_DIRS
|
|
|
|
FAIL_MESSAGE
|
|
|
|
"Could NOT find jsoncpp"
|
|
|
|
)
|
|
|
|
|
|
|
|
set(JSONCPP_INCLUDE_DIRS ${JSONCPP_INCLUDE_DIRS})
|
|
|
|
set(JSONCPP_LIBRARIES ${JSONCPP_LIBRARY})
|