Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:ossimlabs/ossim into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Garrett Potts committed May 26, 2020
2 parents 167ff35 + 50acf3a commit 71fcf4f
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 4 deletions.
30 changes: 30 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
PROJECT(ossim)
############################################################
# From https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/RPATH-handling
#
# Use, don't skip, the full RPATH for the build tree
set(CMAKE_SKIP_BUILD_RPATH FALSE)

# When building, don't use the install RPATH already
# (but later on when installing)
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)

set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")

# add the automatically determined parts of the RPATH
# which point to directories outside the build tree to the install RPATH
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)

# the RPATH to be used when installing, but only if it's not a system directory
list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir)
if("${isSystemDir}" STREQUAL "-1")
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
endif("${isSystemDir}" STREQUAL "-1")
#################################################################



SET(CMAKE_MODULE_PATH "${${PROJECT_NAME}_SOURCE_DIR}/cmake/CMakeModules;${CMAKE_MODULE_PATH}")

set(CMAKE_CXX_STANDARD 11)
Expand All @@ -23,6 +48,7 @@ INCLUDE(OssimCommonVariables)
# Expose some build options
set(LIB_NAME ossim CACHE STRING "Name of ossim libray (default is ossim).")
OPTION(BUILD_OSSIM_FREETYPE_SUPPORT "Set to ON to build OSSIM with freetype support. Use OFF to turn off freetype support." ON)
OPTION(BUILD_OSSIM_HDF5_SUPPORT "Set to ON to build OSSIM with HDF5 support. Use OFF to turn off HDF5 support." OFF)
OPTION(BUILD_OSSIM_MPI_SUPPORT "Set to ON to build OSSIM with MPI support. Use OFF to turn off MPI support." OFF)
OPTION(BUILD_OSSIM_ID_SUPPORT "Set to ON to build OSSIM GIT ID support into the library. Use OFF to turn off ID support." ON)

Expand Down Expand Up @@ -155,7 +181,11 @@ set( OSSIM_HAS_MPI 0 )
if( BUILD_OSSIM_MPI_SUPPORT )
find_package(MPI)
if ( MPI_FOUND )
# /usr/share/cmake/Modules/FindMPI.cmae are not consistent in terminology,
# so we include multiple list names, knowing some will be empty
include_directories( ${MPI_INCLUDE_DIR} )
include_directories( ${MPI_CXX_INCLUDE_PATH} ${MPI_CXX_INCLUDE_DIRS} )
include_directories( ${MPI_C_INCLUDE_PATH} ${MPI_C_INCLUDE_DIRS} )
set( ossimDependentLibs ${ossimDependentLibs} ${MPI_LIBRARIES} )
set( OSSIM_HAS_MPI 1 )
else ( MPI_FOUND )
Expand Down
6 changes: 3 additions & 3 deletions include/ossim/projection/ossimRpcModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ class OSSIMDLLEXPORT ossimRpcModel : public ossimSensorModel
/** @brief copy construtor */
ossimRpcModel(const ossimRpcModel& copy_this);

/** @brief virtual destructor */
virtual ~ossimRpcModel();

void setAttributes(ossim_float64 theSampleOffset,
ossim_float64 theLineOffset,
ossim_float64 theSampleScale,
Expand Down Expand Up @@ -240,9 +243,6 @@ class OSSIMDLLEXPORT ossimRpcModel : public ossimSensorModel
NUM_ADJUSTABLE_PARAMS // not an index
};

/** @brief virtual destructor */
virtual ~ossimRpcModel();

//***
// Methods for computing RPC polynomial and its derivatives:
//***
Expand Down
8 changes: 8 additions & 0 deletions scripts/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,14 @@ if [ -d $OSSIM_DEV_HOME/ossim-plugins ] ; then
fi
fi

if [ -d $OSSIM_DEV_HOME/ossim-deepcore ] ; then
if [ -z $BUILD_OSSIM_DEEPCORE ] ; then
export BUILD_OSSIM_DEEPCORE=ON
fi
else
export BUILD_OSSIM_DEEPCORE=OFF
fi

# if [ -z $OSSIM_BUILD_ADDITIONAL_DIRECTORIES ] ; then
# if [ -d $OSSIM_DEV_HOME/ossim-private/ossim-kakadu-jpip-server ]; then
# export OSSIM_BUILD_ADDITIONAL_DIRECTORIES=$OSSIM_DEV_HOME/ossim-private/ossim-kakadu-jpip-server
Expand Down
9 changes: 8 additions & 1 deletion scripts/ossim-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ else
export BUILD_OSSIM_WMS=OFF
fi


if [ -d $OSSIM_DEV_HOME/ossim-plugins ] ; then

if [ -z $BUILD_CNES_PLUGIN ] ; then
Expand Down Expand Up @@ -236,6 +235,14 @@ if [ -d $OSSIM_DEV_HOME/ossim-plugins ] ; then
fi
fi

if [ -d $OSSIM_DEV_HOME/ossim-deepcore ] ; then
if [ -z $BUILD_OSSIM_DEEPCORE ] ; then
export BUILD_OSSIM_DEEPCORE=ON
fi
else
export BUILD_OSSIM_DEEPCORE=OFF
fi

# if [ -z $OSSIM_BUILD_ADDITIONAL_DIRECTORIES ] ; then
# if [ -d $OSSIM_DEV_HOME/ossim-private/ossim-kakadu-jpip-server ]; then
# export OSSIM_BUILD_ADDITIONAL_DIRECTORIES=$OSSIM_DEV_HOME/ossim-private/ossim-kakadu-jpip-server
Expand Down

0 comments on commit 71fcf4f

Please sign in to comment.