This is an automated email from the git hooks/post-receive script. sebastic pushed a commit to branch master in repository ossim-planet-qt.
commit d062c8b83ca3ae0ac326de1e12ce1a1352d1d7bd Author: Bas Couwenberg <sebas...@xs4all.nl> Date: Sat Jun 4 15:45:33 2016 +0200 Initial Debian packaging. --- debian/README.source | 10 + debian/changelog | 5 + debian/compat | 1 + debian/control | 46 + debian/copyright | 142 +++ debian/gbp.conf | 16 + debian/patches/cmake.patch | 2733 ++++++++++++++++++++++++++++++++++++++++++++ debian/patches/series | 1 + debian/rules | 24 + debian/source/format | 1 + debian/upstream/metadata | 6 + debian/watch | 7 + 12 files changed, 2992 insertions(+) diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..d54dde9 --- /dev/null +++ b/debian/README.source @@ -0,0 +1,10 @@ +OSSIM Planet Qt for Debian +-------------------------- + +The ossimPlanetQt subdirectory in the upstream tarball doesn't contain +the CMake modules. This is included in the separate ossim_package_support +subdirectory which is excluded from the repacked upstream tarball. +When the ossim-planet-qt package is updated to a new upstream release, +the cmake patch needs to be updated to include the recent files from +the CMakeModules directory. + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..52242cd --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +ossim-planet-qt (1.8.20.3+ds-1) UNRELEASED; urgency=medium + + * Initial release. (closes: #nnnnnn) + + -- Massimo Di Stefano <epiesa...@me.com> Fri, 03 Jun 2016 21:15:12 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..43977c0 --- /dev/null +++ b/debian/control @@ -0,0 +1,46 @@ +Source: ossim-planet-qt +Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org> +Uploaders: Massimo Di Stefano <epiesa...@me.com> +Section: science +Priority: extra +Build-Depends: cmake (>= 2.8), + debhelper (>= 9), + libgl1-mesa-dev | libgl-dev, + libopenscenegraph-dev, + libopenthreads-dev, + libossim-dev (>= 1.8.20.3), + libossimplanet-dev (>= 1.8.20.3), + libqt4-dev, + libqt4-opengl-dev, + libwms-dev +Standards-Version: 3.9.8 +Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/ossim-planet-qt.git +Vcs-Git: https://anonscm.debian.org/git/pkg-grass/ossim-planet-qt.git +Homepage: http://www.ossim.org/ + +Package: ossim-planet-qt +Architecture: any +Section: utils +Depends: ${shlibs:Depends}, + ${misc:Depends} +Description: OSSIM planet Qt utility + Open Source Software Image Map (OSSIM) is a high performance engine for + remote sensing, image processing, geographical information systems and + photogrammetry. It has been actively developed since 1996. + . + Designed as a series of high performance software libraries, it is + written in C++ employing the latest techniques in object-oriented + software design. + . + The library provides advanced remote sensing, image processing, and + geo-spatial functionality. A quick summary of OSSIM functionality + includes ortho-rectification, precision terrain correction, rigorous + sensor models, very large mosaics, and cross sensor fusions, a wide + range of map projections and datums, and a large range of commercial + and government data formats. The architecture of the library supports + parallel processing with mpi (not enabled), a dynamic plugin architecture, + and dynamically connectable objects allowing rapid prototyping of custom + image processing chains. + . + This package contains the OSSIM planet Qt utility. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..b68cb6d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,142 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: OSSIM Planet Qt +Upstream-Contact: OSSIM Developers <ossim-develo...@lists.sourceforge.net> +Source: http://download.osgeo.org/ossim/source/ + The upstream tarball is repacked to exclude all subdirectories other than + those for ossimPlanetQt. +Files-Excluded: csmApi/* + csm_plugins/* + gsoc/* + libwms/* + oms/* + ossim/* + ossimGui/* + ossimPlanet/* + ossimPredator/* + ossim_package_support/* + ossim_plugins/* + ossim_qt4/* + ossimjni/* + planet_message/* + pqe/* + +Files: ossimPlanetQt/* +Copyright: 2003, Neil Salter +License: LGPL-2.1+ + +Files: ossimPlanetQt/include/ossimPlanetQt/ossimPlanetQtExport.h +Copyright: 2004, Garrett Potts +License: WMSGPL + +Files: debian/* +Copyright: 2016, Massimo Di Stefano <epiesa...@me.com> +License: GPL-3+ + +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + On Debian systems, the full text of the GNU General Public License + version 3 can be found in the file + `/usr/share/common-licenses/GPL-3'. + +License: LGPL-2.1+ + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + . + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + . + On Debian systems, the full text of the GNU Lesser General Public + License version 2.1 can be found in the file + `/usr/share/common-licenses/LGPL-2.1'. + +License: WMSGPL + libwms Public License, Version 0.0 + ========================================== + . + Copyright (C) 2004 Garrett Potts. + . + Everyone is permitted to copy and distribute verbatim copies + of this licence document, but changing it is not allowed. + . + LIBWMS PUBLIC LICENCE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + . + This library is free software; you can redistribute it and/or modify it + under the terms of the libwms Public License (WMSGPL) version 0.0 + or later. + . + Notes: the OSGPL is based on the LGPL, with the 4 exceptions laid in + the wxWindows section below. The LGPL in the final section of this + license. + . + . + ------------------------------------------------------------------------------- + . + wxWindows Library Licence, Version 3 + ==================================== + . + Copyright (C) 1998 Julian Smart, Robert Roebling [, ...] + . + Everyone is permitted to copy and distribute verbatim copies + of this licence document, but changing it is not allowed. + . + WXWINDOWS LIBRARY LICENCE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + . + This library is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public Licence as published by + the Free Software Foundation; either version 2 of the Licence, or (at + your option) any later version. + . + This library is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library + General Public Licence for more details. + . + You should have received a copy of the GNU Library General Public Licence + along with this software, usually in a file named COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 51 Franklin Street, + Fifth Floor, Boston, MA 02110-1301 USA. + . + EXCEPTION NOTICE + . + 1. As a special exception, the copyright holders of this library give + permission for additional uses of the text contained in this release of + the library as licenced under the wxWindows Library Licence, applying + either version 3 of the Licence, or (at your option) any later version of + the Licence as published by the copyright holders of version 3 of the + Licence document. + . + 2. The exception is that you may use, copy, link, modify and distribute + under the user's own terms, binary object code versions of works based + on the Library. + . + 3. If you copy code from files distributed under the terms of the GNU + General Public Licence or the GNU Library General Public Licence into a + copy of this library, as this licence permits, the exception does not + apply to the code that you add in this way. To avoid misleading anyone as + to the status of such modified files, you must delete this exception + notice from such code and/or adjust the licensing conditions notice + accordingly. + . + 4. If you write modifications of your own for this library, it is your + choice whether to permit this exception to apply to your modifications. + If you do not wish that, you must delete the exception notice from such + code and/or adjust the licensing conditions notice accordingly. + . + . + ------------------------------------------------------------------------------ + diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..21d0417 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,16 @@ +[DEFAULT] + +# The default name for the upstream branch is "upstream". +# Change it if the name is different (for instance, "master"). +upstream-branch = upstream + +# The default name for the Debian branch is "master". +# Change it if the name is different (for instance, "debian/unstable"). +debian-branch = master + +# git-import-orig uses the following names for the upstream tags. +# Change the value if you are not using git-import-orig +upstream-tag = upstream/%(version)s + +# Always use pristine-tar. +pristine-tar = True diff --git a/debian/patches/cmake.patch b/debian/patches/cmake.patch new file mode 100644 index 0000000..596e67d --- /dev/null +++ b/debian/patches/cmake.patch @@ -0,0 +1,2733 @@ +Description: Added cmake support files. + This patch needs to be updated for every new OSSIM release to include the + CMakeModules from the ossim_package_support subdirectory in the upstream + tarball. +Author: Francesco Paolo Lovergine <fran...@debian.org> +Forwarded: not-needed + +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindCPPUNIT.cmake +@@ -0,0 +1,43 @@ ++# - Find CPPUNIT ++# Find the native CPPUNIT includes and library ++# This module defines ++# CPPUNIT_INCLUDE_DIR, where to find jpeglib.h, etc. ++# CPPUNIT_LIBRARIES, the libraries needed to use CPPUNIT. ++# CPPUNIT_FOUND, If false, do not try to use CPPUNIT. ++# also defined, but not for general use are ++# CPPUNIT_LIBRARY, where to find the CPPUNIT library. ++ ++#============================================================================= ++# Copyright 2001-2009 Kitware, Inc. ++# ++# Distributed under the OSI-approved BSD License (the "License"); ++# see accompanying file Copyright.txt for details. ++# ++# This software is distributed WITHOUT ANY WARRANTY; without even the ++# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ++# See the License for more information. ++#============================================================================= ++# (To distributed this file outside of CMake, substitute the full ++# License text for the above reference.) ++ ++FIND_PATH(CPPUNIT_INCLUDE_DIR cppunit/Test.h) ++ ++SET(CPPUNIT_NAMES ${CPPUNIT_NAMES} cppunit libcppunit) ++FIND_LIBRARY(CPPUNIT_LIBRARY NAMES ${CPPUNIT_NAMES} ) ++ ++# handle the QUIETLY and REQUIRED arguments and set CPPUNIT_FOUND to TRUE if ++# all listed variables are TRUE ++INCLUDE(FindPackageHandleStandardArgs) ++FIND_PACKAGE_HANDLE_STANDARD_ARGS(CPPUNIT DEFAULT_MSG CPPUNIT_LIBRARY CPPUNIT_INCLUDE_DIR) ++ ++IF(CPPUNIT_FOUND) ++ SET(CPPUNIT_LIBRARIES ${CPPUNIT_LIBRARY}) ++ENDIF(CPPUNIT_FOUND) ++ ++# Deprecated declarations. ++SET (NATIVE_CPPUNIT_INCLUDE_PATH ${CPPUNIT_INCLUDE_DIR} ) ++IF(CPPUNIT_LIBRARY) ++ GET_FILENAME_COMPONENT (NATIVE_CPPUNIT_LIB_PATH ${CPPUNIT_LIBRARY} PATH) ++ENDIF(CPPUNIT_LIBRARY) ++ ++MARK_AS_ADVANCED(CPPUNIT_LIBRARY CPPUNIT_INCLUDE_DIR ) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindFreetype.cmake +@@ -0,0 +1,95 @@ ++# - Locate FreeType library ++# This module defines ++# FREETYPE_LIBRARIES, the library to link against ++# FREETYPE_FOUND, if false, do not try to link to FREETYPE ++# FREETYPE_INCLUDE_DIRS, where to find headers. ++# This is the concatenation of the paths: ++# FREETYPE_INCLUDE_DIR_ft2build ++# FREETYPE_INCLUDE_DIR_freetype2 ++# ++# $FREETYPE_DIR is an environment variable that would ++# correspond to the ./configure --prefix=$FREETYPE_DIR ++# used in building FREETYPE. ++ ++#============================================================================= ++# Copyright 2007-2009 Kitware, Inc. ++# ++# Distributed under the OSI-approved BSD License (the "License"); ++# see accompanying file Copyright.txt for details. ++# ++# This software is distributed WITHOUT ANY WARRANTY; without even the ++# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ++# See the License for more information. ++#============================================================================= ++# (To distributed this file outside of CMake, substitute the full ++# License text for the above reference.) ++ ++# Created by Eric Wing. ++# Modifications by Alexander Neundorf. ++# This file has been renamed to "FindFreetype.cmake" instead of the correct ++# "FindFreeType.cmake" in order to be compatible with the one from KDE4, Alex. ++ ++# Ugh, FreeType seems to use some #include trickery which ++# makes this harder than it should be. It looks like they ++# put ft2build.h in a common/easier-to-find location which ++# then contains a #include to a more specific header in a ++# more specific location (#include <freetype/config/ftheader.h>). ++# Then from there, they need to set a bunch of #define's ++# so you can do something like: ++# #include FT_FREETYPE_H ++# Unfortunately, using CMake's mechanisms like INCLUDE_DIRECTORIES() ++# wants explicit full paths and this trickery doesn't work too well. ++# I'm going to attempt to cut out the middleman and hope ++# everything still works. ++FIND_PATH(FREETYPE_INCLUDE_DIR_ft2build ft2build.h ++ HINTS ++ $ENV{FREETYPE_DIR} ++ PATH_SUFFIXES include ++ PATHS ++ /usr/local/X11R6/include ++ /usr/local/X11/include ++ /usr/X11/include ++ /sw/include ++ /opt/local/include ++ /usr/freeware/include ++) ++ ++FIND_PATH(FREETYPE_INCLUDE_DIR_freetype2 freetype/config/ftheader.h ++ HINTS ++ $ENV{FREETYPE_DIR}/include/freetype2 ++ PATHS ++ /usr/local/X11R6/include ++ /usr/local/X11/include ++ /usr/X11/include ++ /sw/include ++ /opt/local/include ++ /usr/freeware/include ++ PATH_SUFFIXES freetype2 ++) ++ ++FIND_LIBRARY(FREETYPE_LIBRARY ++ NAMES freetype libfreetype freetype219 freetype239 ++ HINTS ++ $ENV{FREETYPE_DIR} ++ PATH_SUFFIXES lib64 lib ++ PATHS ++ /usr/local/X11R6 ++ /usr/local/X11 ++ /usr/X11 ++ /sw ++ /usr/freeware ++) ++ ++# set the user variables ++IF(FREETYPE_INCLUDE_DIR_ft2build AND FREETYPE_INCLUDE_DIR_freetype2) ++ SET(FREETYPE_INCLUDE_DIRS "${FREETYPE_INCLUDE_DIR_ft2build};${FREETYPE_INCLUDE_DIR_freetype2}") ++ENDIF(FREETYPE_INCLUDE_DIR_ft2build AND FREETYPE_INCLUDE_DIR_freetype2) ++SET(FREETYPE_LIBRARIES "${FREETYPE_LIBRARY}") ++ ++# handle the QUIETLY and REQUIRED arguments and set FREETYPE_FOUND to TRUE if ++# all listed variables are TRUE ++INCLUDE(FindPackageHandleStandardArgs) ++FIND_PACKAGE_HANDLE_STANDARD_ARGS(Freetype DEFAULT_MSG FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS) ++ ++ ++MARK_AS_ADVANCED(FREETYPE_LIBRARY FREETYPE_INCLUDE_DIR_freetype2 FREETYPE_INCLUDE_DIR_ft2build) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindGEOS.cmake +@@ -0,0 +1,84 @@ ++#--- ++# File: FindGEOS.cmake ++# ++# Find the native GEOS(Geometry Engine - Open Source) includes and libraries. ++# ++# This module defines: ++# ++# GEOS_INCLUDE_DIR, where to find geos.h, etc. ++# GEOS_LIBRARY, libraries to link against to use GEOS. Currently there are ++# two looked for, geos and geos_c libraries. ++# GEOS_FOUND, True if found, false if one of the above are not found. ++# ++# For ossim, typically geos will be system installed which should be found; ++# or found in the ossim 3rd party dependencies directory from a geos build ++# and install. If the latter it will rely on CMAKE_INCLUDE_PATH and ++# CMAKE_LIBRARY_PATH having the path to the party dependencies directory. ++# ++# NOTE: ++# This script is specialized for ossim, e.g. looking in /usr/local/ossim. ++# ++# $Id: FindGEOS.cmake 23086 2015-01-20 16:20:12Z rashadkm $ ++#--- ++ ++#--- ++# Find include path: ++# Note: Ubuntu 14.04+ did not have geos.h (not included in any ossim src). ++# Instead looking for Geometry.h ++#--- ++ ++find_path( GEOS_INCLUDE_DIR geos/geom/Geometry.h ++ PATHS ++ ${CMAKE_INSTALL_PREFIX}/include ++ ${GEOS_DIR}/include ++ /usr/include ++ /usr/local/include ++ /usr/local/ossim/include ) ++ ++# Find GEOS library: ++find_library( GEOS_LIB NAMES geos ++ PATHS ++ ${CMAKE_INSTALL_PREFIX}/lib ++ ${GEOS_DIR}/lib ++ /usr/lib64 ++ /usr/lib ++ /usr/local/lib ++ /usr/local/ossim/lib ) ++ ++# Find GEOS C library: ++find_library( GEOS_C_LIB NAMES geos_c ++ PATHS ++ ${CMAKE_INSTALL_PREFIX}/lib ++ ${GEOS_DIR}/lib ++ /usr/lib64 ++ /usr/lib ++ /usr/local/lib ++ /usr/local/ossim/lib ) ++ ++# Set the GEOS_LIBRARY: ++if( GEOS_LIB AND GEOS_C_LIB ) ++ set( GEOS_LIBRARY ${GEOS_LIB} ${GEOS_C_LIB} CACHE STRING INTERNAL ) ++endif(GEOS_LIB AND GEOS_C_LIB ) ++ ++#--- ++# This function sets GEOS_FOUND if variables are valid. ++#--- ++include(FindPackageHandleStandardArgs) ++find_package_handle_standard_args( GEOS DEFAULT_MSG ++ GEOS_LIBRARY ++ GEOS_INCLUDE_DIR ) ++ ++if( GEOS_FOUND ) ++ if( NOT GEOS_FIND_QUIETLY ) ++ message( STATUS "Found GEOS..." ) ++ endif( NOT GEOS_FIND_QUIETLY ) ++else( GEOS_FOUND ) ++ if( NOT GEOS_FIND_QUIETLY ) ++ message( WARNING "Could not find GEOS" ) ++ endif( NOT GEOS_FIND_QUIETLY ) ++endif( GEOS_FOUND ) ++ ++if( NOT GEOS_FIND_QUIETLY ) ++ message( STATUS "GEOS_INCLUDE_DIR=${GEOS_INCLUDE_DIR}" ) ++ message( STATUS "GEOS_LIBRARY=${GEOS_LIBRARY}" ) ++endif( NOT GEOS_FIND_QUIETLY ) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindGEOTIFF.cmake +@@ -0,0 +1,36 @@ ++# - Find geotiff library ++# Find the native geotiff includes and library ++# This module defines ++# GEOTIFF_INCLUDE_DIR, where to find tiff.h, etc. ++# GEOTIFF_LIBRARIES, libraries to link against to use GEOTIFF. ++# GEOTIFF_FOUND, If false, do not try to use GEOTIFF. ++# also defined, but not for general use are ++# GEOTIFF_LIBRARY, where to find the GEOTIFF library. ++ ++FIND_PATH(GEOTIFF_INCLUDE_DIR geotiff.h ++ PATHS ++ ${CMAKE_INSTALL_PREFIX}/include ++ /usr/include/geotiff ++ /usr/include/libgeotiff ++ /usr/local/include/libgeotiff ++ /usr/local/include/geotiff) ++ ++SET(GEOTIFF_NAMES ${GEOTIFF_NAMES} geotiff_i geotiff libgeotiff_i libgeotiff) ++FIND_LIBRARY(GEOTIFF_LIBRARY ++ NAMES ${GEOTIFF_NAMES} ++ PATHS ++ ${CMAKE_INSTALL_PREFIX}/lib ++ /usr/local/lib ++ /usr/lib ++ /usr/lib/x86_64-linux-gnu) ++ ++# handle the QUIETLY and REQUIRED arguments and set GEOTIFF_FOUND to TRUE if ++# all listed variables are TRUE ++INCLUDE(FindPackageHandleStandardArgs) ++FIND_PACKAGE_HANDLE_STANDARD_ARGS(GEOTIFF DEFAULT_MSG GEOTIFF_LIBRARY GEOTIFF_INCLUDE_DIR) ++ ++IF(GEOTIFF_FOUND) ++ SET( GEOTIFF_LIBRARIES ${GEOTIFF_LIBRARY} ) ++ENDIF(GEOTIFF_FOUND) ++ ++MARK_AS_ADVANCED(GEOTIFF_INCLUDE_DIR GEOTIFF_LIBRARY) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindJPEG.cmake +@@ -0,0 +1,55 @@ ++# - Find JPEG ++# Find the native JPEG includes and library ++# This module defines ++# JPEG_INCLUDE_DIR, where to find jpeglib.h, etc. ++# JPEG_LIBRARIES, the libraries needed to use JPEG. ++# JPEG_FOUND, If false, do not try to use JPEG. ++# also defined, but not for general use are ++# JPEG_LIBRARY, where to find the JPEG library. ++ ++#============================================================================= ++# Copyright 2001-2009 Kitware, Inc. ++# ++# Distributed under the OSI-approved BSD License (the "License"); ++# see accompanying file Copyright.txt for details. ++# ++# This software is distributed WITHOUT ANY WARRANTY; without even the ++# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ++# See the License for more information. ++#============================================================================= ++# (To distributed this file outside of CMake, substitute the full ++# License text for the above reference.) ++ ++FIND_PATH(JPEG_INCLUDE_DIR jpeglib.h ++ PATHS ++ ${CMAKE_INSTALL_PREFIX}/include ++ /usr/local/include ++ /usr/include ) ++ ++SET(JPEG_NAMES ${JPEG_NAMES} jpeg libjpeg) ++ ++# Added x86_64-linux-gnu path for Ubuntu install ++FIND_LIBRARY(JPEG_LIBRARY ++ NAMES ${JPEG_NAMES} ++ PATHS ++ ${CMAKE_INSTALL_PREFIX}/include ++ /usr/local/lib ++ /usr/lib ++ /usr/lib/x86_64-linux-gnu) ++ ++# handle the QUIETLY and REQUIRED arguments and set JPEG_FOUND to TRUE if ++# all listed variables are TRUE ++INCLUDE(FindPackageHandleStandardArgs) ++FIND_PACKAGE_HANDLE_STANDARD_ARGS(JPEG DEFAULT_MSG JPEG_LIBRARY JPEG_INCLUDE_DIR) ++ ++IF(JPEG_FOUND) ++ SET(JPEG_LIBRARIES ${JPEG_LIBRARY}) ++ENDIF(JPEG_FOUND) ++ ++# Deprecated declarations. ++SET (NATIVE_JPEG_INCLUDE_PATH ${JPEG_INCLUDE_DIR} ) ++IF(JPEG_LIBRARY) ++ GET_FILENAME_COMPONENT (NATIVE_JPEG_LIB_PATH ${JPEG_LIBRARY} PATH) ++ENDIF(JPEG_LIBRARY) ++ ++MARK_AS_ADVANCED(JPEG_LIBRARY JPEG_INCLUDE_DIR ) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindMiniZip.cmake +@@ -0,0 +1,26 @@ ++# - Find minizip ++# Find the native MINIZIP includes and library ++# ++# MINIZIP_INCLUDE_DIRS - where to find minizip's zip.h, etc. ++# MINIZIP_LIBRARIES - List of libraries when using minizip. ++# MINIZIP_FOUND - True if minizip found. ++ ++IF (MINIZIP_INCLUDE_DIR) ++ # Already in cache, be silent ++ SET(MINIZIP_FIND_QUIETLY TRUE) ++ENDIF (MINIZIP_INCLUDE_DIR) ++ ++FIND_PATH(MINIZIP_INCLUDE_DIR minizip/zip.h) ++ ++SET(MINIZIP_NAMES minizip ) ++FIND_LIBRARY(MINIZIP_LIBRARY NAMES ${MINIZIP_NAMES} ) ++MARK_AS_ADVANCED( MINIZIP_LIBRARY MINIZIP_INCLUDE_DIR ) ++ ++# Per-recommendation ++SET(MINIZIP_INCLUDE_DIRS "${MINIZIP_INCLUDE_DIR}") ++SET(MINIZIP_LIBRARIES "${MINIZIP_LIBRARY}") ++ ++# handle the QUIETLY and REQUIRED arguments and set MINIZIP_FOUND to TRUE if ++# all listed variables are TRUE ++INCLUDE(FindPackageHandleStandardArgs) ++FIND_PACKAGE_HANDLE_STANDARD_ARGS(MINIZIP DEFAULT_MSG MINIZIP_LIBRARIES MINIZIP_INCLUDE_DIRS) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindRegex.cmake +@@ -0,0 +1,64 @@ ++# -*- cmake -*- ++# ++# FindRegex.cmake: Try to find Regex ++# ++# Copyright (C) 2005-2013 EDF-EADS-Phimeca ++# ++# This library is free software: you can redistribute it and/or modify ++# it under the terms of the GNU Lesser General Public License as published by ++# the Free Software Foundation, either version 3 of the License, or ++# (at your option) any later version. ++# ++# This library is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU Lesser General Public License for more details. ++# ++# You should have received a copy of the GNU Lesser General Public ++# along with this library. If not, see <http://www.gnu.org/licenses/>. ++# ++# @author dutka ++# @date 2010-02-04 16:44:49 +0100 (Thu, 04 Feb 2010) ++# ++# ++# - Try to find Regex ++# Once done this will define ++# ++# REGEX_FOUND - System has Regex ++# REGEX_INCLUDE_DIR - The Regex include directory ++# REGEX_LIBRARIES - The libraries needed to use Regex ++# REGEX_DEFINITIONS - Compiler switches required for using Regex ++ ++IF (REGEX_INCLUDE_DIR AND REGEX_LIBRARIES) ++ # in cache already ++ SET(Regex_FIND_QUIETLY TRUE) ++ENDIF (REGEX_INCLUDE_DIR AND REGEX_LIBRARIES) ++ ++#IF (NOT WIN32) ++# # use pkg-config to get the directories and then use these values ++# # in the FIND_PATH() and FIND_LIBRARY() calls ++# FIND_PACKAGE(PkgConfig) ++# PKG_CHECK_MODULES(PC_REGEX regex) ++# SET(REGEX_DEFINITIONS ${PC_REGEX_CFLAGS_OTHER}) ++#ENDIF (NOT WIN32) ++ ++FIND_PATH(REGEX_INCLUDE_DIR regex.h ++ HINTS ++ ${REGEX_INCLUDEDIR} ++ ${PC_LIBXML_INCLUDE_DIRS} ++ PATH_SUFFIXES regex ++ ) ++ ++FIND_LIBRARY(REGEX_LIBRARIES NAMES c regex ++ HINTS ++ ${PC_REGEX_LIBDIR} ++ ${PC_REGEX_LIBRARY_DIRS} ++ ) ++ ++INCLUDE(FindPackageHandleStandardArgs) ++ ++# handle the QUIETLY and REQUIRED arguments and set REGEX_FOUND to TRUE if ++# all listed variables are TRUE ++FIND_PACKAGE_HANDLE_STANDARD_ARGS(Regex DEFAULT_MSG REGEX_LIBRARIES REGEX_INCLUDE_DIR) ++ ++MARK_AS_ADVANCED(REGEX_INCLUDE_DIR REGEX_LIBRARIES) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindStlPort.cmake +@@ -0,0 +1,26 @@ ++#--- ++# $Id: FindStlPort.cmake 21190 2012-06-29 19:54:24Z dburken $ ++# ++# Find the stlport includes and library ++# ++# This module defines: ++# STLPORT_INCLUDE_DIR, where to find iostream, string, etc. ++# STLPORT_LIBRARIES, libraries to link against to use StlPort. ++# STLPORT_FOUND, If false, do not try to use STLPORT. ++#--- ++ ++FIND_PATH(STLPORT_INCLUDE_DIR iostream PATHS C:/STLport-5.2.1/stlport D:/STLport-5.2.1/stlport) ++ ++SET(STLPORT_NAMES ${STLPORT_NAMES} stlport5.2.lib) ++FIND_LIBRARY(STLPORT_LIBRARY NAMES ${STLPORT_NAMES} ) ++ ++# handle the QUIETLY and REQUIRED arguments and set STLPORT_FOUND to TRUE if ++# all listed variables are TRUE ++INCLUDE(FindPackageHandleStandardArgs) ++FIND_PACKAGE_HANDLE_STANDARD_ARGS(STLPORT DEFAULT_MSG STLPORT_LIBRARY STLPORT_INCLUDE_DIR) ++ ++IF(STLPORT_FOUND) ++ SET( STLPORT_LIBRARIES ${STLPORT_LIBRARY} ) ++ENDIF(STLPORT_FOUND) ++ ++MARK_AS_ADVANCED(STLPORT_INCLUDE_DIR STLPORT_LIBRARY) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindSubversion.cmake +@@ -0,0 +1,148 @@ ++# - Extract information from a subversion working copy ++# The module defines the following variables: ++# Subversion_SVN_EXECUTABLE - path to svn command line client ++# Subversion_VERSION_SVN - version of svn command line client ++# Subversion_FOUND - true if the command line client was found ++# SUBVERSION_FOUND - same as Subversion_FOUND, set for compatiblity reasons ++# ++# The minimum required version of Subversion can be specified using the ++# standard syntax, e.g. FIND_PACKAGE(Subversion 1.4) ++# ++# If the command line client executable is found two macros are defined: ++# Subversion_WC_INFO(<dir> <var-prefix>) ++# Subversion_WC_LOG(<dir> <var-prefix>) ++# Subversion_WC_INFO extracts information of a subversion working copy at ++# a given location. This macro defines the following variables: ++# <var-prefix>_WC_URL - url of the repository (at <dir>) ++# <var-prefix>_WC_ROOT - root url of the repository ++# <var-prefix>_WC_REVISION - current revision ++# <var-prefix>_WC_LAST_CHANGED_AUTHOR - author of last commit ++# <var-prefix>_WC_LAST_CHANGED_DATE - date of last commit ++# <var-prefix>_WC_LAST_CHANGED_REV - revision of last commit ++# <var-prefix>_WC_INFO - output of command `svn info <dir>' ++# Subversion_WC_LOG retrieves the log message of the base revision of a ++# subversion working copy at a given location. This macro defines the ++# variable: ++# <var-prefix>_LAST_CHANGED_LOG - last log of base revision ++# Example usage: ++# FIND_PACKAGE(Subversion) ++# IF(SUBVERSION_FOUND) ++# Subversion_WC_INFO(${PROJECT_SOURCE_DIR} Project) ++# MESSAGE("Current revision is ${Project_WC_REVISION}") ++# Subversion_WC_LOG(${PROJECT_SOURCE_DIR} Project) ++# MESSAGE("Last changed log is ${Project_LAST_CHANGED_LOG}") ++# ENDIF(SUBVERSION_FOUND) ++# ++# History (yyyymmdd): ++# 20121002 - Modified to "continue on" if svn is not found. (drb) ++# ++#============================================================================= ++# Copyright 2006-2009 Kitware, Inc. ++# Copyright 2006 Tristan Carel ++# ++# Distributed under the OSI-approved BSD License (the "License"); ++# see accompanying file Copyright.txt for details. ++# ++# This software is distributed WITHOUT ANY WARRANTY; without even the ++# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ++# See the License for more information. ++#============================================================================= ++# (To distribute this file outside of CMake, substitute the full ++# License text for the above reference.) ++ ++FIND_PROGRAM(Subversion_SVN_EXECUTABLE svn ++ DOC "subversion command line client") ++MARK_AS_ADVANCED(Subversion_SVN_EXECUTABLE) ++ ++IF(Subversion_SVN_EXECUTABLE) ++ # the subversion commands should be executed with the C locale, otherwise ++ # the message (which are parsed) may be translated, Alex ++ SET(_Subversion_SAVED_LC_ALL "$ENV{LC_ALL}") ++ SET(ENV{LC_ALL} C) ++ ++ EXECUTE_PROCESS(COMMAND ${Subversion_SVN_EXECUTABLE} --version ++ OUTPUT_VARIABLE Subversion_VERSION_SVN ++ OUTPUT_STRIP_TRAILING_WHITESPACE) ++ ++ # restore the previous LC_ALL ++ SET(ENV{LC_ALL} ${_Subversion_SAVED_LC_ALL}) ++ ++ STRING(REGEX REPLACE "^(.*\n)?svn, version ([.0-9]+).*" ++ "\\2" Subversion_VERSION_SVN "${Subversion_VERSION_SVN}") ++ ++ MACRO(Subversion_WC_INFO dir prefix) ++ # the subversion commands should be executed with the C locale, otherwise ++ # the message (which are parsed) may be translated, Alex ++ SET(_Subversion_SAVED_LC_ALL "$ENV{LC_ALL}") ++ SET(ENV{LC_ALL} C) ++ ++ EXECUTE_PROCESS(COMMAND ${Subversion_SVN_EXECUTABLE} info ${dir} ++ OUTPUT_VARIABLE ${prefix}_WC_INFO ++ ERROR_VARIABLE Subversion_svn_info_error ++ RESULT_VARIABLE Subversion_svn_info_result ++ OUTPUT_STRIP_TRAILING_WHITESPACE) ++ ++ IF(NOT ${Subversion_svn_info_result} EQUAL 0) ++ MESSAGE(WARNING "Command \"${Subversion_SVN_EXECUTABLE} info ${dir}\" failed with output:\n${Subversion_svn_info_error}") ++ ELSE(NOT ${Subversion_svn_info_result} EQUAL 0) ++ ++ STRING(REGEX REPLACE "^(.*\n)?URL: ([^\n]+).*" ++ "\\2" ${prefix}_WC_URL "${${prefix}_WC_INFO}") ++ STRING(REGEX REPLACE "^(.*\n)?Repository Root: ([^\n]+).*" ++ "\\2" ${prefix}_WC_ROOT "${${prefix}_WC_INFO}") ++ STRING(REGEX REPLACE "^(.*\n)?Revision: ([^\n]+).*" ++ "\\2" ${prefix}_WC_REVISION "${${prefix}_WC_INFO}") ++ STRING(REGEX REPLACE "^(.*\n)?Last Changed Author: ([^\n]+).*" ++ "\\2" ${prefix}_WC_LAST_CHANGED_AUTHOR "${${prefix}_WC_INFO}") ++ STRING(REGEX REPLACE "^(.*\n)?Last Changed Rev: ([^\n]+).*" ++ "\\2" ${prefix}_WC_LAST_CHANGED_REV "${${prefix}_WC_INFO}") ++ STRING(REGEX REPLACE "^(.*\n)?Last Changed Date: ([^\n]+).*" ++ "\\2" ${prefix}_WC_LAST_CHANGED_DATE "${${prefix}_WC_INFO}") ++ ++ ENDIF(NOT ${Subversion_svn_info_result} EQUAL 0) ++ ++ # restore the previous LC_ALL ++ SET(ENV{LC_ALL} ${_Subversion_SAVED_LC_ALL}) ++ ++ ENDMACRO(Subversion_WC_INFO) ++ ++ MACRO(Subversion_WC_LOG dir prefix) ++ # This macro can block if the certificate is not signed: ++ # svn ask you to accept the certificate and wait for your answer ++ # This macro requires a svn server network access (Internet most of the time) ++ # and can also be slow since it access the svn server ++ EXECUTE_PROCESS(COMMAND ++ ${Subversion_SVN_EXECUTABLE} --non-interactive log -r BASE ${dir} ++ OUTPUT_VARIABLE ${prefix}_LAST_CHANGED_LOG ++ ERROR_VARIABLE Subversion_svn_log_error ++ RESULT_VARIABLE Subversion_svn_log_result ++ OUTPUT_STRIP_TRAILING_WHITESPACE) ++ ++ IF(NOT ${Subversion_svn_log_result} EQUAL 0) ++ MESSAGE(SEND_ERROR "Command \"${Subversion_SVN_EXECUTABLE} log -r BASE ${dir}\" failed with output:\n${Subversion_svn_log_error}") ++ ENDIF(NOT ${Subversion_svn_log_result} EQUAL 0) ++ ENDMACRO(Subversion_WC_LOG) ++ ++ENDIF(Subversion_SVN_EXECUTABLE) ++ ++#--- ++# This function sets GEOS_FOUND if variables are valid. ++#--- ++include(FindPackageHandleStandardArgs) ++find_package_handle_standard_args( SUBVERSION DEFAULT_MSG ++ Subversion_SVN_EXECUTABLE ++ Subversion_VERSION_SVN ) ++ ++if( SUBVERSION_FOUND ) ++ if( NOT SUBVERSION_FIND_QUIETLY ) ++ message( STATUS "Found SUBVERSION..." ) ++ endif( NOT SUBVERSION_FIND_QUIETLY ) ++else( SUBVERSION_FOUND ) ++ if( NOT SUBVERSION_FIND_QUIETLY ) ++ message( WARNING "Could not find SUBVERSION" ) ++ endif( NOT SUBVERSION_FIND_QUIETLY ) ++endif( SUBVERSION_FOUND ) ++ ++if( NOT SUBVERSION_FIND_QUIETLY ) ++ message( STATUS "Subversion_VERSION_SVN=${Subversion_VERSION_SVN}" ) ++endif( NOT SUBVERSION_FIND_QUIETLY ) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindTIFF.cmake +@@ -0,0 +1,52 @@ ++# - Find TIFF library ++# Find the native TIFF includes and library ++# This module defines ++# TIFF_INCLUDE_DIR, where to find tiff.h, etc. ++# TIFF_LIBRARIES, libraries to link against to use TIFF. ++# TIFF_FOUND, If false, do not try to use TIFF. ++# also defined, but not for general use are ++# TIFF_LIBRARY, where to find the TIFF library. ++ ++#============================================================================= ++# Copyright 2002-2009 Kitware, Inc. ++# ++# Distributed under the OSI-approved BSD License (the "License"); ++# see accompanying file Copyright.txt for details. ++# ++# This software is distributed WITHOUT ANY WARRANTY; without even the ++# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ++# See the License for more information. ++#============================================================================= ++# (To distribute this file outside of CMake, substitute the full ++# License text for the above reference.) ++ ++FIND_PATH(TIFF_INCLUDE_DIR tiff.h ++ PATHS ++ ${CMAKE_INSTALL_PREFIX}/include ++ /usr/local/include ++ /usr/local/include/tiff ++ /usr/include/ ++ /usr/include/tiff) ++ ++ ++SET(TIFF_NAMES ${TIFF_NAMES} tiff libtiff_i libtiff tiff3 libtiff3) ++ ++# Added x86_64-linux-gnu path for Ubuntu install ++FIND_LIBRARY(TIFF_LIBRARY ++ NAMES ${TIFF_NAMES} ++ PATHS ++ ${CMAKE_INSTALL_PREFIX}/lib ++ /usr/local/lib ++ /usr/lib ++ /usr/lib/x86_64-linux-gnu) ++ ++# handle the QUIETLY and REQUIRED arguments and set TIFF_FOUND to TRUE if ++# all listed variables are TRUE ++INCLUDE(FindPackageHandleStandardArgs) ++FIND_PACKAGE_HANDLE_STANDARD_ARGS(TIFF DEFAULT_MSG TIFF_LIBRARY TIFF_INCLUDE_DIR) ++ ++IF(TIFF_FOUND) ++ SET( TIFF_LIBRARIES ${TIFF_LIBRARY} ) ++ENDIF(TIFF_FOUND) ++ ++MARK_AS_ADVANCED(TIFF_INCLUDE_DIR TIFF_LIBRARY) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/Findossim.cmake +@@ -0,0 +1,68 @@ ++#--- ++# File: FindOSSIM.cmake ++# ++# Find OSSIM(Open Source Software Image Map) includes and libraries. ++# ++# This module defines: ++# ++# OSSIM_INCLUDE_DIR, Where to find ossimVersion.h, etc. ++# OSSIM_LIBRARIES, Libraries to link against to use OSSIM. ++# OSSIM_FOUND, True if found, false if one of the above are not found. ++# also defined, but not for general use are ++# OSSIM_LIBRARY, where to find the OSSIM library. ++#--- ++ ++#--- ++# Find include path: ++#--- ++set(CMAKE_FIND_FRAMEWORK "LAST") ++find_path(OSSIM_INCLUDE_DIR ossim/ossimVersion.h ossimVersion.h ++ PATHS ++ $ENV{OSSIM_DEV_HOME}/ossim/include ++ $ENV{OSSIM_DEV_HOME}/ossim/latest/include ++ $ENV{OSSIM_INSTALL_PREFIX}/include ++ $ENV{OSSIM_DEV_HOME}/ossim ++ $ENV{OSSIM_INSTALL_PREFIX} ++ PATH_SUFFIXES ++ include ++ lib ++) ++ ++set(OSSIM_NAMES ${OSSIM_NAMES} ossim libossim) ++find_library(OSSIM_LIBRARY NAMES ${OSSIM_NAMES} ++ PATHS ++ $ENV{OSSIM_INSTALL_PREFIX}/lib${LIBSUFFIX} ++ $ENV{OSSIM_BUILD_DIR}/build_ossim/lib${LIBSUFFIX} ++ $ENV{OSSIM_BUILD_DIR}/lib${LIBSUFFIX} ++ $ENV{OSSIM_DEV_HOME}/build/build_ossim/lib${LIBSUFFIX} ++ $ENV{OSSIM_DEV_HOME}/build/lib${LIBSUFFIX} ++ $ENV{OSSIM_DEV_HOME}/ossim/lib${LIBSUFFIX} ++ $ENV{OSSIM_INSTALL_PREFIX} ++ PATH_SUFFIXES ++ lib ++ Frameworks ++) ++ ++#--- ++# This function sets OSSIM_FOUND if variables are valid. ++#--- ++include(FindPackageHandleStandardArgs) ++find_package_handle_standard_args( OSSIM DEFAULT_MSG ++ OSSIM_LIBRARY ++ OSSIM_INCLUDE_DIR ) ++ ++if(OSSIM_FOUND) ++ set( OSSIM_LIBRARIES ${OSSIM_LIBRARY} ) ++ set( OSSIM_INCLUDES ${OSSIM_INCLUDE_DIR} ) ++else( OSSIM_FOUND ) ++ if( NOT OSSIM_FIND_QUIETLY ) ++ message( WARNING "Could not find OSSIM" ) ++ endif( NOT OSSIM_FIND_QUIETLY ) ++endif(OSSIM_FOUND) ++ ++if( NOT OSSIM_FIND_QUIETLY ) ++ message( STATUS "OSSIM_INCLUDE_DIR=${OSSIM_INCLUDE_DIR}" ) ++ message( STATUS "OSSIM_LIBRARY=${OSSIM_LIBRARY}" ) ++endif( NOT OSSIM_FIND_QUIETLY ) ++ ++MARK_AS_ADVANCED(OSSIM_INCLUDES OSSIM_INCLUDE_DIR OSSIM_LIBRARY) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/OssimCPack.cmake +@@ -0,0 +1,156 @@ ++# This script sets up packaging targets for each "COMPONENT" as specified in INSTALL commands ++# ++# for each component a CPackConfig-<component>.cmake is generated in the build tree ++# and a target is added to call cpack for it (e.g. package_ossim ++# A target for generating a package with everything that gets INSTALLED is generated (package_ossim-all) ++# A target for making all of the above packages is generated (package_ALL) ++# ++# package filenames are created on the form <package>-<platform>-<arch>[-<compiler>]-<build_type>[-static].tgz ++# ...where compiler optionally set using a cmake gui (OSSIM_CPACK_COMPILER). This script tries to guess compiler version for msvc generators ++# ...build_type matches CMAKE_BUILD_TYPE for all generators but the msvc ones ++ ++# resolve architecture. The reason i "change" i686 to i386 is that debian packages ++# require i386 so this is for the future ++IF("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i686") ++ SET(SYSTEM_ARCH "i386") ++ELSE() ++ SET(SYSTEM_ARCH ${CMAKE_SYSTEM_PROCESSOR}) ++ENDIF() ++ ++# set a default system name - use CMake setting (Linux|Windows|...) ++SET(SYSTEM_NAME ${CMAKE_SYSTEM_NAME}) ++#message(STATUS "CMAKE_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}") ++#message(STATUS "CMAKE_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR}") ++ ++# for msvc the SYSTEM_NAME is set win32/64 instead of "Windows" ++IF(MSVC) ++ IF(CMAKE_CL_64) ++ SET(SYSTEM_NAME "win64") ++ ELSE() ++ SET(SYSTEM_NAME "win32") ++ ENDIF() ++ENDIF() ++# Guess the compiler (is this desired for other platforms than windows?) ++IF(NOT DEFINED OSSIM_CPACK_COMPILER) ++ INCLUDE(OssimDetermineCompiler) ++ENDIF() ++ ++# expose the compiler setting to the user ++SET(OSSIM_CPACK_COMPILER "${OSSIM_COMPILER}" CACHE STRING "This ia short string (vc90, vc80sp1, gcc-4.3, ...) describing your compiler. The string is used for creating package filenames") ++ ++IF(OSSIM_CPACK_COMPILER) ++ SET(OSSIM_CPACK_SYSTEM_SPEC_STRING ${SYSTEM_NAME}-${SYSTEM_ARCH}-${OSSIM_CPACK_COMPILER}) ++ELSE() ++ SET(OSSIM_CPACK_SYSTEM_SPEC_STRING ${SYSTEM_NAME}-${SYSTEM_ARCH}) ++ENDIF() ++ ++ ++## variables that apply to all packages ++SET(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${OSSIM_VERSION}") ++ ++IF(NOT CPACK_GENERATOR) ++ # these goes for all platforms. Setting these stops the CPack.cmake script from generating options about other package compression formats (.z .tz, etc.) ++ IF(WIN32) ++ SET(CPACK_GENERATOR "ZIP") ++ SET(CPACK_SOURCE_GENERATOR "ZIP") ++ ELSEIF(APPLE) ++# SET(CPACK_GENERATOR "PackageMaker") ++# SET(CPACK_SOURCE_GENERATOR "PackageMaker") ++ SET(CPACK_GENERATOR "TGZ") ++ SET(CPACK_SOURCE_GENERATOR "TGZ") ++ ELSE() ++ SET(CPACK_GENERATOR "TGZ") ++ SET(CPACK_SOURCE_GENERATOR "TGZ") ++ ENDIF() ++ENDIF(NOT CPACK_GENERATOR) ++ ++# for ms visual studio we use it's internally defined variable to get the configuration (debug,release, ...) ++IF(MSVC_IDE) ++ SET(OSSIM_CPACK_CONFIGURATION "$(OutDir)") ++ SET(PACKAGE_TARGET_PREFIX "Package ") ++ELSE() ++ # on un*x an empty CMAKE_BUILD_TYPE means release ++ IF(CMAKE_BUILD_TYPE) ++ SET(OSSIM_CPACK_CONFIGURATION ${CMAKE_BUILD_TYPE}) ++ ELSE() ++ SET(OSSIM_CPACK_CONFIGURATION "Release") ++ ENDIF() ++ SET(PACKAGE_TARGET_PREFIX "package_") ++ENDIF() ++ ++# Get all defined components ++GET_CMAKE_PROPERTY(CPACK_COMPONENTS_ALL COMPONENTS) ++IF(NOT CPACK_COMPONENTS_ALL) ++ # cmake 2.6.0 don't supply the COMPONENTS property. ++ # I set it manually to be the packages that can always be packaged ++ MESSAGE("When building packages please consider using cmake version 2.6.1 or above") ++ SET(CPACK_COMPONENTS_ALL ossim) ++ENDIF() ++ ++# Create a target that will be used to generate all packages defined below ++SET(PACKAGE_ALL_TARGETNAME "${PACKAGE_TARGET_PREFIX}ALL") ++ADD_CUSTOM_TARGET(${PACKAGE_ALL_TARGETNAME}) ++ ++MACRO(GENERATE_PACKAGING_TARGET package_name) ++ SET(CPACK_PACKAGE_NAME ${package_name}) ++ ++ # the doc packages don't need a system-arch specification ++ IF(${package} MATCHES -doc) ++ SET(OSSIM_PACKAGE_FILE_NAME ${package_name}-${OSSIM_VERSION}) ++ ELSE() ++ SET(OSSIM_PACKAGE_FILE_NAME ${package_name}-${OSSIM_VERSION}-${OSSIM_CPACK_SYSTEM_SPEC_STRING}-${OSSIM_CPACK_CONFIGURATION}) ++ IF(NOT BUILD_SHARED_LIBS) ++ SET(OSSIM_PACKAGE_FILE_NAME ${OSSIM_PACKAGE_FILE_NAME}-static) ++ ENDIF() ++ ENDIF() ++ ++ CONFIGURE_FILE("${${PROJECT_NAME}_SOURCE_DIR}/ossimPlanetQt/CMakeModules/OssimCPackConfig.cmake.in" "${${PROJECT_NAME}_BINARY_DIR}/CPackConfig-${package_name}.cmake" IMMEDIATE) ++ ++ SET(PACKAGE_TARGETNAME "${PACKAGE_TARGET_PREFIX}${package_name}") ++ ++ # This is naive and will probably need fixing eventually ++ IF(MSVC) ++ SET(MOVE_COMMAND "move") ++ ELSE() ++ SET(MOVE_COMMAND "mv") ++ ENDIF() ++ ++ IF(NOT ACHIVE_EXT) ++ # Set in and out archive filenames. Windows = zip, others = tgz ++ IF(WIN32) ++ SET(ARCHIVE_EXT "zip") ++ ELSEIF(APPLE) ++# SET(ARCHIVE_EXT "dmg") ++ SET(ARCHIVE_EXT "tar.gz") ++ ELSE() ++ SET(ARCHIVE_EXT "tar.gz") ++ ENDIF() ++ ENDIF(NOT ACHIVE_EXT) ++ ++ # Create a target that creates the current package ++ # and rename the package to give it proper filename ++ ADD_CUSTOM_TARGET(${PACKAGE_TARGETNAME}) ++ ADD_CUSTOM_COMMAND(TARGET ${PACKAGE_TARGETNAME} ++ COMMAND ${CMAKE_CPACK_COMMAND} -C ${OSSIM_CPACK_CONFIGURATION} --config ${${PROJECT_NAME}_BINARY_DIR}/CPackConfig-${package_name}.cmake ++ COMMAND "${MOVE_COMMAND}" "${CPACK_PACKAGE_FILE_NAME}.${ARCHIVE_EXT}" "${OSSIM_PACKAGE_FILE_NAME}.${ARCHIVE_EXT}" ++ COMMAND ${CMAKE_COMMAND} -E echo "renamed ${CPACK_PACKAGE_FILE_NAME}.${ARCHIVE_EXT} -> ${OSSIM_PACKAGE_FILE_NAME}.${ARCHIVE_EXT}" ++ COMMENT "Run CPack packaging for ${package_name}..." ++ ) ++ # Add the exact same custom command to the all package generating target. ++ # I can't use add_dependencies to do this because it would allow parallel building of packages so am going brute here ++ ADD_CUSTOM_COMMAND(TARGET ${PACKAGE_ALL_TARGETNAME} ++ COMMAND ${CMAKE_CPACK_COMMAND} -C ${OSSIM_CPACK_CONFIGURATION} --config ${${PROJECT_NAME}_BINARY_DIR}/CPackConfig-${package_name}.cmake ++ COMMAND "${MOVE_COMMAND}" "${CPACK_PACKAGE_FILE_NAME}.${ARCHIVE_EXT}" "${OSSIM_PACKAGE_FILE_NAME}.${ARCHIVE_EXT}" ++ COMMAND ${CMAKE_COMMAND} -E echo "renamed ${CPACK_PACKAGE_FILE_NAME}.${ARCHIVE_EXT} -> ${OSSIM_PACKAGE_FILE_NAME}.${ARCHIVE_EXT}" ++ ) ++ENDMACRO(GENERATE_PACKAGING_TARGET) ++ ++# Create configs and targets for a package including all components ++SET(OSSIM_CPACK_COMPONENT ALL) ++GENERATE_PACKAGING_TARGET(ossim-all) ++ ++# Create configs and targets for each component ++FOREACH(package ${CPACK_COMPONENTS_ALL}) ++ SET(OSSIM_CPACK_COMPONENT ${package}) ++ GENERATE_PACKAGING_TARGET(${package}) ++ENDFOREACH() +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/OssimCPackConfig.cmake.in +@@ -0,0 +1,73 @@ ++# This file will be configured to contain variables for CPack. These variables ++# should be set in the CMake list file of the project before CPack module is ++# included. Example variables are: ++# CPACK_GENERATOR - Generator used to create package ++# CPACK_INSTALL_CMAKE_PROJECTS - For each project (path, name, component) ++# CPACK_CMAKE_GENERATOR - CMake Generator used for the projects ++# CPACK_INSTALL_COMMANDS - Extra commands to install components ++# CPACK_INSTALL_DIRECTORIES - Extra directories to install ++# CPACK_PACKAGE_DESCRIPTION_FILE - Description file for the package ++# CPACK_PACKAGE_DESCRIPTION_SUMMARY - Summary of the package ++# CPACK_PACKAGE_EXECUTABLES - List of pairs of executables and labels ++# CPACK_PACKAGE_FILE_NAME - Name of the package generated ++# CPACK_PACKAGE_ICON - Icon used for the package ++# CPACK_PACKAGE_INSTALL_DIRECTORY - Name of directory for the installer ++# CPACK_PACKAGE_NAME - Package project name ++# CPACK_PACKAGE_VENDOR - Package project vendor ++# CPACK_PACKAGE_VERSION - Package project version ++# CPACK_PACKAGE_VERSION_MAJOR - Package project version (major) ++# CPACK_PACKAGE_VERSION_MINOR - Package project version (minor) ++# CPACK_PACKAGE_VERSION_PATCH - Package project version (patch) ++ ++# There are certain generator specific ones ++ ++# NSIS Generator: ++# CPACK_PACKAGE_INSTALL_REGISTRY_KEY - Name of the registry key for the installer ++# CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS - Extra commands used during uninstall ++# CPACK_NSIS_EXTRA_INSTALL_COMMANDS - Extra commands used during install ++ ++ ++SET(CPACK_BINARY_BUNDLE "${CPACK_BINARY_BUNDLE}") ++SET(CPACK_BINARY_CYGWIN "${CPACK_BINARY_CYGWIN}") ++SET(CPACK_BINARY_DEB "${CPACK_BINARY_DEB}") ++SET(CPACK_BINARY_NSIS "${CPACK_BINARY_NSIS}") ++SET(CPACK_BINARY_OSXX11 "${CPACK_BINARY_OSXX11}") ++SET(CPACK_BINARY_PACKAGEMAKER "${CPACK_BINARY_PACKAGEMAKER}") ++SET(CPACK_BINARY_RPM "${CPACK_BINARY_RPM}") ++SET(CPACK_BINARY_STGZ "${CPACK_BINARY_STGZ}") ++SET(CPACK_BINARY_TBZ2 "${CPACK_BINARY_TBZ2}") ++SET(CPACK_BINARY_TGZ "${CPACK_BINARY_TGZ}") ++SET(CPACK_BINARY_TZ "${CPACK_BINARY_TZ}") ++SET(CPACK_BINARY_ZIP "${CPACK_BINARY_ZIP}") ++SET(CPACK_CMAKE_GENERATOR "${CMAKE_GENERATOR}") ++SET(CPACK_COMPONENTS_ALL "${CPACK_COMPONENTS_ALL}") ++SET(CPACK_COMPONENT_UNSPECIFIED_HIDDEN "TRUE") ++SET(CPACK_COMPONENT_UNSPECIFIED_REQUIRED "TRUE") ++SET(CPACK_GENERATOR "${CPACK_GENERATOR}") ++SET(CPACK_INSTALL_CMAKE_PROJECTS "${${PROJECT_NAME}_BINARY_DIR};ossim;${OSSIM_CPACK_COMPONENT};/") ++SET(CPACK_INSTALL_PREFIX "${CPACK_INSTALL_PREFIX}") ++SET(CPACK_MODULE_PATH "${${PROJECT_NAME}_SOURCE_DIR}/CMakeModules;") ++SET(CPACK_NSIS_DISPLAY_NAME "${CMAKE_PROJECT_NAME} ${OSSIM_VERSION}") ++SET(CPACK_NSIS_INSTALLER_ICON_CODE "") ++SET(CPACK_NSIS_INSTALLER_MUI_ICON_CODE "") ++SET(CPACK_OUTPUT_CONFIG_FILE "${PROJECT_BINARY_DIR}/CPackConfig-${OSSIM_CPACK_COMPONENT}.cmake") ++SET(CPACK_PACKAGE_DEFAULT_LOCATION "/") ++SET(CPACK_PACKAGE_DESCRIPTION_FILE "${${PROJECT_NAME}_SOURCE_DIR}/README.txt") ++SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "OSSIM is an open source high performance sensor modeling and image processing library") ++SET(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}") ++SET(CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_INSTALL_DIRECTORY}") ++SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "${CMAKE_PROJECT_NAME}-${OSSIM_VERSION}") ++SET(CPACK_PACKAGE_NAME "${CPACK_PACKAGE_NAME}") ++SET(CPACK_PACKAGE_RELOCATABLE "true") ++SET(CPACK_PACKAGE_VENDOR "OSSIM") ++SET(CPACK_PACKAGE_VERSION "${OSSIM_VERSION}") ++SET(CPACK_PACKAGE_VERSION_MAJOR "${OSSIM_MAJOR_VERSION}") ++SET(CPACK_PACKAGE_VERSION_MINOR "${OSSIM_MINOR_VERSION}") ++SET(CPACK_PACKAGE_VERSION_PATCH "${OSSIM_PATCH_VERSION}") ++SET(CPACK_RESOURCE_FILE_LICENSE "${${PROJECT_NAME}_SOURCE_DIR}/LICENSE.txt") ++SET(CPACK_RESOURCE_FILE_README "${${PROJECT_NAME}_SOURCE_DIR}/README.txt") ++SET(CPACK_RESOURCE_FILE_WELCOME "${${PROJECT_NAME}_SOURCE_DIR}/NEWS.txt") ++SET(CPACK_SET_DESTDIR "OFF") ++SET(CPACK_STRIP_FILES "ON") ++SET(CPACK_RPM_PACKAGE_DEBUG "1") ++SET(CPACK_OSX_PACKAGE_VERSION "10.6") +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/OssimCommonVariables.cmake +@@ -0,0 +1,258 @@ ++################################################################################## ++# This currently sets up the options for the WARNING FLAGS for the compiler we are generating for. ++# Currently only have gnu ++################################################################################## ++MACRO(OSSIM_ADD_COMMON_LIBRARY_FLAGS) ++ OPTION(OSSIM_COMPILE_WITH_FULL_WARNING "OSSIM developers : Compilation with FULL warning (use only for ossim developers)." OFF) ++ MARK_AS_ADVANCED(OSSIM_COMPILE_WITH_FULL_WARNING) ++ ++ IF(OSSIM_COMPILE_WITH_FULL_WARNING) ++ IF(CMAKE_COMPILER_IS_GNUCXX) ++ SET(OSSIM_COMMON_COMPILER_FLAGS "${OSSIM_COMMON_COMPILER_FLAGS} -Wall -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wuninitialized -Wsign-compare -Wparentheses -Wunknown-pragmas -Wswitch" CACHE STRING "List of compilation parameters.") ++ ENDIF(CMAKE_COMPILER_IS_GNUCXX) ++ ENDIF(OSSIM_COMPILE_WITH_FULL_WARNING) ++ ++ IF(WIN32) ++ #--- ++ # This option is to enable the /MP to compile multiple source files by using ++ # multiple processes. ++ #--- ++ OPTION(WIN32_USE_MP "Set to ON to build OSSIM with the /MP option (Visual Studio 2005 and above)." OFF) ++ MARK_AS_ADVANCED(WIN32_USE_MP) ++ IF(WIN32_USE_MP) ++ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") ++ ENDIF(WIN32_USE_MP) ++ ++ set(OSSIM_COMMON_COMPILER_FLAGS "${OSSIM_COMMON_COMPILER_FLAGS} -DNOMINMAX -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE") ++ ++ set(DEBUG_BUILD OFF) ++ IF(CMAKE_BUILD_TYPE) ++ string ( COMPARE EQUAL ${CMAKE_BUILD_TYPE} "Debug" DEBUG_BUILD ) ++ ENDIF(CMAKE_BUILD_TYPE) ++ ++ ### ++ # Currently must set /FORCE:MULTIPLE for Visual Studio 2010. 29 October 2010 - drb ++ ### ++ ++ IF(MSVC) ++ message("MSVC_VERSION: ${MSVC_VERSION}") ++ ++ if( (${MSVC_VERSION} EQUAL 1600) OR (${MSVC_VERSION} EQUAL 1700) ) ++ if (DEBUG_BUILD) ++ SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /NODEFAULTLIB:LIBCMTD /NODEFAULTLIB:MSVCRT /FORCE:MULTIPLE /MANIFEST:NO") ++ SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB:LIBCMTD /FORCE:MULTIPLE /MANIFEST:NO") ++ ++ else ( ) ++ SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /NODEFAULTLIB:LIBCMTD /FORCE:MULTIPLE /MANIFEST:NO") ++ SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB:LIBCMTD /FORCE:MULTIPLE /MANIFEST:NO") ++ endif (DEBUG_BUILD) ++ ++ SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /NODEFAULTLIB:LIBCMTD /FORCE:MULTIPLE") ++ else( ) ++ SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /NODEFAULTLIB:LIBCMTD") ++ endif( (${MSVC_VERSION} EQUAL 1600) OR (${MSVC_VERSION} EQUAL 1700) ) ++ ENDIF(MSVC) ++ ENDIF(WIN32) ++ ++ OPTION(OSSIM_ADD_FPIC "Compilation with FPIC flag if static library. The default is on since we have plugins that need to be shared." ON) ++ MARK_AS_ADVANCED(OSSIM_ADD_FPIC) ++ IF(OSSIM_ADD_FPIC) ++ IF(UNIX AND NOT BUILD_SHARED_LIBS) ++ STRING(REGEX MATCH "fPIC" REG_MATCHED "${OSSIM_COMMON_COMPILER_FLAGS}") ++ if(NOT REG_MATCHED) ++ set(OSSIM_COMMON_COMPILER_FLAGS "${OSSIM_COMMON_COMPILER_FLAGS} -fPIC") ++ endif(NOT REG_MATCHED) ++ ENDIF(UNIX AND NOT BUILD_SHARED_LIBS) ++ ENDIF(OSSIM_ADD_FPIC) ++ ++ MARK_AS_ADVANCED(OSSIM_COMMON_COMPILER_FLAGS) ++ENDMACRO(OSSIM_ADD_COMMON_LIBRARY_FLAGS) ++ ++MACRO(OSSIM_ADD_COMMON_SETTINGS) ++ ################################################################################### ++ # Set defaults for Universal Binaries. We want 32-bit Intel/PPC on 10.4 ++ # and 32/64-bit Intel/PPC on >= 10.5. Anything <= 10.3 doesn't support. ++ # These are just defaults/recommendations, but how we want to build ++ # out of the box. But the user needs to be able to change these options. ++ # So we must only set the values the first time CMake is run, or we ++ # will overwrite any changes the user sets. ++ # FORCE is used because the options are not reflected in the UI otherwise. ++ # Seems like a good place to add version specific compiler flags too. ++ ################################################################################### ++ IF(APPLE) ++ # use, i.e. 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}") ++ ++ # 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}" isSystemDir) ++ ++ IF("${isSystemDir}" STREQUAL "-1") ++ SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}") ++ ENDIF("${isSystemDir}" STREQUAL "-1") ++ ++ SET(TEMP_CMAKE_OSX_ARCHITECTURES "") ++ SET(CMAKE_OSX_SYSROOT "${CMAKE_OSX_SYSROOT}") ++ # This is really fragile, but CMake doesn't provide the OS system ++ # version information we need. (Darwin versions can be changed ++ # independently of OS X versions.) ++ # It does look like CMake handles the CMAKE_OSX_SYSROOT automatically. ++ IF(EXISTS /Developer/SDKs/MacOSX10.6.sdk) ++ SET(TEMP_CMAKE_OSX_ARCHITECTURES "i386;x86_64") ++ IF(NOT ("${CMAKE_CXX_FLAGS}" MATCHES "mmacosx-version-min")) ++ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.5 -ftree-vectorize -fvisibility-inlines-hidden" CACHE STRING "Flags used by the compiler during all build types.") ++ ENDIF() ++ ELSEIF(EXISTS /Developer/SDKs/MacOSX10.5.sdk) ++ # 64-bit compiles are not supported with Carbon. We should enable ++ SET(TEMP_CMAKE_OSX_ARCHITECTURES "i386;x86_64") ++ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.5 -ftree-vectorize -fvisibility-inlines-hidden" CACHE STRING "Flags used by the compiler during all build types.") ++ ELSEIF(EXISTS /Developer/SDKs/MacOSX10.4u.sdk) ++ SET(TEMP_CMAKE_OSX_ARCHITECTURES "i386;ppc") ++ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.4 -ftree-vectorize -fvisibility-inlines-hidden" CACHE STRING "Flags used by the compiler during all build types.") ++ ELSE() ++ # No Universal Binary support ++ # Should break down further to set the -mmacosx-version-min, ++ # but the SDK detection is too unreliable here. ++ ENDIF() ++ IF(NOT CMAKE_OSX_ARCHITECTURES) ++ SET(CMAKE_OSX_ARCHITECTURES "${TEMP_CMAKE_OSX_ARCHITECTURES}" CACHE STRING "Build architectures for OSX" FORCE) ++ ENDIF() ++ OPTION(OSSIM_BUILD_APPLICATION_BUNDLES "Enable the building of applications and examples as OSX Bundles" OFF) ++ ++ MARK_AS_ADVANCED(CMAKE_OSX_ARCHITECTURES) ++ MARK_AS_ADVANCED(CMAKE_CXX_FLAGS) ++ MARK_AS_ADVANCED(CMAKE_OSX_SYSROOT) ++ MARK_AS_ADVANCED(OSSIM_BUILD_APPLICATION_BUNDLES) ++ ENDIF(APPLE) ++ ++ SET(MAKE_APPENDS_BUILD_TYPE "NO") ++ IF(CMAKE_GENERATOR) ++ STRING(TOUPPER ${CMAKE_GENERATOR} CMAKE_GENERATOR_TEST_UPPER) ++ STRING(COMPARE EQUAL "${CMAKE_GENERATOR_TEST_UPPER}" "XCODE" CMAKE_GENERATOR_TEST) ++ IF(CMAKE_GENERATOR_TEST) ++ SET(MAKE_APPENDS_BUILD_TYPE "YES") ++ ELSE() ++ STRING(COMPARE NOTEQUAL "." "${CMAKE_CFG_INTDIR}" CMAKE_GENERATOR_TEST) ++ IF(CMAKE_GENERATOR_TEST) ++ SET(MAKE_APPENDS_BUILD_TYPE "YES") ++ ENDIF() ++ ENDIF() ++ ENDIF(CMAKE_GENERATOR) ++ OSSIM_ADD_COMMON_LIBRARY_FLAGS() ++ ++ # Dynamic vs Static Linking ++ OPTION(BUILD_SHARED_LIBS "Set to ON to build OSSIM for dynamic linking. Use OFF for static." ON) ++ OPTION(BUILD_OSSIM_FRAMEWORKS "Set to ON to build OSSIM for framework if BUILD_SHARED_LIBS is on. Use OFF for dylib if BUILD_SHARED_LIBS is on." ON) ++ IF(BUILD_SHARED_LIBS) ++ SET(OSSIM_USER_DEFINED_DYNAMIC_OR_STATIC "SHARED") ++ ELSE () ++ SET(OSSIM_USER_DEFINED_DYNAMIC_OR_STATIC "STATIC") ++ ENDIF() ++ ++# IF(NOT OSSIM_LIBRARY_BUILD_OUTPUT_DIRECTORY) ++# SET(OSSIM_LIBRARY_BUILD_OUTPUT_DIRECTORY ${${PROJECT_NAME}_SOURCE_DIR}/lib) ++# ENDIF(NOT OSSIM_LIBRARY_BUILD_OUTPUT_DIRECTORY) ++# IF(NOT OSSIM_RUNTIME_BUILD_OUTPUT_DIRECTORY) ++# SET(OSSIM_RUNTIME_BUILD_OUTPUT_DIRECTORY ${${PROJECT_NAME}_SOURCE_DIR}/bin) ++# ENDIF(NOT OSSIM_RUNTIME_BUILD_OUTPUT_DIRECTORY) ++ ++ IF(MAKE_APPENDS_BUILD_TYPE) ++ SET(BUILD_FRAMEWORK_DIR "") ++ SET(BUILD_RUNTIME_DIR "") ++ SET(BUILD_LIBRARY_DIR "") ++ SET(BUILD_ARCHIVE_DIR "") ++ SET(BUILD_INCLUDE_DIR "include") ++ ELSE() ++ IF(NOT DEFINED BUILD_FRAMEWORK_DIR) ++ SET(BUILD_FRAMEWORK_DIR "${CMAKE_BUILD_TYPE}") ++ ENDIF() ++ IF(NOT DEFINED BUILD_RUNTIME_DIR) ++ SET(BUILD_RUNTIME_DIR "${CMAKE_BUILD_TYPE}") ++ ENDIF() ++ IF(NOT DEFINED BUILD_LIBRARY_DIR) ++ SET(BUILD_LIBRARY_DIR "${CMAKE_BUILD_TYPE}") ++ ENDIF() ++ IF(NOT DEFINED BUILD_ARCHIVE_DIR) ++ SET(BUILD_ARCHIVE_DIR "${CMAKE_BUILD_TYPE}") ++ ENDIF() ++ IF(NOT DEFINED BUILD_INCLUDE_DIR) ++ SET(BUILD_INCLUDE_DIR "include") ++ ENDIF() ++ ENDIF() ++ ++ SET(INSTALL_FRAMEWORK_DIR "Frameworks") ++ SET(INSTALL_RUNTIME_DIR "bin") ++ SET(INSTALL_INCLUDE_DIR "include") ++ ++ # Libraries and archives go to lib or lib64. ++ get_property(LIB64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS) ++ if(LIB64) ++ set(LIBSUFFIX 64) ++ else() ++ set(LIBSUFFIX "") ++ endif() ++ set(INSTALL_LIBRARY_DIR lib${LIBSUFFIX} CACHE PATH "Installation directory for libraries") ++ set(INSTALL_ARCHIVE_DIR lib${LIBSUFFIX} CACHE PATH "Installation directory for archive") ++ mark_as_advanced(LIBSUFFIX) ++ mark_as_advanced(INSTALL_LIBRARY_DIR) ++ mark_as_advanced(INSTALL_ARCHIVE_DIR) ++ ++ IF(WIN32) ++ IF(NOT DEFINED CMAKE_DEBUG_POSTFIX) ++ SET(CMAKE_DEBUG_POSTFIX "d" CACHE STRING "Debug variable used to add the postfix to dll's and exe's. Defaults to 'd' on WIN32 builds and empty on all other platforms" FORCE) ++ ENDIF() ++ ENDIF() ++ IF(NOT CMAKE_BUILD_TYPE) ++ SET(CMAKE_BUILD_TYPE Release) ++ ENDIF(NOT CMAKE_BUILD_TYPE) ++ ++ # force some variables that could be defined in the command line to be written to cache ++ SET( CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" CACHE PATH ++ "Where to install ${PROJECT_NAME}" FORCE ) ++ SET( CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING ++ "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE ) ++ SET( CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" CACHE PATH ++ "Path to custom CMake Modules" FORCE ) ++ SET( INSTALL_DOC "${INSTALL_DOC}" CACHE BOOL ++ "Set to OFF to skip build/install Documentation" FORCE ) ++ ++ IF(NOT OSSIM_DEV_HOME) ++ SET(OSSIM_DEV_HOME "$ENV{OSSIM_DEV_HOME}") ++ GET_FILENAME_COMPONENT(OSSIM_DEV_HOME "${OSSIM_DEV_HOME}" ABSOLUTE) ++ ENDIF(NOT OSSIM_DEV_HOME) ++ IF(NOT CMAKE_INSTALL_PREFIX) ++ SET(CMAKE_INSTALL_PREFIX "$ENV{OSSIM_INSTALL_PREFIX}") ++ GET_FILENAME_COMPONENT(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" ABSOLUTE) ++ ENDIF(NOT CMAKE_INSTALL_PREFIX) ++ IF(NOT OSSIM_DEPENDENCIES) ++ SET(OSSIM_DEPENDENCIES "$ENV{OSSIM_DEPENDENCIES}") ++ GET_FILENAME_COMPONENT(OSSIM_DEPENDENCIES "${OSSIM_DEPENDENCIES}" ABSOLUTE) ++ ENDIF(NOT OSSIM_DEPENDENCIES) ++ ++ #################################### ADd some common options for all modules to use ################################### ++ OPTION(BUILD_OSSIMC "Set to ON to build the ossim c api interfaces. Use OFF to skip this module." OFF) ++ OPTION(BUILD_OSSIMPREDATOR "Set to ON to build the Predator video decoding library. Use OFF to skip this module." ON) ++ OPTION(BUILD_OSSIMPLANET "Set to ON to build the 3-D visualization module. Use OFF to skip this module." ON) ++ OPTION(BUILD_OSSIMPLANETQT "Set to ON to build the 3-D visualization Qt GUI module. Use OFF to skip this module." ON) ++ OPTION(BUILD_OSSIMQT4 "Set to ON to build the 2-D Qt4 GUI." ON) ++ OPTION(BUILD_OSSIMGUI "Set to ON to build the new ossimGui library and geocell application." ON) ++ OPTION(BUILD_CSMAPI "Set to ON to build the csm api library." ON) ++ OPTION(BUILD_OMS "Set to ON to build the oms api library." ON) ++ OPTION(BUILD_WMS "Set to ON to build the wms api library." ON) ++ ++ ++ENDMACRO(OSSIM_ADD_COMMON_SETTINGS) ++ ++ ++OSSIM_ADD_COMMON_SETTINGS() ++ +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/OssimDetermineCompiler.cmake +@@ -0,0 +1,77 @@ ++# - If Visual Studio is being used, this script sets the variable OSG_COMPILER ++# The principal reason for this is due to MSVC 8.0 SP0 vs SP1 builds. ++# ++# Variable: ++# OSG_COMPILER ++# ++ ++# Not currently used... ++#IF(CMAKE_COMPILER_IS_GNUCXX) ++# EXEC_PROGRAM( ++# ${CMAKE_CXX_COMPILER} ++# ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion ++# OUTPUT_VARIABLE gcc_compiler_version ++# ) ++# #MESSAGE("GCC Version: ${gcc_compiler_version}") ++ ++IF(MSVC60) ++ SET(OSG_COMPILER "vc60") ++ELSEIF(MSVC70) ++ SET(OSG_COMPILER "vc70") ++ELSEIF(MSVC71) ++ SET(OSG_COMPILER "vc71") ++ELSEIF(MSVC80) ++ SET(OSG_COMPILER "vc80") ++ELSEIF(MSVC90) ++ SET(OSG_COMPILER "vc90") ++ELSEIF(MSVC100) ++ SET(OSG_COMPILER "vc100") ++ENDIF() ++ ++MESSAGE("OSG_COMPILER ${OSG_COMPILER}") ++ ++IF(MSVC80) ++ MESSAGE(STATUS "Checking if compiler has service pack 1 installed...") ++ FILE(WRITE "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.cxx" "int main() {return 0;}\n") ++ ++ TRY_COMPILE(_TRY_RESULT ++ ${CMAKE_BINARY_DIR} ++ ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.cxx ++ CMAKE_FLAGS -D CMAKE_VERBOSE_MAKEFILE=ON ++ OUTPUT_VARIABLE OUTPUT ++ ) ++ ++ IF(_TRY_RESULT) ++ # parse for exact compiler version ++ STRING(REGEX MATCH "Compiler Version [0-9]+.[0-9]+.[0-9]+.[0-9]+" vc_compiler_version "${OUTPUT}") ++ IF(vc_compiler_version) ++ #MESSAGE("${vc_compiler_version}") ++ STRING(REGEX MATCHALL "[0-9]+" CL_VERSION_LIST "${vc_compiler_version}") ++ LIST(GET CL_VERSION_LIST 0 CL_MAJOR_VERSION) ++ LIST(GET CL_VERSION_LIST 1 CL_MINOR_VERSION) ++ LIST(GET CL_VERSION_LIST 2 CL_PATCH_VERSION) ++ LIST(GET CL_VERSION_LIST 3 CL_EXTRA_VERSION) ++ ENDIF(vc_compiler_version) ++ ++ # Standard vc80 is 14.00.50727.42, sp1 14.00.50727.762, sp2? ++ # Standard vc90 is 9.0.30729.1, sp1 ? ++ IF(CL_EXTRA_VERSION EQUAL 762) ++ SET(OSG_COMPILER "vc80sp1") ++ ELSE(CL_EXTRA_VERSION EQUAL 762) ++ SET(OSG_COMPILER "vc80") ++ ENDIF(CL_EXTRA_VERSION EQUAL 762) ++ ++ # parse for exact visual studio version ++ #IF(MSVC_IDE) ++ # string(REGEX MATCH "Visual Studio Version [0-9]+.[0-9]+.[0-9]+.[0-9]+" vs_version "${OUTPUT}") ++ # IF(vs_version) ++ # MESSAGE("${vs_version}") ++ # string(REGEX MATCHALL "[0-9]+" VS_VERSION_LIST "${vs_version}") ++ # list(GET VS_VERSION_LIST 0 VS_MAJOR_VERSION) ++ # list(GET VS_VERSION_LIST 1 VS_MINOR_VERSION) ++ # list(GET VS_VERSION_LIST 2 VS_PATCH_VERSION) ++ # list(GET VS_VERSION_LIST 3 VS_EXTRA_VERSION) ++ # ENDIF(vs_version) ++ #ENDIF(MSVC_IDE) ++ ENDIF(_TRY_RESULT) ++ENDIF(MSVC80) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/OssimQt4Macros.cmake +@@ -0,0 +1,24 @@ ++include(Qt4Macros) ++MACRO (OSSIM_QT4_WRAP_UI outfiles) ++ ++ if(CMAKE_VERSION VERSION_LESS 2.8.12) ++ QT4_EXTRACT_OPTIONS(ui_files ui_options ${ARGN}) ++ else() ++ QT4_EXTRACT_OPTIONS(ui_files ui_options "" ${ARGN}) ++ endif() ++ FOREACH (it ${ui_files}) ++ GET_FILENAME_COMPONENT(outfile ${it} NAME_WE) ++ GET_FILENAME_COMPONENT(infile ${it} ABSOLUTE) ++ IF(UI_DESTINATION_DIR) ++ SET(outfile ${UI_DESTINATION_DIR}/ui_${outfile}.h) ++ ELSE(UI_DESTINATION_DIR) ++ SET(outfile ${CMAKE_CURRENT_BINARY_DIR}/ui_${outfile}.h) ++ ENDIF(UI_DESTINATION_DIR) ++ ADD_CUSTOM_COMMAND(OUTPUT ${outfile} ++ COMMAND ${QT_UIC_EXECUTABLE} ++ ARGS ${ui_options} -o ${outfile} ${infile} ++ MAIN_DEPENDENCY ${infile}) ++ SET(${outfiles} ${${outfiles}} ${outfile}) ++ ENDFOREACH (it) ++ ++ENDMACRO (OSSIM_QT4_WRAP_UI) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/OssimQt5Macros.cmake +@@ -0,0 +1,19 @@ ++include(Qt5Macros) ++MACRO (OSSIM_QT_WRAP_UI outfiles) ++ QT5_EXTRACT_OPTIONS(ui_files ui_options ${ARGN}) ++ FOREACH (it ${ui_files}) ++ GET_FILENAME_COMPONENT(outfile ${it} NAME_WE) ++ GET_FILENAME_COMPONENT(infile ${it} ABSOLUTE) ++ IF(UI_DESTINATION_DIR) ++ SET(outfile ${UI_DESTINATION_DIR}/ui_${outfile}.h) ++ ELSE(UI_DESTINATION_DIR) ++ SET(outfile ${CMAKE_CURRENT_BINARY_DIR}/ui_${outfile}.h) ++ ENDIF(UI_DESTINATION_DIR) ++ ADD_CUSTOM_COMMAND(OUTPUT ${outfile} ++ COMMAND ${QT_UIC_EXECUTABLE} ++ ARGS ${ui_options} -o ${outfile} ${infile} ++ MAIN_DEPENDENCY ${infile}) ++ SET(${outfiles} ${${outfiles}} ${outfile}) ++ ENDFOREACH (it) ++ ++ENDMACRO (OSSIM_QT_WRAP_UI) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/OssimUtilities.cmake +@@ -0,0 +1,359 @@ ++################################################################################# ++# This was taken from the http://www.cmake.org/Wiki/CMakeMacroParseArguments ++################################################################################# ++MACRO(OSSIM_PARSE_ARGUMENTS prefix arg_names option_names) ++ SET(DEFAULT_ARGS) ++ FOREACH(arg_name ${arg_names}) ++ SET(${prefix}_${arg_name}) ++ ENDFOREACH(arg_name) ++ FOREACH(option ${option_names}) ++ SET(${prefix}_${option} FALSE) ++ ENDFOREACH(option) ++ ++ SET(current_arg_name DEFAULT_ARGS) ++ SET(current_arg_list) ++ FOREACH(arg ${ARGN}) ++ SET(larg_names ${arg_names}) ++ LIST(FIND larg_names "${arg}" is_arg_name) ++ IF (is_arg_name GREATER -1) ++ SET(${prefix}_${current_arg_name} ${current_arg_list}) ++ SET(current_arg_name ${arg}) ++ SET(current_arg_list) ++ ELSE (is_arg_name GREATER -1) ++ SET(loption_names ${option_names}) ++ LIST(FIND loption_names "${arg}" is_option) ++ IF (is_option GREATER -1) ++ SET(${prefix}_${arg} TRUE) ++ ELSE (is_option GREATER -1) ++ SET(current_arg_list ${current_arg_list} ${arg}) ++ ENDIF (is_option GREATER -1) ++ ENDIF (is_arg_name GREATER -1) ++ ENDFOREACH(arg) ++ SET(${prefix}_${current_arg_name} ${current_arg_list}) ++ENDMACRO(OSSIM_PARSE_ARGUMENTS) ++ ++############################################################################################## ++# This was taken from http://www.cmake.org/Wiki/CMakeMacroListOperations#CAR_and_CDR ++############################################################################################## ++MACRO(OSSIM_CAR var) ++ SET(${var} ${ARGV1}) ++ENDMACRO(OSSIM_CAR) ++ ++############################################################################################# ++# This was taken from http://www.cmake.org/Wiki/CMakeMacroListOperations#CAR_and_CDR ++############################################################################################# ++MACRO(OSSIM_CDR var junk) ++ SET(${var} ${ARGN}) ++ENDMACRO(OSSIM_CDR) ++ ++################################################################################# ++# MACRO: TODAYS_DATE ++# ++# DESCRIPTION: ++# MACRO FOR GETTING THE DATE AND TIME INFORMATION ++################################################################################# ++MACRO (TODAYS_DATE RESULT) ++ string(TIMESTAMP ${RESULT} "%Y%m%d" UTC) ++ENDMACRO (TODAYS_DATE) ++ ++################################################################################# ++# MACRO: GET_SVN_REVISION ++# ++# DESCRIPTION: ++# MACRO FOR GETTING THE SVN revision for this build ++################################################################################# ++MACRO (GET_SVN_REVISION) ++ FIND_PACKAGE(Subversion) ++ IF(SUBVERSION_FOUND) ++ Subversion_WC_INFO(${PROJECT_SOURCE_DIR} Project) ++ # MESSAGE("Current revision is ${Project_WC_REVISION}") ++ # Subversion_WC_LOG(${PROJECT_SOURCE_DIR} Project) ++ # MESSAGE("Last changed log is ${Project_LAST_CHANGED_LOG}") ++ ENDIF() ++ENDMACRO(GET_SVN_REVISION) ++ ++MACRO(LINK_EXTERNAL TRGTNAME) ++ FOREACH(LINKLIB ${ARGN}) ++ TARGET_LINK_LIBRARIES(${TRGTNAME} "${LINKLIB}" ) ++ ENDFOREACH(LINKLIB) ++ENDMACRO(LINK_EXTERNAL TRGTNAME) ++ ++MACRO(LINK_INTERNAL TRGTNAME) ++ IF(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4) ++ TARGET_LINK_LIBRARIES(${TRGTNAME} ${ARGN}) ++ ELSE(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4) ++ FOREACH(LINKLIB ${ARGN}) ++ IF(MSVC AND OSSIM_MSVC_VERSIONED_DLL) ++ #when using versioned names, the .dll name differ from .lib name, there is a problem with that: ++ #CMake 2.4.7, at least seem to use PREFIX instead of IMPORT_PREFIX for computing linkage info to use into projects, ++ # so we full path name to specify linkage, this prevent automatic inferencing of dependencies, so we add explicit depemdencies ++ #to library targets used ++ TARGET_LINK_LIBRARIES(${TRGTNAME} optimized "${OUTPUT_LIBDIR}/${LINKLIB}${CMAKE_RELEASE_POSTFIX}.lib" debug "${OUTPUT_LIBDIR}/${LINKLIB}${CMAKE_DEBUG_POSTFIX}.lib") ++ ADD_DEPENDENCIES(${TRGTNAME} ${LINKLIB}) ++ ELSE(MSVC AND OSSIM_MSVC_VERSIONED_DLL) ++ TARGET_LINK_LIBRARIES(${TRGTNAME} optimized "${LINKLIB}${CMAKE_RELEASE_POSTFIX}" debug "${LINKLIB}${CMAKE_DEBUG_POSTFIX}") ++ ENDIF(MSVC AND OSSIM_MSVC_VERSIONED_DLL) ++ ENDFOREACH(LINKLIB) ++ ENDIF(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4) ++ENDMACRO(LINK_INTERNAL TRGTNAME) ++ ++###################################################################### ++# ++# This set up the libraries to link to, it assumes there are two variable: one common for a group of examples or plugins ++# kept in the variable TARGET_COMMON_LIBRARIES and an example or plugin specific kept in TARGET_ADDED_LIBRARIES ++# they are combined in a single list checked for unicity ++# the suffix ${CMAKE_DEBUG_POSTFIX} is used for differentiating optimized and debug ++# ++# a second variable TARGET_EXTERNAL_LIBRARIES hold the list of libraries not differentiated between debug and optimized ++################################################################################## ++MACRO(SETUP_LINK_LIBRARIES) ++ SET(TARGET_LIBRARIES ${TARGET_COMMON_LIBRARIES}) ++ ++ FOREACH(LINKLIB ${TARGET_ADDED_LIBRARIES}) ++ SET(TO_INSERT TRUE) ++ FOREACH (value ${TARGET_COMMON_LIBRARIES}) ++ IF (${value} STREQUAL ${LINKLIB}) ++ SET(TO_INSERT FALSE) ++ ENDIF (${value} STREQUAL ${LINKLIB}) ++ ENDFOREACH (value ${TARGET_COMMON_LIBRARIES}) ++ IF(TO_INSERT) ++ LIST(APPEND TARGET_LIBRARIES ${LINKLIB}) ++ ENDIF(TO_INSERT) ++ ENDFOREACH(LINKLIB) ++ ++ LINK_INTERNAL(${TARGET_TARGETNAME} ${TARGET_LIBRARIES}) ++ TARGET_LINK_LIBRARIES(${TARGET_TARGETNAME} ${TARGET_EXTERNAL_LIBRARIES}) ++ IF(TARGET_LIBRARIES_VARS) ++ LINK_WITH_VARIABLES(${TARGET_TARGETNAME} ${TARGET_LIBRARIES_VARS}) ++ ENDIF(TARGET_LIBRARIES_VARS) ++ENDMACRO(SETUP_LINK_LIBRARIES) ++ ++ ++MACRO(OSSIM_SETUP_APPLICATION) ++ OSSIM_PARSE_ARGUMENTS(APPLICATION ++ "COMPONENT_NAME;SOURCE_FILES;HEADERS;TARGET_NAME;TARGET_LABEL" ++ "COMMAND_LINE;INSTALL;REQUIRE_WINMAIN_FLAG" ++ ${ARGN}) ++ OSSIM_CAR(APPLICATION_NAME "${APPLICATION_DEFAULT_ARGS}") ++ OSSIM_CDR(APPLICATION_SOURCES "${APPLICATION_DEFAULT_ARGS}") ++ SET(TARGET_NAME ${APPLICATION_NAME}) ++ SET(TARGET_TARGETNAME "${TARGET_DEFAULT_PREFIX}${APPLICATION_NAME}") ++ IF(APPLICATION_TARGET_NAME) ++ set(TARGET_TARGETNAME "${APPLICATION_TARGET_NAME}") ++ ENDIF(APPLICATION_TARGET_NAME) ++ ++ SET(TARGET_LABEL "${TARGET_DEFAULT_LABEL_PREFIX} ${APPLICATION_NAME}") ++ IF(APPLICATION_TARGET_LABEL) ++ SET(TARGET_LABEL "${APPLICATION_TARGET_LABEL}") ++ ENDIF(APPLICATION_TARGET_LABEL) ++ ++ IF(APPLICATION_COMMAND_LINE) ++ ADD_EXECUTABLE(${TARGET_TARGETNAME} ${APPLICATION_SOURCE_FILES} ${APPLICATION_HEADERS}) ++ ++ ELSE(APPLICATION_COMMAND_LINE) ++ IF(APPLE) ++ # SET(MACOSX_BUNDLE_LONG_VERSION_STRING "${OSSIM_MAJOR_VERSION}.${OSSIM_MINOR_VERSION}.${OSSIM_PATCH_VERSION}") ++ # Short Version is the "marketing version". It is the version ++ # the user sees in an information panel. ++ SET(MACOSX_BUNDLE_SHORT_VERSION_STRING "${OSSIM_MAJOR_VERSION}.${OSSIM_MINOR_VERSION}.${OSSIM_PATCH_VERSION}") ++ # Bundle version is the version the OS looks at. ++ SET(MACOSX_BUNDLE_BUNDLE_VERSION "${OSSIM_MAJOR_VERSION}.${OSSIM_MINOR_VERSION}.${OSSIM_PATCH_VERSION}") ++ SET(MACOSX_BUNDLE_GUI_IDENTIFIER "org.ossim.${TARGET_TARGETNAME}" ) ++ SET(MACOSX_BUNDLE_BUNDLE_NAME "${TARGET_TARGETNAME}" ) ++ # SET(MACOSX_BUNDLE_ICON_FILE "myicon.icns") ++ # SET(MACOSX_BUNDLE_COPYRIGHT "") ++ # SET(MACOSX_BUNDLE_INFO_STRING "Info string, localized?") ++ ENDIF(APPLE) ++ ++ IF(WIN32) ++ IF (APPLICATION_REQUIRE_WINMAIN_FLAG) ++ SET(PLATFORM_SPECIFIC_CONTROL WIN32) ++ ENDIF (APPLICATION_REQUIRE_WINMAIN_FLAG) ++ ENDIF(WIN32) ++ ++ IF(APPLE) ++ IF(OSSIM_BUILD_APPLICATION_BUNDLES) ++ SET(PLATFORM_SPECIFIC_CONTROL MACOSX_BUNDLE) ++ ENDIF(OSSIM_BUILD_APPLICATION_BUNDLES) ++ ENDIF(APPLE) ++ ++ ADD_EXECUTABLE(${TARGET_TARGETNAME} ${PLATFORM_SPECIFIC_CONTROL} ${APPLICATION_SOURCE_FILES} ${APPLICATION_HEADERS}) ++ ++ ENDIF(APPLICATION_COMMAND_LINE) ++ ++ ++ SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PROJECT_LABEL "${TARGET_LABEL}") ++ SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES OUTPUT_NAME ${TARGET_NAME}) ++ SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES DEBUG_OUTPUT_NAME "${TARGET_NAME}${CMAKE_DEBUG_POSTFIX}") ++ SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES RELEASE_OUTPUT_NAME "${TARGET_NAME}${CMAKE_RELEASE_POSTFIX}") ++ SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES RELWITHDEBINFO_OUTPUT_NAME "${TARGET_NAME}${CMAKE_RELWITHDEBINFO_POSTFIX}") ++ SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES MINSIZEREL_OUTPUT_NAME "${TARGET_NAME}${CMAKE_MINSIZEREL_POSTFIX}") ++ if(APPLE) ++ IF(BUILD_OSSIM_FRAMEWORKS) ++ SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES ++ BUILD_WITH_INSTALL_RPATH ON ) ++ ++ ENDIF(BUILD_OSSIM_FRAMEWORKS) ++ ENDIF(APPLE) ++ ++ IF(MSVC_IDE AND OSSIM_MSVC_VERSIONED_DLL) ++ SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PREFIX "../") ++ ENDIF(MSVC_IDE AND OSSIM_MSVC_VERSIONED_DLL) ++ ++ ++ SETUP_LINK_LIBRARIES() ++ ++ IF(APPLICATION_INSTALL) ++ IF(APPLE) ++ INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION ${INSTALL_RUNTIME_DIR} BUNDLE DESTINATION ${INSTALL_RUNTIME_DIR} COMPONENT ${APPLICATION_COMPONENT_NAME}) ++ ELSE(APPLE) ++ INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION ${INSTALL_RUNTIME_DIR} ${INSTALL_COMPONENT_INFO} COMPONENT ${APPLICATION_COMPONENT_NAME}) ++ ENDIF(APPLE) ++ ENDIF(APPLICATION_INSTALL) ++ ++ SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES ++ RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${BUILD_RUNTIME_DIR}") ++ ++ ++ENDMACRO(OSSIM_SETUP_APPLICATION) ++ ++##################################################################################################### ++# MACRO: OSSIM_LINK_LIBRARY ++# ++# Example: ++# OSSIM_LINK_LIBRARY(ossim ++# COMPONENT_NAME ossim ++# SOURCE_FILES foo.cpp ++# HEADERS foo.h ++# TYPE SHARED ++# LIBRARIES <list of libraries to link against> ++# INSTALL_LIB ++# INSTALL_HEADERS) ++# ++# The INSTALL_LIB says to add a default install command for the library by default it will setup the following ++# install(TARGETS ossim ++# FRAMEWORK DESTINATION ${INSTALL_FRAMEWORK_DIR} ++# RUNTIME DESTINATION ${INSTALL_RUNTIME_DIR} ++# LIBRARY DESTINATION ${INSTALL_LIBRARY_DIR} ++# ARCHIVE DESTINATION ${INSTALL_ARCHIVE_DIR} ++# PUBLIC_HEADER DESTINATION ${INSTALL_INCLUDE_DIR} ++# COMPONENT ossim) ++# ++# The INSTALL_HEADERS will do a default header installation if the option is passed in ++# install(FILES <list of headers> DESTINATION "include/ossim" COMPONENT ossim) ++##################################################################################################### ++MACRO(OSSIM_LINK_LIBRARY) ++ # The SO_VERSION and VERSION are here for override purpose only so other libraries with their own ++ # versioning scheme can use the sum linking ++ # ++ OSSIM_PARSE_ARGUMENTS(LINK ++ "COMPONENT_NAME;SOURCE_FILES;HEADERS;TYPE;LIBRARIES;ADDITIONAL_COMPILE_FLAGS;SOVERSION;VERSION;PUBLIC_HEADERS" ++ "INSTALL_LIB;INSTALL_HEADERS;VERSION_SYMLINKS" ++ ${ARGN}) ++ OSSIM_CAR(LINK_NAME "${LINK_DEFAULT_ARGS}") ++ OSSIM_CDR(LINK_SOURCES "${LINK_DEFAULT_ARGS}") ++ ADD_DEFINITIONS("${OSSIM_COMMON_COMPILER_FLAGS}") ++ ADD_LIBRARY(${LINK_NAME} ++ ${LINK_TYPE} ++ ${LINK_HEADERS} ++ ${LINK_SOURCE_FILES}) ++ IF(NOT LINK_PUBLIC_HEADERS) ++ SET(LINK_PUBLIC_HEADERS ${LINK_HEADERS}) ++ ENDIF() ++ IF(LINK_ADDITIONAL_COMPILE_FLAGS) ++ SET_TARGET_PROPERTIES(${LINK_NAME} PROPERTIES ++ COMPILE_FLAGS ${LINK_ADDITIONAL_COMPILE_FLAGS}) ++ ENDIF(LINK_ADDITIONAL_COMPILE_FLAGS) ++ if(APPLE) ++ IF(BUILD_SHARED_LIBS) ++# SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) ++# SET(CMAKE_INSTALL_RPATH "${OSSIM_COMPILE_FRAMEWORKS_INSTALL_NAME_DIR}") ++ IF(BUILD_OSSIM_FRAMEWORKS) ++ SET_TARGET_PROPERTIES(${LINK_NAME} PROPERTIES ++ FRAMEWORK TRUE ++ BUILD_WITH_INSTALL_RPATH ON ++ INSTALL_NAME_DIR @rpath/Frameworks) ++ ELSE(BUILD_OSSIM_FRAMEWORKS) ++ SET_TARGET_PROPERTIES(${LINK_NAME} PROPERTIES ++ FRAMEWORK FALSE ++ BUILD_WITH_INSTALL_RPATH ON ++ INSTALL_NAME_DIR @rpath/lib) ++ ENDIF(BUILD_OSSIM_FRAMEWORKS) ++ ELSE(BUILD_SHARED_LIBRARY) ++ SET_TARGET_PROPERTIES(${LINK_NAME} PROPERTIES ++ FRAMEWORK FALSE) ++ ENDIF(BUILD_SHARED_LIBS) ++ ENDIF(APPLE) ++ IF(UNIX AND BUILD_SHARED_LIBS AND NOT APPLE) ++ IF(LINK_VERSION_SYMLINKS) ++ IF(NOT LINK_SOVERSION) ++ set(LINK_SOVERSION "${OSSIM_SOVERSION}") ++ ENDIF(NOT LINK_SOVERSION) ++ IF(NOT LINK_VERSION) ++ set(LINK_VERSION "${OSSIM_VERSION}") ++ ENDIF(NOT LINK_VERSION) ++ # ADD_CUSTOM_TARGET( lib DEPENDS ${LINK_NAME} ) ++ # change lib_target properties ++ SET_TARGET_PROPERTIES( ${LINK_NAME} PROPERTIES ++ # create *nix style library versions + symbolic links ++ VERSION ${LINK_VERSION} ++ SOVERSION ${LINK_SOVERSION} ++ # allow creating static and shared libs without conflicts ++ CLEAN_DIRECT_OUTPUT 1 ++ # avoid conflicts between library and binary target names ++ OUTPUT_NAME ${LINK_NAME} ) ++ ENDIF(LINK_VERSION_SYMLINKS) ++ ENDIF(UNIX AND BUILD_SHARED_LIBS AND NOT APPLE) ++ SET_TARGET_PROPERTIES(${LINK_NAME} PROPERTIES ++ RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${BUILD_RUNTIME_DIR}") ++ IF(APPLE AND BUILD_OSSIM_FRAMEWORKS) ++ SET_TARGET_PROPERTIES(${LINK_NAME} PROPERTIES ++ LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${BUILD_FRAMEWORK_DIR}") ++ ELSE(APPLE AND BUILD_OSSIM_FRAMEWORKS) ++ SET_TARGET_PROPERTIES(${LINK_NAME} PROPERTIES ++ LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${BUILD_LIBRARY_DIR}") ++ ENDIF(APPLE AND BUILD_OSSIM_FRAMEWORKS) ++ SET_TARGET_PROPERTIES(${LINK_NAME} PROPERTIES ++ ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${BUILD_LIBRARY_DIR}") ++ ++ TARGET_LINK_LIBRARIES(${LINK_NAME} ${LINK_LIBRARIES} ${${LINK_NAME}_EXTRA_LIBS}) ++ ++ IF(LINK_INSTALL_LIB) ++ IF(LINK_INSTALL_HEADERS) ++ SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES PUBLIC_HEADER "${LINK_PUBLIC_HEADERS}") ++ install(TARGETS ${LINK_NAME} ++ FRAMEWORK DESTINATION ${INSTALL_FRAMEWORK_DIR} COMPONENT ${LINK_COMPONENT_NAME} ++ RUNTIME DESTINATION ${INSTALL_RUNTIME_DIR} COMPONENT ${LINK_COMPONENT_NAME} ++ LIBRARY DESTINATION ${INSTALL_LIBRARY_DIR} COMPONENT ${LINK_COMPONENT_NAME} ++ ARCHIVE DESTINATION ${INSTALL_ARCHIVE_DIR} COMPONENT ${LINK_COMPONENT_NAME}-dev ++ PUBLIC_HEADER DESTINATION ${INSTALL_INCLUDE_DIR} COMPONENT ${LINK_COMPONENT_NAME}-dev) ++ ELSE(LINK_INSTALL_HEADERS) ++ install(TARGETS ${LINK_NAME} ++ FRAMEWORK DESTINATION ${INSTALL_FRAMEWORK_DIR} COMPONENT ${LINK_COMPONENT_NAME} ++ RUNTIME DESTINATION ${INSTALL_RUNTIME_DIR} COMPONENT ${LINK_COMPONENT_NAME} ++ LIBRARY DESTINATION ${INSTALL_LIBRARY_DIR} COMPONENT ${LINK_COMPONENT_NAME} ++ ARCHIVE DESTINATION ${INSTALL_ARCHIVE_DIR} COMPONENT ${LINK_COMPONENT_NAME}-dev) ++ ENDIF(LINK_INSTALL_HEADERS) ++ ENDIF(LINK_INSTALL_LIB) ++ENDMACRO(OSSIM_LINK_LIBRARY) ++ ++MACRO(OSSIM_ADD_COMMON_MAKE_UNINSTALL) ++# get_target_property(TEST_UNINSTALL uninstall CREATED) ++# IF(NOT TEST_UNINSTALL) ++ #----------------------------------------------------------------------------- ++ ### uninstall target ++ #----------------------------------------------------------------------------- ++ SET(OSSIM_CMAKE_UNINSTALL_CONFIG "${PROJECT_SOURCE_DIR}/ossimPlanetQt/CMakeModules/cmake_uninstall.cmake.in") ++ IF(EXISTS ${OSSIM_CMAKE_UNINSTALL_CONFIG}) ++ CONFIGURE_FILE( ++ "${OSSIM_CMAKE_UNINSTALL_CONFIG}" ++ "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake" ++ IMMEDIATE @ONLY) ++ ADD_CUSTOM_TARGET(uninstall ++ "${CMAKE_COMMAND}" -P "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake" ++ ) ++ set_target_properties(uninstall PROPERTIES CREATED 1) ++ ENDIF(EXISTS ${OSSIM_CMAKE_UNINSTALL_CONFIG}) ++# ENDIF(NOT TEST_UNINSTALL) ++ENDMACRO(OSSIM_ADD_COMMON_MAKE_UNINSTALL) ++ +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/OssimVersion.cmake +@@ -0,0 +1,6 @@ ++SET(OSSIM_MAJOR_VERSION_NUMBER "1") ++SET(OSSIM_MINOR_VERSION_NUMBER "8") ++SET(OSSIM_PATCH_VERSION_NUMBER "20") ++SET(OSSIM_RELEASE_NUMBER "1") ++SET(OSSIM_VERSION "${OSSIM_MAJOR_VERSION_NUMBER}.${OSSIM_MINOR_VERSION_NUMBER}.${OSSIM_PATCH_VERSION_NUMBER}" ) ++SET(OSSIM_SOVERSION "${OSSIM_MAJOR_VERSION_NUMBER}" ) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/Qt5Macros.cmake +@@ -0,0 +1,83 @@ ++# This file is included by FindQt5.cmake, don't include it directly. ++ ++# Copyright (C) 2001-2009 Kitware, Inc. ++# Copyright (C) 2011 Collabora Ltd. <http://www.collabora.co.uk/> ++# Copyright (C) 2011 Nokia Corporation ++# ++# Redistribution and use is allowed according to the terms of the BSD license. ++# For details see the accompanying COPYING-CMAKE-SCRIPTS file. ++ ++macro (QT5_EXTRACT_OPTIONS _qt5_files _qt5_options) ++ set(${_qt5_files}) ++ set(${_qt5_options}) ++ set(_QT5_DOING_OPTIONS FALSE) ++ foreach(_currentArg ${ARGN}) ++ if ("${_currentArg}" STREQUAL "OPTIONS") ++ set(_QT5_DOING_OPTIONS TRUE) ++ else () ++ if(_QT5_DOING_OPTIONS) ++ list(APPEND ${_qt5_options} "${_currentArg}") ++ else() ++ list(APPEND ${_qt5_files} "${_currentArg}") ++ endif() ++ endif () ++ endforeach() ++endmacro () ++ ++ ++MACRO (QT5_GET_MOC_FLAGS _moc_flags) ++ SET(${_moc_flags}) ++ GET_DIRECTORY_PROPERTY(_inc_DIRS INCLUDE_DIRECTORIES) ++ ++ FOREACH(_current ${_inc_DIRS}) ++ IF("${_current}" MATCHES "\\.framework/?$") ++ STRING(REGEX REPLACE "/[^/]+\\.framework" "" framework_path "${_current}") ++ SET(${_moc_flags} ${${_moc_flags}} "-F${framework_path}") ++ ELSE("${_current}" MATCHES "\\.framework/?$") ++ SET(${_moc_flags} ${${_moc_flags}} "-I${_current}") ++ ENDIF("${_current}" MATCHES "\\.framework/?$") ++ ENDFOREACH(_current ${_inc_DIRS}) ++ ++ GET_DIRECTORY_PROPERTY(_defines COMPILE_DEFINITIONS) ++ FOREACH(_current ${_defines}) ++ SET(${_moc_flags} ${${_moc_flags}} "-D${_current}") ++ ENDFOREACH(_current ${_defines}) ++ ++ IF(Q_WS_WIN) ++ SET(${_moc_flags} ${${_moc_flags}} -DWIN32) ++ ENDIF(Q_WS_WIN) ++ ++ENDMACRO (QT5_GET_MOC_FLAGS) ++ ++# helper macro to set up a moc rule ++MACRO (QT5_CREATE_MOC_COMMAND infile outfile moc_flags moc_options) ++ # For Windows, create a parameters file to work around command line length limit ++ IF (WIN32) ++ # Pass the parameters in a file. Set the working directory to ++ # be that containing the parameters file and reference it by ++ # just the file name. This is necessary because the moc tool on ++ # MinGW builds does not seem to handle spaces in the path to the ++ # file given with the @ syntax. ++ GET_FILENAME_COMPONENT(_moc_outfile_name "${outfile}" NAME) ++ GET_FILENAME_COMPONENT(_moc_outfile_dir "${outfile}" PATH) ++ IF(_moc_outfile_dir) ++ SET(_moc_working_dir WORKING_DIRECTORY ${_moc_outfile_dir}) ++ ENDIF(_moc_outfile_dir) ++ SET (_moc_parameters_file ${outfile}_parameters) ++ SET (_moc_parameters ${moc_flags} ${moc_options} -o "${outfile}" "${infile}") ++ STRING (REPLACE ";" "\n" _moc_parameters "${_moc_parameters}") ++ FILE (WRITE ${_moc_parameters_file} "${_moc_parameters}") ++ ADD_CUSTOM_COMMAND(OUTPUT ${outfile} ++ COMMAND ${QT_MOC_EXECUTABLE} @${_moc_outfile_name}_parameters ++ DEPENDS ${infile} ++ ${_moc_working_dir} ++ VERBATIM) ++ ELSE (WIN32) ++ ADD_CUSTOM_COMMAND(OUTPUT ${outfile} ++ COMMAND ${QT_MOC_EXECUTABLE} ++ ARGS ${moc_flags} ${moc_options} -o ${outfile} ${infile} ++ DEPENDS ${infile}) ++ ENDIF (WIN32) ++ENDMACRO (QT5_CREATE_MOC_COMMAND) ++ ++ +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/cmake_uninstall.cmake.in +@@ -0,0 +1,22 @@ ++IF(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt") ++ MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_BINARY_DIR@/install_manifest.txt\"") ++ENDIF() ++ ++FILE(READ "@CMAKE_BINARY_DIR@/install_manifest.txt" files) ++STRING(REGEX REPLACE "\n" ";" files "${files}") ++ ++FOREACH(file ${files}) ++ MESSAGE(STATUS "Uninstalling \"${file}\"") ++ IF(EXISTS "${file}") ++ EXEC_PROGRAM( ++ "@CMAKE_COMMAND@" ARGS "-E remove \"${file}\"" ++ OUTPUT_VARIABLE rm_out ++ RETURN_VALUE rm_retval ++ ) ++ IF(NOT "${rm_retval}" STREQUAL 0) ++ MESSAGE(FATAL_ERROR "Problem when removing \"${file}\"") ++ ENDIF() ++ ELSE() ++ MESSAGE(STATUS "File \"${file}\" does not exist.") ++ ENDIF() ++ENDFOREACH() +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindFFTW3.cmake +@@ -0,0 +1,24 @@ ++# - Find fftw3 library ++# Find the native fftw3 includes and library ++# This module defines ++# FFTW3_INCLUDE_DIR, where to find tiff.h, etc. ++# FFTW3_LIBRARIES, libraries to link against to use FFTW3. ++# FFTW3_FOUND, If false, do not try to use FFTW3. ++# also defined, but not for general use are ++# FFTW3_LIBRARY, where to find the FFTW3 library. ++ ++FIND_PATH(FFTW3_INCLUDE_DIR fftw3.h) ++ ++SET(FFTW3_NAMES ${FFTW3_NAMES} fftw3 libfftw3) ++FIND_LIBRARY(FFTW3_LIBRARY NAMES ${FFTW3_NAMES} ) ++ ++# handle the QUIETLY and REQUIRED arguments and set FFTW3_FOUND to TRUE if ++# all listed variables are TRUE ++INCLUDE(FindPackageHandleStandardArgs) ++FIND_PACKAGE_HANDLE_STANDARD_ARGS(FFTW3 DEFAULT_MSG FFTW3_LIBRARY FFTW3_INCLUDE_DIR) ++ ++IF(FFTW3_FOUND) ++ SET( FFTW3_LIBRARIES ${FFTW3_LIBRARY} ) ++ENDIF(FFTW3_FOUND) ++ ++MARK_AS_ADVANCED(FFTW3_INCLUDE_DIR FFTW3_LIBRARY) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindLCMS2.cmake +@@ -0,0 +1,56 @@ ++### ++# -*- cmake -*- ++# ++# File: FindLCMS2.cmake ++# ++# Original script was copied from: ++# http://code.google.com/p/emeraldviewer/source/browse/indra/cmake ++# ++# $Id: FindLCMS2.cmake 23010 2014-12-01 21:47:43Z dburken $ ++### ++ ++# - Find LCMS2 ++# Find the LCMS2 includes and library ++# This module defines ++# LCMS2_INCLUDE_DIR, where to find lcms2.h, etc. ++# LCMS2_LIBRARIES, the libraries needed to use LCMS2. ++# LCMS2_FOUND, If false, do not try to use LCMS2. ++# also defined, but not for general use are ++# LCMS2_LIBRARY, where to find the LCMS2 library. ++ ++FIND_PATH(LCMS2_INCLUDE_DIR lcms2.h ++ PATHS ++ /usr/local/include/lcms2 ++ /usr/local/include ++ /usr/include/lcms2 ++ /usr/include ++ PATH_SUFFIXES ++ lcms2-2.6 ++ DOC "Location of LCMS2 Headers" ++) ++ ++SET(LCMS2_NAMES ${LCMS2_NAMES} lcms2) ++FIND_LIBRARY(LCMS2_LIBRARY ++ NAMES ${LCMS2_NAMES} ++ PATHS /usr/lib /usr/local/lib ++ ) ++ ++IF (LCMS2_LIBRARY AND LCMS2_INCLUDE_DIR) ++ SET(LCMS2_LIBRARIES ${LCMS2_LIBRARY}) ++ SET(LCMS2_FOUND "YES") ++ELSE (LCMS2_LIBRARY AND LCMS2_INCLUDE_DIR) ++ SET(LCMS2_FOUND "NO") ++ENDIF (LCMS2_LIBRARY AND LCMS2_INCLUDE_DIR) ++ ++ ++IF (LCMS2_FOUND) ++ IF (NOT LCMS2_FIND_QUIETLY) ++ MESSAGE(STATUS "Found LCMS2: ${LCMS2_LIBRARIES}") ++ ENDIF (NOT LCMS2_FIND_QUIETLY) ++ELSE (LCMS2_FOUND) ++ IF (LCMS2_FIND_REQUIRED) ++ MESSAGE(FATAL_ERROR "Could not find LCMS2 library") ++ ENDIF (LCMS2_FIND_REQUIRED) ++ENDIF (LCMS2_FOUND) ++ ++MARK_AS_ADVANCED(LCMS2_LIBRARY LCMS2_INCLUDE_DIR) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindOpenCV.cmake +@@ -0,0 +1,85 @@ ++#--- ++# File: FindOpenCV.cmake ++# ++# Locate OPENCV ++# ++# This module defines: ++# ++# OPENCV_INCLUDE_DIR ++# ++# OPENCV_FOUND, ++# OPENCV_CORE_FOUND ++# OPENCV_HIGHGUI_FOUND ++# OPENCV_IMGPROC_FOUND ++# OPENCV_LEGACY_FOUND ++# OPENCV_ML_FOUND ++# ++# OPENCV_CORE_LIBRARY ++# OPENCV_HIGHGUI_LIBRARY ++# OPENCV_IMGPROC_LIBRARY ++# OPENCV_LEGACY_LIBRARY ++# OPENCV_ML_LIBRARY ++# OPENCV_LIBRARIES ++# ++# Created by Garrett Potts. ++# ++# $Id: FindOpenCV.cmake 22635 2014-02-20 14:28:45Z dburken $ ++ ++# Find include path: ++find_path(OPENCV_INCLUDE_DIR opencv2/opencv.hpp PATHS /usr/include/opencv2 /usr/local/include) ++ ++macro(FIND_OPENCV_LIBRARY MYLIBRARY MYLIBRARYNAME) ++ ++ find_library( ${MYLIBRARY} ++ NAMES "${MYLIBRARYNAME}${OPENCV_RELEASE_POSTFIX}" ++ PATHS ++ /usr/lib64 ++ /usr/lib ++ /usr/local/lib ++ ) ++ ++endmacro(FIND_OPENCV_LIBRARY MYLIBRARY MYLIBRARYNAME) ++ ++FIND_OPENCV_LIBRARY(OPENCV_CALIB3D_LIBRARY opencv_calib3d) ++FIND_OPENCV_LIBRARY(OPENCV_CONTRIB_LIBRARY opencv_contrib) ++FIND_OPENCV_LIBRARY(OPENCV_CORE_LIBRARY opencv_core) ++FIND_OPENCV_LIBRARY(OPENCV_FEATURES2D_LIBRARY opencv_features2d) ++FIND_OPENCV_LIBRARY(OPENCV_FLANN_LIBRARY opencv_flann) ++FIND_OPENCV_LIBRARY(OPENCV_GPU_LIBRARY opencv_gpu) ++FIND_OPENCV_LIBRARY(OPENCV_HIGHGUI_LIBRARY opencv_highgui) ++FIND_OPENCV_LIBRARY(OPENCV_IMGPROC_LIBRARY opencv_imgproc) ++FIND_OPENCV_LIBRARY(OPENCV_LEGACY_LIBRARY opencv_legacy) ++FIND_OPENCV_LIBRARY(OPENCV_ML_LIBRARY opencv_ml) ++ ++message( STATUS "OPENCV_INCLUDE_DIR = ${OPENCV_INCLUDE_DIR}" ) ++message( STATUS "OPENCV_CALIB3D_LIBRARY = ${OPENCV_CALIB3D_LIBRARY}" ) ++message( STATUS "OPENCV_CONTRIB_LIBRARY = ${OPENCV_CONTRIB_LIBRARY}" ) ++message( STATUS "OPENCV_CORE_LIBRARY = ${OPENCV_CORE_LIBRARY}" ) ++message( STATUS "OPENCV_FEATURES2D_LIBRARY = ${OPENCV_FEATURES2D_LIBRARY}" ) ++message( STATUS "OPENCV_FLANN_LIBRARY = ${OPENCV_FLANN_LIBRARY}" ) ++message( STATUS "OPENCV_GPU_LIBRARY = ${OPENCV_GPU_LIBRARY}" ) ++message( STATUS "OPENCV_HIGHGUI_LIBRARY = ${OPENCV_HIGHGUI_LIBRARY}" ) ++message( STATUS "OPENCV_IMGPROC_LIBRARY = ${OPENCV_IMGPROC_LIBRARY}" ) ++message( STATUS "OPENCV_LEGACY_LIBRARY = ${OPENCV_LEGACY_LIBRARY}" ) ++message( STATUS "OPENCV_ML_LIBRARY = ${OPENCV_ML_LIBRARY}" ) ++ ++ ++# Removed OPENCV_GPU_LIBRARY AND (drb 20140220) ++ ++set(OPENCV_FOUND "NO") ++ ++if(OPENCV_INCLUDE_DIR AND OPENCV_CALIB3D_LIBRARY AND OPENCV_CONTRIB_LIBRARY AND OPENCV_CORE_LIBRARY AND OPENCV_FEATURES2D_LIBRARY AND OPENCV_FLANN_LIBRARY AND OPENCV_HIGHGUI_LIBRARY AND OPENCV_IMGPROC_LIBRARY AND OPENCV_LEGACY_LIBRARY AND OPENCV_ML_LIBRARY) ++ ++ set(OPENCV_FOUND "YES") ++ ++ # Removed ${OPENCV_GPU_LIBRARY} (drb 20140220) ++ ++ set(OPENCV_LIBRARIES ${OPENCV_CALIB3D_LIBRARY} ${OPENCV_CONTRIB_LIBRARY} ${OPENCV_CORE_LIBRARY} ${OPENCV_FEATURES2D_LIBRARY} ${OPENCV_FLANN_LIBRARY} ${OPENCV_HIGHGUI_LIBRARY} ${OPENCV_IMGPROC_LIBRARY} ${OPENCV_LEGACY_LIBRARY} ${OPENCV_ML_LIBRARY}) ++ ++ message( STATUS "OPENCV_LIBRARIES = ${OPENCV_LIBRARIES}" ) ++ ++else(OPENCV_INCLUDE_DIR AND OPENCV_CORE_LIBRARY AND OPENCV_HIGHGUI_LIBRARY AND OPENCV_IMGPROC_LIBRARY AND OPENCV_LEGACY_LIBRARY AND OPENCV_ML_LIBRARY) ++ ++ message( WARNING "Could not find OPENCV" ) ++ ++endif(OPENCV_INCLUDE_DIR AND OPENCV_CALIB3D_LIBRARY AND OPENCV_CONTRIB_LIBRARY AND OPENCV_CORE_LIBRARY AND OPENCV_FEATURES2D_LIBRARY AND OPENCV_FLANN_LIBRARY AND OPENCV_HIGHGUI_LIBRARY AND OPENCV_IMGPROC_LIBRARY AND OPENCV_LEGACY_LIBRARY AND OPENCV_ML_LIBRARY) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindOpenJPEG.cmake +@@ -0,0 +1,56 @@ ++### ++# -*- cmake -*- ++# ++# File: FindOpenJPEG.cmake ++# ++# Original script was copied from: ++# http://code.google.com/p/emeraldviewer/source/browse/indra/cmake ++# ++# $Id: FindOpenJPEG.cmake 23010 2014-12-01 21:47:43Z dburken $ ++### ++ ++# - Find OpenJPEG ++# Find the OpenJPEG includes and library ++# This module defines ++# OPENJPEG_INCLUDE_DIR, where to find openjpeg.h, etc. ++# OPENJPEG_LIBRARIES, the libraries needed to use OpenJPEG. ++# OPENJPEG_FOUND, If false, do not try to use OpenJPEG. ++# also defined, but not for general use are ++# OPENJPEG_LIBRARY, where to find the OpenJPEG library. ++ ++FIND_PATH(OPENJPEG_INCLUDE_DIR openjpeg.h ++ PATHS ++ /usr/local/include/openjpeg ++ /usr/local/include ++ /usr/include/openjpeg ++ /usr/include ++ PATH_SUFFIXES ++ openjpeg-2.1 ++ DOC "Location of OpenJPEG Headers" ++) ++ ++SET(OPENJPEG_NAMES ${OPENJPEG_NAMES} openjp2) ++FIND_LIBRARY(OPENJPEG_LIBRARY ++ NAMES ${OPENJPEG_NAMES} ++ PATHS /usr/lib /usr/local/lib ++ ) ++ ++IF (OPENJPEG_LIBRARY AND OPENJPEG_INCLUDE_DIR) ++ SET(OPENJPEG_LIBRARIES ${OPENJPEG_LIBRARY}) ++ SET(OPENJPEG_FOUND "YES") ++ELSE (OPENJPEG_LIBRARY AND OPENJPEG_INCLUDE_DIR) ++ SET(OPENJPEG_FOUND "NO") ++ENDIF (OPENJPEG_LIBRARY AND OPENJPEG_INCLUDE_DIR) ++ ++ ++IF (OPENJPEG_FOUND) ++ IF (NOT OPENJPEG_FIND_QUIETLY) ++ MESSAGE(STATUS "Found OpenJPEG: ${OPENJPEG_LIBRARIES}") ++ ENDIF (NOT OPENJPEG_FIND_QUIETLY) ++ELSE (OPENJPEG_FOUND) ++ IF (OPENJPEG_FIND_REQUIRED) ++ MESSAGE(FATAL_ERROR "Could not find OpenJPEG library") ++ ENDIF (OPENJPEG_FIND_REQUIRED) ++ENDIF (OPENJPEG_FOUND) ++ ++MARK_AS_ADVANCED(OPENJPEG_LIBRARY OPENJPEG_INCLUDE_DIR) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindPDAL.cmake +@@ -0,0 +1,66 @@ ++#--- ++# File: FindPDAL.cmake ++# ++# Find the native Point Data Abstraction Library(PDAL) includes and libraries. ++# ++# This module defines: ++# ++# PDAL_INCLUDE_DIR, where to find pdal.h, etc. ++# PDAL_LIBRARIES, libraries to link against to use PDAL and rialto. ++# PDAL_FOUND, True if found, false if one of the above are not found. ++# ++# NOTE: ++# This script is specialized for ossim, e.g. looking in /usr/local/ossim. ++# ++# $Id$ ++#--- ++#--- ++# Find include path: "pdal_defines.h" installs to install "prefix" with pdal ++# includes under "pdal" sub directory. ++#--- ++find_path( PDAL_INCLUDE_DIR pdal/pdal.hpp ++ PATHS ++ ${OSSIM_DEPENDENCIES}/include ++ /usr/include ++ /usr/local/include ++ /usr/local/ossim/include ) ++ ++macro(FIND_PDAL_LIBRARY MYLIBRARY MYLIBRARYNAME) ++ ++ find_library( ${MYLIBRARY} ++ NAMES "${MYLIBRARYNAME}" ++ PATHS ++ ${OSSIM_DEPENDENCIES}/lib ++ /usr/lib64 ++ /usr/lib ++ /usr/local/lib ++ ) ++ ++endmacro(FIND_PDAL_LIBRARY MYLIBRARY MYLIBRARYNAME) ++ ++FIND_PDAL_LIBRARY(PDAL_CPP_LIBRARY pdalcpp) ++FIND_PDAL_LIBRARY(PDAL_UTIL_LIBRARY pdal_util) ++FIND_PDAL_LIBRARY(RIALTO_LIBRARY rialto) ++FIND_PDAL_LIBRARY(LASZIP_LIBRARY laszip) ++ ++message( STATUS "PDAL_INCLUDE_DIR = ${PDAL_INCLUDE_DIR}" ) ++message( STATUS "PDAL_CPP_LIBRARY = ${PDAL_CPP_LIBRARY}" ) ++message( STATUS "PDAL_UTIL_LIBRARY = ${PDAL_UTIL_LIBRARY}" ) ++message( STATUS "RIALTO_LIBRARY = ${RIALTO_LIBRARY}" ) ++message( STATUS "LASZIP_LIBRARY = ${LASZIP_LIBRARY}" ) ++ ++set(PDAL_FOUND "NO") ++ ++if (PDAL_INCLUDE_DIR AND PDAL_CPP_LIBRARY AND PDAL_UTIL_LIBRARY AND RIALTO_LIBRARY AND LASZIP_LIBRARY) ++ ++ set(PDAL_FOUND "YES") ++ set(PDAL_LIBRARIES ${PDAL_CPP_LIBRARY} ${PDAL_UTIL_LIBRARY} ${RIALTO_LIBRARY} ${LASZIP_LIBRARY}) ++ message( STATUS "PDAL_LIBRARIES = ${PDAL_LIBRARIES}" ) ++ ++else(PDAL_INCLUDE_DIR AND PDAL_CPP_LIBRARY AND PDAL_UTIL_LIBRARY AND RIALTO_LIBRARY AND LASZIP_LIBRARY) ++ ++ message( WARNING "Could not find PDAL" ) ++ ++endif(PDAL_INCLUDE_DIR AND PDAL_CPP_LIBRARY AND PDAL_UTIL_LIBRARY AND RIALTO_LIBRARY AND LASZIP_LIBRARY) ++ ++ +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindPodofo.cmake +@@ -0,0 +1,25 @@ ++#--- ++# File: FindPodofo.cmake ++# ++# Find the native podofo includes and library ++# ++# This module defines: ++# PODOFO_INCLUDE_DIR, where to find tiff.h, etc. ++# PODOFO_LIBRARY, library to link against to use PODOFO. ++# PODOFO_FOUND, If false, do not try to use PODOFO. ++# ++# $Id: FindPodofo.cmake 19868 2011-07-23 13:23:49Z dburken $ ++#--- ++ ++# Find include path: ++find_path(PODOFO_INCLUDE_DIR podofo/podofo.h PATHS /usr/include /usr/local/include ++) ++ ++# Find library: ++find_library(PODOFO_LIBRARY NAMES podofo PATHS /usr/lib64 /usr/lib /usr/local/lib) ++ ++#--- ++# This function sets PODOFO_FOUND if variables are valid. ++#--- ++include(FindPackageHandleStandardArgs) ++FIND_PACKAGE_HANDLE_STANDARD_ARGS(PODOFO DEFAULT_MSG PODOFO_LIBRARY PODOFO_INCLUDE_DIR) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindSQLITE.cmake +@@ -0,0 +1,61 @@ ++#--- ++# File: FindSQLITE.cmake ++# ++# Find the native SQLite includes and libraries. ++# ++# This module defines: ++# ++# SQLITE_INCLUDE_DIR, where to find sqlite3.h, etc. ++# SQLITE_LIBRARY, libraries to link against to use SQLITE. ++# SQLITE_FOUND, True if found, false if one of the above are not found. ++# ++# For ossim, typically SQLite will be system installed which should be found; ++# or found in the ossim 3rd party dependencies directory from a SQLite build ++# and install. If the latter it will rely on CMAKE_INCLUDE_PATH and ++# CMAKE_LIBRARY_PATH having the path to the party dependencies directory. ++# ++# $Id$ ++#--- ++ ++#--- ++# Find include path: ++#--- ++find_path( SQLITE_INCLUDE_DIR sqlite3.h ++ PATHS ++ /usr/include ++ /usr/local/include ) ++ ++# Find SQLITE library: ++find_library( SQLITE_LIB NAMES sqlite3 ++ PATHS ++ /usr/lib64 ++ /usr/lib ++ /usr/local/lib ) ++ ++# Set the SQLITE_LIBRARY: ++if( SQLITE_LIB ) ++ set( SQLITE_LIBRARY ${SQLITE_LIB} CACHE STRING INTERNAL ) ++endif(SQLITE_LIB ) ++ ++#--- ++# This function sets SQLITE_FOUND if variables are valid. ++#--- ++include(FindPackageHandleStandardArgs) ++find_package_handle_standard_args( SQLITE DEFAULT_MSG ++ SQLITE_LIBRARY ++ SQLITE_INCLUDE_DIR ) ++ ++if( SQLITE_FOUND ) ++ if( NOT SQLITE_FIND_QUIETLY ) ++ message( STATUS "Found SQLITE..." ) ++ endif( NOT SQLITE_FIND_QUIETLY ) ++else( SQLITE_FOUND ) ++ if( NOT SQLITE_FIND_QUIETLY ) ++ message( WARNING "Could not find SQLITE" ) ++ endif( NOT SQLITE_FIND_QUIETLY ) ++endif( SQLITE_FOUND ) ++ ++if( NOT SQLITE_FIND_QUIETLY ) ++ message( STATUS "SQLITE_INCLUDE_DIR=${SQLITE_INCLUDE_DIR}" ) ++ message( STATUS "SQLITE_LIBRARY=${SQLITE_LIBRARY}" ) ++endif( NOT SQLITE_FIND_QUIETLY ) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindHDF5A.cmake +@@ -0,0 +1,74 @@ ++#--- ++# File: FindHDF5A.cmake ++# ++# Find the native HDF5A includes and libraries. ++# ++# This module defines: ++# ++# HDF5A_INCLUDE_DIR, where to find geos.h, etc. ++# HDF5A_LIBRARIES, libraries to link against to use HDF5A. ++# HDF5A_FOUND, True if found, false if one of the above are not found. ++# ++# NOTE: ++# ++# This script is specialized for ossim. HDF5A rpm created to fix conflict with ++# system installed hdf5 packages that do NOT have compression(szip) support. ++# ++# $Id$ ++#--- ++ ++# Find include path: ++find_path( HDF5A_INCLUDE_DIR hdf5.h ++ PATHS ++ ${CMAKE_INSTALL_PREFIX}/include ++ /usr/include ++ /usr/local/include ++ /usr/local/ossim/include ) ++ ++# Find HDF5A library: ++find_library( HDF5A_LIB NAMES hdf5a hdf5 ++ PATHS ++ ${CMAKE_INSTALL_PREFIX}/lib64 ++ /usr/lib64 ++ ${CMAKE_INSTALL_PREFIX}/lib ++ /usr/lib ++ /usr/local/lib ++ /usr/local/ossim/lib ) ++ ++# Find HDF5A CPP library: ++find_library( HDF5A_CPP_LIB NAMES hdf5a_cpp hdf5_cpp ++ PATHS ++ ${CMAKE_INSTALL_PREFIX}/lib64 ++ /usr/lib64 ++ ${CMAKE_INSTALL_PREFIX}/lib ++ /usr/lib ++ /usr/local/lib ++ /usr/local/ossim/lib ) ++ ++# Set the HDF5A_LIBRARIES: ++if( HDF5A_LIB AND HDF5A_CPP_LIB ) ++ set( HDF5A_LIBRARIES ${HDF5A_LIB} ${HDF5A_CPP_LIB} CACHE STRING INTERNAL ) ++endif(HDF5A_LIB AND HDF5A_CPP_LIB ) ++ ++#--- ++# This function sets HDF5A_FOUND if variables are valid. ++#--- ++include(FindPackageHandleStandardArgs) ++find_package_handle_standard_args( HDF5A DEFAULT_MSG ++ HDF5A_LIBRARIES ++ HDF5A_INCLUDE_DIR ) ++ ++if( HDF5A_FOUND ) ++ if( NOT HDF5A_FIND_QUIETLY ) ++ message( STATUS "Found HDF5A..." ) ++ endif( NOT HDF5A_FIND_QUIETLY ) ++else( HDF5A_FOUND ) ++ if( NOT HDF5A_FIND_QUIETLY ) ++ message( WARNING "Could not find HDF5A" ) ++ endif( NOT HDF5A_FIND_QUIETLY ) ++endif( HDF5A_FOUND ) ++ ++if( NOT HDF5A_FIND_QUIETLY ) ++ message( STATUS "HDF5A_INCLUDE_DIR=${HDF5A_INCLUDE_DIR}" ) ++ message( STATUS "HDF5A_LIBRARIES=${HDF5A_LIBRARIES}" ) ++endif( NOT HDF5A_FIND_QUIETLY ) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindOSG.cmake +@@ -0,0 +1,124 @@ ++# Locate gdal ++# This module defines ++# OSG_LIBRARY ++# OSG_FOUND, if false, do not try to link to gdal ++# OSG_INCLUDE_DIR, where to find the headers ++# ++# $OSG_DIR is an environment variable that would ++# correspond to the ./configure --prefix=$OSG_DIR ++# ++# Created by Robert Osfield. ++ ++FIND_PATH(OSG_INCLUDE_DIR osg/Node ++ ${OSG_DIR}/include ++ $ENV{OSG_DIR}/include ++ $ENV{OSG_DIR} ++ $ENV{OSGDIR}/include ++ $ENV{OSGDIR} ++ $ENV{OSG_ROOT}/include ++ NO_DEFAULT_PATH ++) ++ ++FIND_PATH(OSG_INCLUDE_DIR osg/Node) ++ ++MACRO(FIND_OSG_LIBRARY MYLIBRARY MYLIBRARYNAME) ++ ++ FIND_LIBRARY("${MYLIBRARY}_DEBUG" ++ NAMES "${MYLIBRARYNAME}${CMAKE_DEBUG_POSTFIX}" ++ PATHS ++ ${OSG_DIR}/lib/Debug ++ ${OSG_DIR}/lib64/Debug ++ ${OSG_DIR}/lib ++ ${OSG_DIR}/lib64 ++ $ENV{OSG_DIR}/lib/debug ++ $ENV{OSG_DIR}/lib64/debug ++ $ENV{OSG_DIR}/lib ++ $ENV{OSG_DIR}/lib64 ++ $ENV{OSG_DIR} ++ $ENV{OSGDIR}/lib ++ $ENV{OSGDIR}/lib64 ++ $ENV{OSGDIR} ++ $ENV{OSG_ROOT}/lib ++ $ENV{OSG_ROOT}/lib64 ++ NO_DEFAULT_PATH ++ ) ++ ++ FIND_LIBRARY("${MYLIBRARY}_DEBUG" ++ NAMES "${MYLIBRARYNAME}${CMAKE_DEBUG_POSTFIX}" ++ PATHS ++ ~/Library/Frameworks ++ /Library/Frameworks ++ /usr/local/lib ++ /usr/local/lib64 ++ /usr/lib ++ /usr/lib64 ++ /sw/lib ++ /opt/local/lib ++ /opt/csw/lib ++ /opt/lib ++ [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib ++ /usr/freeware/lib64 ++ ) ++ ++ FIND_LIBRARY(${MYLIBRARY} ++ NAMES "${MYLIBRARYNAME}${CMAKE_RELEASE_POSTFIX}" ++ PATHS ++ ${OSG_DIR}/lib/Release ++ ${OSG_DIR}/lib64/Release ++ ${OSG_DIR}/lib ++ ${OSG_DIR}/lib64 ++ $ENV{OSG_DIR}/lib/Release ++ $ENV{OSG_DIR}/lib64/Release ++ $ENV{OSG_DIR}/lib ++ $ENV{OSG_DIR}/lib64 ++ $ENV{OSG_DIR} ++ $ENV{OSGDIR}/lib ++ $ENV{OSGDIR}/lib64 ++ $ENV{OSGDIR} ++ $ENV{OSG_ROOT}/lib ++ $ENV{OSG_ROOT}/lib64 ++ NO_DEFAULT_PATH ++ ) ++ ++ FIND_LIBRARY(${MYLIBRARY} ++ NAMES "${MYLIBRARYNAME}${CMAKE_RELEASE_POSTFIX}" ++ PATHS ++ ~/Library/Frameworks ++ /Library/Frameworks ++ /usr/local/lib ++ /usr/local/lib64 ++ /usr/lib ++ /usr/lib64 ++ /sw/lib ++ /opt/local/lib ++ /opt/csw/lib ++ /opt/lib ++ [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib ++ /usr/freeware/lib64 ++ ) ++ ++ IF( NOT ${MYLIBRARY}_DEBUG) ++ IF(MYLIBRARY) ++ SET(${MYLIBRARY}_DEBUG ${MYLIBRARY}) ++ ENDIF(MYLIBRARY) ++ ENDIF( NOT ${MYLIBRARY}_DEBUG) ++ ++ENDMACRO(FIND_OSG_LIBRARY LIBRARY LIBRARYNAME) ++ ++FIND_OSG_LIBRARY(OSG_LIBRARY osg) ++FIND_OSG_LIBRARY(OSGGA_LIBRARY osgGA) ++FIND_OSG_LIBRARY(OSGUTIL_LIBRARY osgUtil) ++FIND_OSG_LIBRARY(OSGDB_LIBRARY osgDB) ++FIND_OSG_LIBRARY(OSGTEXT_LIBRARY osgText) ++FIND_OSG_LIBRARY(OSGWIDGET_LIBRARY osgWidget) ++FIND_OSG_LIBRARY(OSGTERRAIN_LIBRARY osgTerrain) ++FIND_OSG_LIBRARY(OSGFX_LIBRARY osgFX) ++FIND_OSG_LIBRARY(OSGVIEWER_LIBRARY osgViewer) ++FIND_OSG_LIBRARY(OSGSHADOW_LIBRARY osgShadow) ++FIND_OSG_LIBRARY(OSGVOLUME_LIBRARY osgVolume) ++FIND_OSG_LIBRARY(OPENTHREADS_LIBRARY OpenThreads) ++ ++SET(OSG_FOUND "NO") ++IF(OSG_LIBRARY AND OSG_INCLUDE_DIR) ++ SET(OSG_FOUND "YES") ++ENDIF(OSG_LIBRARY AND OSG_INCLUDE_DIR) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindossimPlanet.cmake +@@ -0,0 +1,44 @@ ++# - Find ossimPlanet library ++# Find the native ossimPlanet includes and library ++# This module defines ++# OSSIMPLANET_INCLUDE_DIR, where to find tiff.h, etc. ++# OSSIMPLANET_LIBRARIES, libraries to link against to use OSSIM. ++# OSSIMPLANET_FOUND, If false, do not try to use OSSIM. ++# also defined, but not for general use are ++# OSSIMPLANET_LIBRARY, where to find the OSSIM library. ++SET(CMAKE_FIND_FRAMEWORK "LAST") ++FIND_PATH(OSSIMPLANET_INCLUDE_DIR ossimPlanet/ossimPlanetExport.h ossimPlanetExport.h ++ HINTS ++ $ENV{OSSIM_DEV_HOME}/ossimPlanet/include ++ $ENV{OSSIM_DEV_HOME}/ossimPlanet/lib ++ $ENV{OSSIM_INSTALL_PREFIX}/include ++ PATHS ++ $ENV{OSSIM_DEV_HOME}/ossimPlanet ++ $ENV{OSSIM_INSTALL_PREFIX} ++ PATH_SUFFIXES ++ lib ++ include ++) ++ ++SET(OSSIMPLANET_NAMES ${OSSIMPLANET_NAMES} ossimPlanet ) ++FIND_LIBRARY(OSSIMPLANET_LIBRARY NAMES ${OSSIMPLANET_NAMES} ++ HINTS ++ $ENV{OSSIM_DEV_HOME}/ossimPlanet/lib ++ PATHS ++ $ENV{OSSIM_DEV_HOME}/ossimPlanet/lib ++ $ENV{OSSIM_INSTALL_PREFIX} ++ PATH_SUFFIXES ++ lib ++ Frameworks ++) ++ ++# handle the QUIETLY and REQUIRED arguments and set OSSIMPLANET_FOUND to TRUE if ++# all listed variables are TRUE ++INCLUDE(FindPackageHandleStandardArgs) ++FIND_PACKAGE_HANDLE_STANDARD_ARGS(OSSIMPLANET DEFAULT_MSG OSSIMPLANET_LIBRARY OSSIMPLANET_INCLUDE_DIR) ++ ++IF(OSSIMPLANET_FOUND) ++ SET( OSSIMPLANET_LIBRARIES ${OSSIMPLANET_LIBRARY} ) ++ENDIF(OSSIMPLANET_FOUND) ++ ++MARK_AS_ADVANCED(OSSIMPLANET_INCLUDE_DIR OSSIMPLANET_LIBRARY) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindWMS.cmake +@@ -0,0 +1,48 @@ ++# - Find wms library ++# Find the native wms includes and library ++# This module defines ++# WMS_INCLUDE_DIR, where to find tiff.h, etc. ++# WMS_LIBRARIES, libraries to link against to use WMS. ++# WMS_FOUND, If false, do not try to use WMS. ++# also defined, but not for general use are ++# WMS_LIBRARY, where to find the WMS library. ++SET(CMAKE_FIND_FRAMEWORK "LAST") ++FIND_PATH(WMS_INCLUDE_DIR wms/wms.h ++ HINTS ++ $ENV{OSSIM_DEV_HOME}/libwms/include ++ $ENV{OSSIM_DEV_HOME}/libwms/lib ++ $ENV{OSSIM_INSTALL_PREFIX}/include ++ PATHS ++ $ENV{OSSIM_DEV_HOME}/libwms ++ $ENV{OSSIM_INSTALL_PREFIX} ++ PATH_SUFFIXES ++ lib ++ include ++ ++) ++ ++SET(WMS_NAMES ${WMS_NAMES} wms libwms) ++FIND_LIBRARY(WMS_LIBRARY NAMES ${WMS_NAMES} ++ HINTS ++ $ENV{OSSIM_DEV_HOME}/liwms/lib ++ $ENV{OSSIM_DEV_HOME}/libwms ++ $ENV{OSSIM_INSTALL_PREFIX} ++ PATHS ++ $ENV{OSSIM_DEV_HOME}/libwms/lib ++ $ENV{OSSIM_DEV_HOME}/libwms ++ $ENV{OSSIM_INSTALL_PREFIX} ++ PATH_SUFFIXES ++ lib ++ Frameworks ++) ++ ++# handle the QUIETLY and REQUIRED arguments and set WMS_FOUND to TRUE if ++# all listed variables are TRUE ++INCLUDE(FindPackageHandleStandardArgs) ++FIND_PACKAGE_HANDLE_STANDARD_ARGS(WMS DEFAULT_MSG WMS_LIBRARY WMS_INCLUDE_DIR) ++ ++IF(WMS_FOUND) ++ SET( WMS_LIBRARIES ${WMS_LIBRARY} ) ++ENDIF(WMS_FOUND) ++ ++MARK_AS_ADVANCED(WMS_INCLUDE_DIR WMS_LIBRARY) +--- /dev/null ++++ b/ossimPlanetQt/CMakeModules/FindFFmpeg.cmake +@@ -0,0 +1,190 @@ ++# Locate ffmpeg ++# This module defines ++# FFMPEG_LIBRARIES ++# FFMPEG_FOUND, if false, do not try to link to ffmpeg ++# FFMPEG_INCLUDE_DIR, where to find the headers ++# ++# $FFMPEG_DIR is an environment variable that would ++# correspond to the ./configure --prefix=$FFMPEG_DIR ++# ++# Created by Robert Osfield. ++ ++ ++#In ffmpeg code, old version use "#include <header.h>" and newer use "#include <libname/header.h>" ++#In OSG ffmpeg plugin, we use "#include <header.h>" for compatibility with old version of ffmpeg ++ ++#We have to search the path which contain the header.h (usefull for old version) ++#and search the path which contain the libname/header.h (usefull for new version) ++ ++#Then we need to include ${FFMPEG_libname_INCLUDE_DIRS} (in old version case, use by ffmpeg header and osg plugin code) ++# (in new version case, use by ffmpeg header) ++#and ${FFMPEG_libname_INCLUDE_DIRS/libname} (in new version case, use by osg plugin code) ++ ++ ++# Macro to find header and lib directories ++# example: FFMPEG_FIND(AVFORMAT avformat avformat.h) ++MACRO(FFMPEG_FIND varname shortname headername) ++ # old version of ffmpeg put header in $prefix/include/[ffmpeg] ++ # so try to find header in include directory ++ ++ FIND_PATH(FFMPEG_${varname}_INCLUDE_DIRS lib${shortname}/${headername} ++ PATHS ++ ${FFMPEG_ROOT}/include ++ $ENV{FFMPEG_DIR}/include ++ ~/Library/Frameworks ++ /Library/Frameworks ++ /usr/local/include ++ /usr/include ++ /sw/include # Fink ++ /opt/local/include # DarwinPorts ++ /opt/csw/include # Blastwave ++ /opt/include ++ /usr/freeware/include ++ PATH_SUFFIXES ffmpeg ++ DOC "Location of FFMPEG Headers" ++ ) ++ ++ if( FFMPEG_${varname}_INCLUDE_DIRS-NOTFOUND ) ++ FIND_PATH(FFMPEG_${varname}_INCLUDE_DIRS ${headername} ++ PATHS ++ ${FFMPEG_ROOT}/include ++ $ENV{FFMPEG_DIR}/include ++ ~/Library/Frameworks ++ /Library/Frameworks ++ /usr/local/include ++ /usr/include ++ /sw/include # Fink ++ /opt/local/include # DarwinPorts ++ /opt/csw/include # Blastwave ++ /opt/include ++ /usr/freeware/include ++ PATH_SUFFIXES ffmpeg ++ DOC "Location of FFMPEG Headers" ++ ) ++ endif ( FFMPEG_${varname}_INCLUDE_DIRS-NOTFOUND ) ++ ++ FIND_LIBRARY(FFMPEG_${varname}_LIBRARIES ++ NAMES ${shortname} ++ PATHS ++ ${FFMPEG_ROOT}/lib ++ $ENV{FFMPEG_DIR}/lib ++ ~/Library/Frameworks ++ /Library/Frameworks ++ /usr/local/lib ++ /usr/local/lib64 ++ /usr/lib ++ /usr/lib64 ++ /sw/lib ++ /opt/local/lib ++ /opt/csw/lib ++ /opt/lib ++ /usr/freeware/lib64 ++ DOC "Location of FFMPEG Libraries" ++ ) ++ ++ IF (FFMPEG_${varname}_LIBRARIES AND FFMPEG_${varname}_INCLUDE_DIRS) ++ SET(FFMPEG_${varname}_FOUND 1) ++ ENDIF(FFMPEG_${varname}_LIBRARIES AND FFMPEG_${varname}_INCLUDE_DIRS) ++ ++ENDMACRO(FFMPEG_FIND) ++ ++SET(FFMPEG_ROOT "$ENV{FFMPEG_DIR}" CACHE PATH "Location of FFMPEG") ++ ++# find stdint.h ++IF(WIN32) ++ ++ FIND_PATH(FFMPEG_STDINT_INCLUDE_DIR stdint.h ++ PATHS ++ ${FFMPEG_ROOT}/include ++ $ENV{FFMPEG_DIR}/include ++ ~/Library/Frameworks ++ /Library/Frameworks ++ /usr/local/include ++ /usr/include ++ /sw/include # Fink ++ /opt/local/include # DarwinPorts ++ /opt/csw/include # Blastwave ++ /opt/include ++ /usr/freeware/include ++ PATH_SUFFIXES ffmpeg ++ DOC "Location of FFMPEG stdint.h Header" ++ ) ++ ++ IF (FFMPEG_STDINT_INCLUDE_DIR) ++ SET(STDINT_OK TRUE) ++ ENDIF() ++ ++ELSE() ++ ++ SET(STDINT_OK TRUE) ++ ++ENDIF() ++ ++FFMPEG_FIND(LIBAVFORMAT avformat avformat.h) ++FFMPEG_FIND(LIBAVDEVICE avdevice avdevice.h) ++FFMPEG_FIND(LIBAVCODEC avcodec avcodec.h) ++FFMPEG_FIND(LIBAVUTIL avutil avutil.h) ++# FFMPEG_FIND(LIBAVCORE avcore avcore.h) ++FFMPEG_FIND(LIBSWSCALE swscale swscale.h) ++FFMPEG_FIND(LIBSWRESAMPLE swresample swresample.h) ++FFMPEG_FIND(LIBAVFILTER avfilter avfilter.h) ++ ++SET(FFMPEG_FOUND "NO") ++# Note we don't check FFMPEG_LIBSWSCALE_FOUND here, it's optional. ++IF (FFMPEG_LIBAVFORMAT_FOUND AND FFMPEG_LIBAVDEVICE_FOUND AND FFMPEG_LIBAVCODEC_FOUND AND FFMPEG_LIBAVUTIL_FOUND AND STDINT_OK) ++ ++ SET(FFMPEG_FOUND "YES") ++ ++ SET( FFMPEG_INCLUDE_DIRS ++ ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS} ++ ${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS} ++ ${FFMPEG_LIBAVCODEC_INCLUDE_DIRS} ++ ${FFMPEG_LIBAVUTIL_INCLUDE_DIRS} ++ ${FFMPEG_LIBSWSCALE_INCLUDE_DIRS} ++ ${FFMPEG_LIBAVFILTER_INCLUDE_DIRS} ++ ${FFMPEG_LIBSWRESAMPLE_INCLUDE_DIRS} ) ++ ++ SET(FFMPEG_LIBRARY_DIRS ${FFMPEG_LIBAVFORMAT_LIBRARY_DIRS}) ++ ++ # Note we don't add FFMPEG_LIBSWSCALE_LIBRARIES here, it will be added if found later. ++ SET(FFMPEG_LIBRARIES ++ ${FFMPEG_LIBAVCODEC_LIBRARIES} ++ ${FFMPEG_LIBAVFORMAT_LIBRARIES} ++ ${FFMPEG_LIBAVDEVICE_LIBRARIES} ++ ${FFMPEG_LIBAVUTIL_LIBRARIES} ++ ${FFMPEG_LIBSWSCALE_LIBRARIES}) ++ ++ IF(FFMPEG_LIBAVFILTER_LIBRARIES) ++ SET(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} ${FFMPEG_LIBAVFILTER_LIBRARIES}) ++ ENDIF() ++ IF(FFMPEG_LIBSWRESAMPLE_LIBRARIES) ++ SET(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} ${FFMPEG_LIBSWRESAMPLE_LIBRARIES}) ++ ENDIF() ++ ++ IF (FFMPEG_LIBAVCORE_FOUND) ++ SET(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} ${FFMPEG_LIBAVCORE_LIBRARIES} ) ++ SET(FFMPEG_INCLUDE_DIRS ${FFMPEG_INCLUDE_DIRS} ++ ${FFMPEG_LIBAVCORE_INCLUDE_DIRS} ${FFMPEG_LIBAVCORE_INCLUDE_DIRS}/libavformat ++ ) ++ ENDIF() ++ ++#--- ++# This function sets FFMPEG_FOUND if variables are valid. ++#--- ++include(FindPackageHandleStandardArgs) ++find_package_handle_standard_args( FFMPEG DEFAULT_MSG ++ FFMPEG_LIBRARIES ++ FFMPEG_INCLUDE_DIRS ) ++ ++ ++# use aPPEND instead of set. Seems to work better ++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__STDC_CONSTANT_MACROS") ++ ++ELSE () ++ MESSAGE(STATUS "Could not find FFMPEG") ++ENDIF() ++ ++if( NOT FFMPEG_FIND_QUIETLY ) ++ message( STATUS "FFMPEG_INCLUDE_DIRS = ${FFMPEG_INCLUDE_DIRS}" ) ++ message( STATUS "FFMPEG_LIBRARIES = ${FFMPEG_LIBRARIES}" ) ++endif( NOT FFMPEG_FIND_QUIETLY ) diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..09ee5a3 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +cmake.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..3abfca2 --- /dev/null +++ b/debian/rules @@ -0,0 +1,24 @@ +#!/usr/bin/make -f + +# Enable hardening build flags +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ --buildsystem cmake \ + --sourcedirectory=$(CURDIR)/ossimPlanetQt \ + --builddirectory=$(CURDIR)/debian/build \ + --parallel + +CMAKE_OPTS = \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_MODULE_PATH=$(CURDIR)/ossimPlanetQt/CMakeModules \ + -DBUILD_SHARED_LIBS=ON \ + -DOSSIMPLANET_ENABLE_EPHEMERIS=OFF + +override_dh_auto_configure: + dh_auto_configure -- $(CMAKE_OPTS) + +override_dh_install: + dh_install --list-missing + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..4993037 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,6 @@ +--- +Bug-Database: https://trac.osgeo.org/ossim/query?component=ossimPlanet +#Bug-Submit: https://trac.osgeo.org/ossim/newticket?component=ossimPlanet +Name: OSSIM Planet Qt +Repository: https://svn.osgeo.org/ossim/trunk/ossimPlanetQt/ +Repository-Browse: https://trac.osgeo.org/ossim/browser/trunk/ossimPlanetQt diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..89dc20d --- /dev/null +++ b/debian/watch @@ -0,0 +1,7 @@ +version=3 +opts=\ +dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,\ +uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/;s/RC/rc/;s/-/./g,\ +filenamemangle=s/ossim[\-\_]?(\d\S+)\.(tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))/ossim-planet-qt-$1.$2/,\ +repacksuffix=+ds \ +http://download.osgeo.org/ossim/source/ossim-(\d\S+)/ossim-(\d\S+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/ossim-planet-qt.git _______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel