Skip to content

Commit

Permalink
Added option of using amalgamated jsoncpp or external package
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarkramer committed Sep 20, 2019
1 parent d8a603b commit c2212ea
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 3 deletions.
9 changes: 9 additions & 0 deletions atp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ Message("################## Setting up ossim-atp-plugin #######################

cmake_minimum_required(VERSION 2.8)

find_package( JsonCpp )
if( JSONCPP_FOUND )
include_directories( ${JSONCPP_INCLUDE_DIR} )
set( requiredLibs ${requiredLibs} ${JSONCPP_LIBRARY} )
message("Found JsonCpp" )
else( JSONCPP_FOUND )
message( FATAL_ERROR "Could not find required JsonCpp package!" )
endif( JSONCPP_FOUND )

message(" OPENCV_HOME = <${OPENCV_HOME}>")
find_package(OpenCV)
if( OPENCV_FOUND )
Expand Down
3 changes: 1 addition & 2 deletions atp/src/ossimAtpTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ using namespace ossim;
namespace ATP
{
const char* ossimAtpTool::DESCRIPTION =
"Provides automatic tiepoint generation functionality. This tool uses JSON format to "
"communicate requests and results.";
"Provides automatic tiepoint generation functionality.";

ossimAtpTool::ossimAtpTool()
: m_outputStream (0),
Expand Down
9 changes: 9 additions & 0 deletions dem/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ include(OssimVersion)
include(OssimCommonVariables)
include(OssimUtilities)

find_package( JsonCpp )
if( JSONCPP_FOUND )
include_directories( ${JSONCPP_INCLUDE_DIR} )
set( requiredLibs ${requiredLibs} ${JSONCPP_LIBRARY} )
message("Found JsonCpp" )
else( JSONCPP_FOUND )
message( FATAL_ERROR "Could not find required JsonCpp package!" )
endif( JSONCPP_FOUND )

message(" OPENCV_HOME = <${OPENCV_HOME}>")
find_package(OpenCV)
if( OPENCV_FOUND )
Expand Down
2 changes: 1 addition & 1 deletion dem/test/dem-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#include <ossim/base/Thread.h>
#include <ossim/projection/ossimNitfRpcModel.h>
#include <ossim/projection/ossimQuickbirdRpcModel.h>
#include <ossim/json/json.h>
#include <json/json.h>
#include <dem/src/ossimDemTool.h>

using namespace std;
Expand Down
9 changes: 9 additions & 0 deletions potrace/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ else(OSSIM_FOUND)
message(FATAL_ERROR "Could not find ossim")
endif(OSSIM_FOUND)

find_package( JsonCpp )
if( JSONCPP_FOUND )
include_directories( ${JSONCPP_INCLUDE_DIR} )
set( requiredLibs ${requiredLibs} ${JSONCPP_LIBRARY} )
message("Found JsonCpp" )
else( JSONCPP_FOUND )
message( FATAL_ERROR "Could not find required JsonCpp package!" )
endif( JSONCPP_FOUND )

add_subdirectory( src )

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

0 comments on commit c2212ea

Please sign in to comment.