PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/cmake/JsonCpp.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 22 lines | 18 code | 3 blank | 1 comment | 3 complexity | 49ea33fa66e5d0cd604d0b500e58bf70 MD5 | raw file
 1# -*- cmake -*-
 2
 3include(Prebuilt)
 4
 5set(JSONCPP_FIND_QUIETLY ON)
 6set(JSONCPP_FIND_REQUIRED ON)
 7
 8if (STANDALONE)
 9  include(FindJsonCpp)
10else (STANDALONE)
11  use_prebuilt_binary(jsoncpp)
12  if (WINDOWS)
13    set(JSONCPP_LIBRARIES 
14      debug json_vc100debug_libmt.lib
15      optimized json_vc100_libmt)
16  elseif (DARWIN)
17    set(JSONCPP_LIBRARIES libjson_linux-gcc-4.0.1_libmt.a)
18  elseif (LINUX)
19    set(JSONCPP_LIBRARIES libjson_linux-gcc-4.1.3_libmt.a)
20  endif (WINDOWS)
21  set(JSONCPP_INCLUDE_DIRS "${LIBS_PREBUILT_DIR}/include/jsoncpp" "${LIBS_PREBUILT_DIR}/include/json")
22endif (STANDALONE)