summaryrefslogtreecommitdiff
path: root/indra/cmake/JsonCpp.cmake
blob: a9b992ab2007113657a7dbdc3cbc7cc9186e669e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- cmake -*-

include(Prebuilt)
include_guard()
add_library( ll::jsoncpp INTERFACE IMPORTED )

use_system_binary(jsoncpp)

use_prebuilt_binary(jsoncpp)
if (WINDOWS)
  target_link_libraries( ll::jsoncpp INTERFACE json_libmd.lib )
elseif (DARWIN)
  target_link_libraries( ll::jsoncpp INTERFACE libjson_darwin_libmt.a )
elseif (LINUX)
  target_link_libraries( ll::jsoncpp INTERFACE libjson_linux-gcc-11_libmt.a )
endif (WINDOWS)
target_include_directories( ll::jsoncpp SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include)