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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Julien Cabieces
otb
Commits
91250e77
Commit
91250e77
authored
10 years ago
by
Guillaume Pasero
Browse files
Options
Downloads
Patches
Plain Diff
ENH: superbuild: support OTB_USE_XXX options
parent
f4681fca
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Superbuild/CMake/External_otb.cmake
+36
-29
36 additions, 29 deletions
Superbuild/CMake/External_otb.cmake
Superbuild/CMakeLists.txt
+14
-3
14 additions, 3 deletions
Superbuild/CMakeLists.txt
with
50 additions
and
32 deletions
Superbuild/CMake/External_otb.cmake
+
36
−
29
View file @
91250e77
...
...
@@ -31,32 +31,39 @@ set(${proj}_DEPENDENCIES
GDAL
OSSIM
ITK
MUPARSER
MUPARSERX
TINYXML
BOOST
LIBKML
OPENCV
CURL
)
if
(
OTB_USE_CURL
)
list
(
APPEND
${
proj
}
_DEPENDENCIES CURL
)
endif
()
if
(
OTB_USE_LIBKML
)
list
(
APPEND
${
proj
}
_DEPENDENCIES LIBKML
)
endif
()
if
(
OTB_USE_OPENCV
)
list
(
APPEND
${
proj
}
_DEPENDENCIES OPENCV
)
endif
()
if
(
OTB_USE_MUPARSER
)
list
(
APPEND
${
proj
}
_DEPENDENCIES MUPARSER
)
endif
()
if
(
OTB_USE_MUPARSERX
)
list
(
APPEND
${
proj
}
_DEPENDENCIES MUPARSERX
)
endif
()
if
(
OTB_WRAP_PYTHON OR OTB_WRAP_JAVA
)
list
(
APPEND
${
proj
}
_DEPENDENCIES SWIG
)
endif
()
if
(
ENABLE_QT4
)
if
(
USE_SYSTEM_QT4
)
set
(
OTB_USE_QT4 ON
)
else
()
if
(
MSVC
)
set
(
OTB_USE_QT4 ON
)
list
(
APPEND
${
proj
}
_DEPENDENCIES QT4
)
else
(
UNIX
)
#TODO: use must have Qt4
message
(
STATUS
" Qt4 is not built by SuperBuild. You need to install it via package manager."
)
set
(
OTB_USE_QT4 OFF
)
endif
()
if
(
OTB_USE_QT4
)
list
(
APPEND
${
proj
}
_DEPENDENCIES QT4
)
if
(
USE_SYSTEM_QT4 AND UNIX
)
message
(
STATUS
" Qt4 is not built by SuperBuild. You need to install it via package manager."
)
endif
()
else
()
set
(
OTB_USE_QT4 OFF
)
endif
()
INCLUDE_SUPERBUILD_DEPENDENCIES
(
${${
proj
}
_DEPENDENCIES
}
)
...
...
@@ -131,17 +138,17 @@ ExternalProject_Add(${proj}
-DBUILD_EXAMPLES:BOOL=
${
BUILD_EXAMPLES
}
-DCMAKE_PREFIX_PATH:STRING=
${
CMAKE_INSTALL_PREFIX
}
;
${
CMAKE_PREFIX_PATH
}
-DOTB_DATA_ROOT:STRING=
${
OTB_DATA_ROOT
}
-DOTB_USE_6S:BOOL=
ON
-DOTB_USE_CURL:BOOL=
OFF
-DOTB_USE_EDISON:BOOL=ON
-DOTB_USE_LIBKML:BOOL=
ON
-DOTB_USE_LIBSVM:BOOL=
ON
-DOTB_USE_MAPNIK:BOOL=
OFF
-DOTB_USE_MUPARSER:BOOL=
ON
-DOTB_USE_MUPARSERX:BOOL=
ON
-DOTB_USE_OPENCV:BOOL=
ON
-DOTB_USE_6S:BOOL=
${
OTB_USE_6S
}
-DOTB_USE_CURL:BOOL=
${
OTB_USE_CURL
}
-DOTB_USE_EDISON:BOOL=
${
OTB_USE_EDIS
ON
}
-DOTB_USE_LIBKML:BOOL=
${
OTB_USE_LIBKML
}
-DOTB_USE_LIBSVM:BOOL=
${
OTB_USE_LIBSVM
}
-DOTB_USE_MAPNIK:BOOL=
${
OTB_USE_MAPNIK
}
-DOTB_USE_MUPARSER:BOOL=
${
OTB_USE_MUPARSER
}
-DOTB_USE_MUPARSERX:BOOL=
${
OTB_USE_MUPARSERX
}
-DOTB_USE_OPENCV:BOOL=
${
OTB_USE_OPENCV
}
-DOTB_USE_QT4:BOOL=
${
OTB_USE_QT4
}
-DOTB_USE_SIFTFAST:BOOL=
ON
-DOTB_USE_SIFTFAST:BOOL=
${
OTB_USE_SIFTFAST
}
${
OTB_SB_CONFIG
}
${
OTB_SB_LARGEINPUT_CONFIG
}
-DOTB_WRAP_PYTHON:BOOL=
${
OTB_WRAP_PYTHON
}
...
...
This diff is collapsed.
Click to expand it.
Superbuild/CMakeLists.txt
+
14
−
3
View file @
91250e77
...
...
@@ -81,11 +81,22 @@ SETUP_SYSTEM_LIBRARY(PROJECT OPENCV DEFAULT OFF)
SETUP_SYSTEM_LIBRARY
(
PROJECT PCRE DEFAULT ON
)
SETUP_SYSTEM_LIBRARY
(
PROJECT SWIG DEFAULT ON
)
if
(
ENABLE_QT4
)
SETUP_SYSTEM_LIBRARY
(
PROJECT QT4 DEFAULT ON
)
endif
()
SETUP_SYSTEM_LIBRARY
(
PROJECT QT4 DEFAULT ON
)
# Call OTB
option
(
OTB_USE_6S
"Enable module 6S in OTB"
ON
)
option
(
OTB_USE_CURL
"Enable module Curl in OTB"
ON
)
option
(
OTB_USE_EDISON
"Enable module Edison in OTB"
ON
)
option
(
OTB_USE_LIBKML
"Enable module libKML in OTB"
ON
)
option
(
OTB_USE_LIBSVM
"Enable module libSVM in OTB"
ON
)
option
(
OTB_USE_MAPNIK
"Enable module Mapnik in OTB"
OFF
)
option
(
OTB_USE_MUPARSER
"Enable module muparser in OTB"
ON
)
option
(
OTB_USE_MUPARSERX
"Enable module muparserX in OTB"
ON
)
option
(
OTB_USE_OPENCV
"Enable module OpenCV in OTB"
ON
)
option
(
OTB_USE_OPENJPEG
"Enable module openjpeg in OTB"
ON
)
option
(
OTB_USE_QT4
"Enable module QT4 in OTB"
${
ENABLE_QT4
}
)
option
(
OTB_USE_SIFTFAST
"Enable module Siftfast in OTB"
ON
)
# set OTB_DATA_ROOT to run test
find_path
(
OTB_DATA_ROOT README-OTB-Data PATHS $ENV{OTB_DATA_ROOT}
${
OTB-SuperBuild_SOURCE_DIR
}
/../OTB-Data
)
...
...
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