CMakeLists.txt 678 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
project(JsonCpp)

set(vtkjsoncpp_THIRD_PARTY 1)
set(vtkjsoncpp_LIBRARIES vtkjsoncpp)
vtk_module_export_info()

if(VTK_REQUIRE_LARGE_FILE_SUPPORT)
  add_definitions(
    -D_LARGEFILE_SOURCE
    -D_LARGEFILE64_SOURCE
    -D_LARGE_FILES
    -D_FILE_OFFSET_BITS=64
    )
endif()

set(JSONCPP_SOURCES
  jsoncpp.cpp
)

include_directories(${JSONCPP_SOURCE_DIR} ${JSONCPP_BINARY_DIR})

if(BUILD_SHARED_LIBS AND WIN32)
  add_definitions(-DJSON_DLL_BUILD)
endif()
vtk_add_library(vtkjsoncpp ${JSONCPP_SOURCES})

if(NOT VTK_INSTALL_NO_DEVELOPMENT)
  install(DIRECTORY
29
    ${JsonCpp_SOURCE_DIR}/json
30
31
32
    DESTINATION ${VTK_INSTALL_INCLUDE_DIR}/vtkjsoncpp
    COMPONENT Development)
endif()