Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sébastien Peillet
otb
Commits
c932454a
Commit
c932454a
authored
9 years ago
by
Rashad Kanavath
Browse files
Options
Downloads
Patches
Plain Diff
COMP: copy patched files when using msvc compiler
parent
ba723443
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SuperBuild/CMake/External_ossim.cmake
+83
-83
83 additions, 83 deletions
SuperBuild/CMake/External_ossim.cmake
with
83 additions
and
83 deletions
SuperBuild/CMake/External_ossim.cmake
+
83
−
83
View file @
c932454a
set
(
proj OSSIM
)
if
(
NOT __EXTERNAL_
${
proj
}
__
)
set
(
__EXTERNAL_
${
proj
}
__ 1
)
message
(
STATUS
"Setup Ossim..."
)
# OSGeo4W provides an "ossim" package : use it otherwise if it is installed and not used by OTB
# we get conflicts (because OSGeo4W include dir is included for other dependencies
#if(WIN32)
# set(DEFAULT_USE_SYSTEM_OSSIM ON)
#endif()
if
(
USE_SYSTEM_OSSIM
)
find_package
(
Ossim
)
message
(
STATUS
" Using OSSIM system version"
)
else
()
SETUP_SUPERBUILD
(
PROJECT
${
proj
}
)
message
(
STATUS
" Using OSSIM SuperBuild version"
)
# declare dependencies
ADDTO_DEPENDENCIES_IF_NOT_SYSTEM
(
${
proj
}
TIFF GEOTIFF GEOS JPEG OPENTHREADS FREETYPE
)
INCLUDE_SUPERBUILD_DEPENDENCIES
(
${${
proj
}
_DEPENDENCIES
}
)
# set proj back to its original value
set
(
proj OSSIM
)
ADD_SUPERBUILD_CMAKE_VAR
(
TIFF_INCLUDE_DIR
)
ADD_SUPERBUILD_CMAKE_VAR
(
TIFF_LIBRARY
)
ADD_SUPERBUILD_CMAKE_VAR
(
GEOTIFF_INCLUDE_DIR
)
ADD_SUPERBUILD_CMAKE_VAR
(
GEOTIFF_LIBRARY
)
ADD_SUPERBUILD_CMAKE_VAR
(
GEOS_INCLUDE_DIR
)
ADD_SUPERBUILD_CMAKE_VAR
(
GEOS_LIBRARY
)
ADD_SUPERBUILD_CMAKE_VAR
(
JPEG_INCLUDE_DIR
)
ADD_SUPERBUILD_CMAKE_VAR
(
JPEG_LIBRARY
)
ADD_SUPERBUILD_CMAKE_VAR
(
OPENTHREADS_INCLUDE_DIR
)
ADD_SUPERBUILD_CMAKE_VAR
(
OPENTHREADS_LIBRARY
)
ADD_SUPERBUILD_CMAKE_VAR
(
FREETYPE_INCLUDE_DIR
)
ADD_SUPERBUILD_CMAKE_VAR
(
FREETYPE_LIBRARY
)
set
(
OSSIM_CXX_FLAGS -D__STDC_CONSTANT_MACROS
)
if
(
MSVC
)
set
(
OSSIM_CXX_FLAGS /EHsc
)
endif
()
# archive version
ExternalProject_Add
(
${
proj
}
PREFIX
${
proj
}
URL
"https://www.orfeo-toolbox.org/packages/ossim-minimal-r23537.tar.gz"
URL_MD5 f77d574ab2817bcc36633f77824facb5
BINARY_DIR
${
OSSIM_SB_BUILD_DIR
}
INSTALL_DIR
${
SB_INSTALL_PREFIX
}
DOWNLOAD_DIR
${
DOWNLOAD_LOCATION
}
CMAKE_CACHE_ARGS
-DProject_WC_REVISION:STRING=23537
-DCMAKE_INSTALL_PREFIX:STRING=
${
SB_INSTALL_PREFIX
}
-DCMAKE_BUILD_TYPE:STRING=Release
-DCMAKE_CXX_FLAGS:STRING=
${
OSSIM_CXX_FLAGS
}
-DBUILD_OSSIM_MPI_SUPPORT:BOOL=OFF
-DBUILD_OSSIM_FREETYPE_SUPPORT:BOOL=ON
-DBUILD_OSSIM_APPS:BOOL=OFF
-DBUILD_OSSIM_TEST_APPS:BOOL=OFF
-DBUILD_OSSIM_FRAMEWORKS:BOOL=OFF
-DBUILD_WMS:BOOL=OFF
-DINSTALL_ARCHIVE_DIR:STRING=lib
-DINSTALL_LIBRARY_DIR:STRING=lib
-DCMAKE_PREFIX_PATH:STRING=
${
SB_INSTALL_PREFIX
}
;
${
CMAKE_PREFIX_PATH
}
${
OSSIM_SB_CONFIG
}
DEPENDS
${${
proj
}
_DEPENDENCIES
}
CMAKE_COMMAND
${
SB_CMAKE_COMMAND
}
)
set
(
_SB_
${
proj
}
_INCLUDE_DIR
${
SB_INSTALL_PREFIX
}
/include
)
if
(
WIN32
)
set
(
_SB_
${
proj
}
_LIBRARY
${
SB_INSTALL_PREFIX
}
/lib/ossim.lib
)
elseif
(
UNIX
)
set
(
_SB_
${
proj
}
_LIBRARY
${
SB_INSTALL_PREFIX
}
/lib/libossim
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
)
endif
()
endif
()
endif
()
set
(
proj OSSIM
)
if
(
NOT __EXTERNAL_
${
proj
}
__
)
set
(
__EXTERNAL_
${
proj
}
__ 1
)
message
(
STATUS
"Setup Ossim..."
)
# OSGeo4W provides an "ossim" package : use it otherwise if it is installed and not used by OTB
# we get conflicts (because OSGeo4W include dir is included for other dependencies
#if(WIN32)
# set(DEFAULT_USE_SYSTEM_OSSIM ON)
#endif()
if
(
USE_SYSTEM_OSSIM
)
find_package
(
Ossim
)
message
(
STATUS
" Using OSSIM system version"
)
else
()
SETUP_SUPERBUILD
(
PROJECT
${
proj
}
)
message
(
STATUS
" Using OSSIM SuperBuild version"
)
# declare dependencies
ADDTO_DEPENDENCIES_IF_NOT_SYSTEM
(
${
proj
}
TIFF GEOTIFF GEOS JPEG OPENTHREADS FREETYPE
)
INCLUDE_SUPERBUILD_DEPENDENCIES
(
${${
proj
}
_DEPENDENCIES
}
)
# set proj back to its original value
set
(
proj OSSIM
)
ADD_SUPERBUILD_CMAKE_VAR
(
TIFF_INCLUDE_DIR
)
ADD_SUPERBUILD_CMAKE_VAR
(
TIFF_LIBRARY
)
ADD_SUPERBUILD_CMAKE_VAR
(
GEOTIFF_INCLUDE_DIR
)
ADD_SUPERBUILD_CMAKE_VAR
(
GEOTIFF_LIBRARY
)
ADD_SUPERBUILD_CMAKE_VAR
(
GEOS_INCLUDE_DIR
)
ADD_SUPERBUILD_CMAKE_VAR
(
GEOS_LIBRARY
)
ADD_SUPERBUILD_CMAKE_VAR
(
JPEG_INCLUDE_DIR
)
ADD_SUPERBUILD_CMAKE_VAR
(
JPEG_LIBRARY
)
ADD_SUPERBUILD_CMAKE_VAR
(
OPENTHREADS_INCLUDE_DIR
)
ADD_SUPERBUILD_CMAKE_VAR
(
OPENTHREADS_LIBRARY
)
ADD_SUPERBUILD_CMAKE_VAR
(
FREETYPE_INCLUDE_DIR
)
ADD_SUPERBUILD_CMAKE_VAR
(
FREETYPE_LIBRARY
)
set
(
OSSIM_CXX_FLAGS -D__STDC_CONSTANT_MACROS
)
if
(
MSVC
)
set
(
OSSIM_CXX_FLAGS /EHsc
)
endif
()
# archive version
ExternalProject_Add
(
${
proj
}
PREFIX
${
proj
}
URL
"https://www.orfeo-toolbox.org/packages/ossim-minimal-r23537.tar.gz"
URL_MD5 f77d574ab2817bcc36633f77824facb5
BINARY_DIR
${
OSSIM_SB_BUILD_DIR
}
INSTALL_DIR
${
SB_INSTALL_PREFIX
}
DOWNLOAD_DIR
${
DOWNLOAD_LOCATION
}
CMAKE_CACHE_ARGS
-DProject_WC_REVISION:STRING=23537
-DCMAKE_INSTALL_PREFIX:STRING=
${
SB_INSTALL_PREFIX
}
-DCMAKE_BUILD_TYPE:STRING=Release
-DCMAKE_CXX_FLAGS:STRING=
${
OSSIM_CXX_FLAGS
}
-DBUILD_OSSIM_MPI_SUPPORT:BOOL=OFF
-DBUILD_OSSIM_FREETYPE_SUPPORT:BOOL=ON
-DBUILD_OSSIM_APPS:BOOL=OFF
-DBUILD_OSSIM_TEST_APPS:BOOL=OFF
-DBUILD_OSSIM_FRAMEWORKS:BOOL=OFF
-DBUILD_WMS:BOOL=OFF
-DINSTALL_ARCHIVE_DIR:STRING=lib
-DINSTALL_LIBRARY_DIR:STRING=lib
-DCMAKE_PREFIX_PATH:STRING=
${
SB_INSTALL_PREFIX
}
;
${
CMAKE_PREFIX_PATH
}
${
OSSIM_SB_CONFIG
}
DEPENDS
${${
proj
}
_DEPENDENCIES
}
CMAKE_COMMAND
${
SB_CMAKE_COMMAND
}
)
set
(
_SB_
${
proj
}
_INCLUDE_DIR
${
SB_INSTALL_PREFIX
}
/include
)
if
(
WIN32
)
set
(
_SB_
${
proj
}
_LIBRARY
${
SB_INSTALL_PREFIX
}
/lib/ossim.lib
)
elseif
(
UNIX
)
set
(
_SB_
${
proj
}
_LIBRARY
${
SB_INSTALL_PREFIX
}
/lib/libossim
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
)
endif
()
endif
()
endif
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment