Skip to content

Commit c2212ea

Browse files
author
oscarkramer
committed
Added option of using amalgamated jsoncpp or external package
1 parent d8a603b commit c2212ea

File tree

5 files changed

+29
-3
lines changed

5 files changed

+29
-3
lines changed

atp/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ Message("################## Setting up ossim-atp-plugin #######################
33

44
cmake_minimum_required(VERSION 2.8)
55

6+
find_package( JsonCpp )
7+
if( JSONCPP_FOUND )
8+
include_directories( ${JSONCPP_INCLUDE_DIR} )
9+
set( requiredLibs ${requiredLibs} ${JSONCPP_LIBRARY} )
10+
message("Found JsonCpp" )
11+
else( JSONCPP_FOUND )
12+
message( FATAL_ERROR "Could not find required JsonCpp package!" )
13+
endif( JSONCPP_FOUND )
14+
615
message(" OPENCV_HOME = <${OPENCV_HOME}>")
716
find_package(OpenCV)
817
if( OPENCV_FOUND )

atp/src/ossimAtpTool.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ using namespace ossim;
1919
namespace ATP
2020
{
2121
const char* ossimAtpTool::DESCRIPTION =
22-
"Provides automatic tiepoint generation functionality. This tool uses JSON format to "
23-
"communicate requests and results.";
22+
"Provides automatic tiepoint generation functionality.";
2423

2524
ossimAtpTool::ossimAtpTool()
2625
: m_outputStream (0),

dem/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ include(OssimVersion)
55
include(OssimCommonVariables)
66
include(OssimUtilities)
77

8+
find_package( JsonCpp )
9+
if( JSONCPP_FOUND )
10+
include_directories( ${JSONCPP_INCLUDE_DIR} )
11+
set( requiredLibs ${requiredLibs} ${JSONCPP_LIBRARY} )
12+
message("Found JsonCpp" )
13+
else( JSONCPP_FOUND )
14+
message( FATAL_ERROR "Could not find required JsonCpp package!" )
15+
endif( JSONCPP_FOUND )
16+
817
message(" OPENCV_HOME = <${OPENCV_HOME}>")
918
find_package(OpenCV)
1019
if( OPENCV_FOUND )

dem/test/dem-test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
#include <ossim/base/Thread.h>
5050
#include <ossim/projection/ossimNitfRpcModel.h>
5151
#include <ossim/projection/ossimQuickbirdRpcModel.h>
52-
#include <ossim/json/json.h>
52+
#include <json/json.h>
5353
#include <dem/src/ossimDemTool.h>
5454

5555
using namespace std;

potrace/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ else(OSSIM_FOUND)
1212
message(FATAL_ERROR "Could not find ossim")
1313
endif(OSSIM_FOUND)
1414

15+
find_package( JsonCpp )
16+
if( JSONCPP_FOUND )
17+
include_directories( ${JSONCPP_INCLUDE_DIR} )
18+
set( requiredLibs ${requiredLibs} ${JSONCPP_LIBRARY} )
19+
message("Found JsonCpp" )
20+
else( JSONCPP_FOUND )
21+
message( FATAL_ERROR "Could not find required JsonCpp package!" )
22+
endif( JSONCPP_FOUND )
23+
1524
add_subdirectory( src )
1625

1726
message( "************** END SETUP FOR ossim_potrace_plugin ******************" )

0 commit comments

Comments
 (0)