mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
19 lines
455 B
CMake
19 lines
455 B
CMake
find_path (JSONCPP_INCLUDE jsoncpp
|
|
HINTS
|
|
"/usr/include"
|
|
"/usr/local/include"
|
|
"/opt/local/include"
|
|
)
|
|
|
|
if (JSONCPP_INCLUDE)
|
|
message(STATUS "${green}Found Jsoncpp: ${JSONCPP_INCLUDE}")
|
|
else()
|
|
message(FATAL_ERROR "${red}Failed to locate Jsoncpp.}")
|
|
endif()
|
|
|
|
if (JSONCPP_INCLUDE)
|
|
set(JSONCPP_FOUND TRUE)
|
|
set(Jsoncpp_LIBRARIES jsoncpp)
|
|
set(Jsoncpp_INCLUDE_DIRS ${JSONCPP_INCLUDE}/jsoncpp)
|
|
endif()
|