Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
207
Issues
207
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
6cd7acab
Commit
6cd7acab
authored
Dec 12, 2016
by
Rashad Kanavath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
COMP: write _otbapplication.so and otbApplication.py to OTB_INSTALL_PYTHON_DIR
parent
00036b35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
Modules/Wrappers/SWIG/src/CMakeLists.txt
Modules/Wrappers/SWIG/src/CMakeLists.txt
+7
-4
No files found.
Modules/Wrappers/SWIG/src/CMakeLists.txt
View file @
6cd7acab
...
...
@@ -28,7 +28,7 @@ if ( OTB_WRAP_PYTHON )
include_directories
(
${
NUMPY_INCLUDE_DIRS
}
)
list
(
APPEND CMAKE_SWIG_FLAGS
"-DOTB_SWIGNUMPY=1"
)
endif
()
set
(
CMAKE_SWIG_OUTDIR
${
CMAKE_
CURRENT_BINARY
_DIR
}
)
set
(
CMAKE_SWIG_OUTDIR
${
CMAKE_
BINARY_DIR
}
/
${
OTB_INSTALL_PYTHON
_DIR
}
)
set
(
SWIG_MODULE_otbApplication_EXTRA_DEPS
${
CMAKE_CURRENT_SOURCE_DIR
}
/Python.i
${
CMAKE_CURRENT_SOURCE_DIR
}
/PyCommand.i
...
...
@@ -36,6 +36,7 @@ if ( OTB_WRAP_PYTHON )
OTBApplicationEngine
)
SWIG_add_module
(
otbApplication python otbApplication.i otbApplicationPYTHON_wrap.cxx itkPyCommand.cxx
)
SWIG_link_libraries
(
otbApplication
${
PYTHON_LIBRARIES
}
OTBApplicationEngine
)
set_target_properties
(
_otbApplication PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_SWIG_OUTDIR
}
)
if
(
MSVC
)
set_source_files_properties
(
${
CMAKE_CURRENT_BINARY_DIR
}
/otbApplicationPYTHON_wrap.cxx COMPILE_FLAGS
"/wd4005"
)
else
()
...
...
@@ -47,7 +48,9 @@ if ( OTB_WRAP_PYTHON )
TARGET _otbApplication
POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E echo
"Byte-compiling otbApplication.py"
COMMAND
${
PYTHON_EXECUTABLE
}
${
CMAKE_SOURCE_DIR
}
/CMake/PythonCompile.py otbApplication.py
COMMAND
${
PYTHON_EXECUTABLE
}
${
CMAKE_SOURCE_DIR
}
/CMake/PythonCompile.py
${
CMAKE_SWIG_OUTDIR
}
/otbApplication.py
DEPENDS _otbApplication
)
...
...
@@ -57,8 +60,8 @@ if ( OTB_WRAP_PYTHON )
DESTINATION
${
OTB_INSTALL_PYTHON_DIR
}
COMPONENT RuntimeLibraries
)
install
(
FILES
${
CMAKE_
CURRENT_BINARY_
DIR
}
/otbApplication.py
${
CMAKE_
CURRENT_BINARY_
DIR
}
/otbApplication.pyc
install
(
FILES
${
CMAKE_
SWIG_OUT
DIR
}
/otbApplication.py
${
CMAKE_
SWIG_OUT
DIR
}
/otbApplication.pyc
DESTINATION
${
OTB_INSTALL_PYTHON_DIR
}
COMPONENT RuntimeLibraries
)
...
...
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