Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
3602864b
Commit
3602864b
authored
Feb 09, 2015
by
Guillaume Pasero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: handle wrap python and java in OTB superbuild
parent
df0cd763
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
CMake/External_OTB.cmake
CMake/External_OTB.cmake
+17
-0
CMakeLists.txt
CMakeLists.txt
+5
-0
No files found.
CMake/External_OTB.cmake
View file @
3602864b
...
...
@@ -138,6 +138,20 @@ if(MSVC)
set
(
OTB_SB_JPEG_CONFIG -DJPEG_LIBRARY:STRING=
${
CMAKE_INSTALL_PREFIX
}
/lib/libjpeg.lib
)
endif
()
set
(
OTB_SB_SWIG_CONFIG
)
if
(
OTB_WRAP_PYTHON OR OTB_WRAP_JAVA
)
if
(
USE_SYSTEM_SWIG
)
# TODO : handle specific prefix
else
()
if
(
MSVC
)
set
(
OTB_SB_SWIG_CONFIG
-DSWIG_EXECUTABLE:STRING=
${
CMAKE_BINARY_DIR
}
/SWIG/src/SWIG/swig.exe
)
endif
()
list
(
APPEND
${
proj
}
_DEPENDENCIES SWIG
)
endif
()
endif
()
ExternalProject_Add
(
${
proj
}
DEPENDS
${${
proj
}
_DEPENDENCIES
}
PREFIX
${
proj
}
...
...
@@ -170,6 +184,9 @@ ExternalProject_Add(${proj}
${
OTB_SB_OPENCV_CONFIG
}
${
OTB_SB_JPEG_CONFIG
}
${
OTB_SB_LARGEINPUT_CONFIG
}
-DOTB_WRAP_PYTHON:BOOL=
${
OTB_WRAP_PYTHON
}
-DOTB_WRAP_JAVA:BOOL=
${
OTB_WRAP_JAVA
}
${
OTB_SB_SWIG_CONFIG
}
CMAKE_COMMAND
${
SB_CMAKE_COMMAND
}
)
...
...
CMakeLists.txt
View file @
3602864b
...
...
@@ -56,6 +56,7 @@ include(External_muParser)
include
(
External_muParserX
)
include
(
External_TinyXML
)
include
(
External_OpenCV
)
include
(
External_swig
)
if
(
ENABLE_QT4
)
include
(
External_qt4
)
...
...
@@ -72,6 +73,10 @@ if(ENABLE_OTB_LARGE_INPUTS)
find_path
(
OTB_DATA_LARGEINPUT_ROOT OTBData.readme $ENV{OTB_DATA_LARGEINPUT_ROOT}
)
endif
()
# SWIG Wrapping
option
(
OTB_WRAP_PYTHON
"Enable python wrappers for OTB applications (requires SWIG)"
ON
)
option
(
OTB_WRAP_JAVA
"Enable java wrappers for OTB applications (requires SWIG)"
ON
)
include
(
External_OTB
)
if
(
BUILD_ICE
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment