File tree Expand file tree Collapse file tree 5 files changed +29
-3
lines changed Expand file tree Collapse file tree 5 files changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,15 @@ Message("################## Setting up ossim-atp-plugin #######################
3
3
4
4
cmake_minimum_required (VERSION 2.8 )
5
5
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
+
6
15
message (" OPENCV_HOME = <${OPENCV_HOME} >" )
7
16
find_package (OpenCV )
8
17
if ( OPENCV_FOUND )
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ using namespace ossim;
19
19
namespace ATP
20
20
{
21
21
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." ;
24
23
25
24
ossimAtpTool::ossimAtpTool ()
26
25
: m_outputStream (0 ),
Original file line number Diff line number Diff line change @@ -5,6 +5,15 @@ include(OssimVersion)
5
5
include (OssimCommonVariables )
6
6
include (OssimUtilities )
7
7
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
+
8
17
message (" OPENCV_HOME = <${OPENCV_HOME} >" )
9
18
find_package (OpenCV )
10
19
if ( OPENCV_FOUND )
Original file line number Diff line number Diff line change 49
49
#include < ossim/base/Thread.h>
50
50
#include < ossim/projection/ossimNitfRpcModel.h>
51
51
#include < ossim/projection/ossimQuickbirdRpcModel.h>
52
- #include < ossim/ json/json.h>
52
+ #include < json/json.h>
53
53
#include < dem/src/ossimDemTool.h>
54
54
55
55
using namespace std ;
Original file line number Diff line number Diff line change @@ -12,6 +12,15 @@ else(OSSIM_FOUND)
12
12
message (FATAL_ERROR "Could not find ossim" )
13
13
endif (OSSIM_FOUND )
14
14
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
+
15
24
add_subdirectory ( src )
16
25
17
26
message ( "************** END SETUP FOR ossim_potrace_plugin ******************" )
You can’t perform that action at this time.
0 commit comments