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
1509a2b4
Commit
1509a2b4
authored
8 years ago
by
Rashad Kanavath
Browse files
Options
Downloads
Patches
Plain Diff
BUG: fix make of cookbook from otb build or install directory
parent
3d256ab2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Documentation/Cookbook/CMake/RunApplicationsRstGenerator.sh.cmake.in
+1
-1
1 addition, 1 deletion
...on/Cookbook/CMake/RunApplicationsRstGenerator.sh.cmake.in
Documentation/Cookbook/CMakeLists.txt
+26
-0
26 additions, 0 deletions
Documentation/Cookbook/CMakeLists.txt
with
27 additions
and
1 deletion
Documentation/Cookbook/CMake/RunApplicationsRstGenerator.sh.cmake.in
+
1
−
1
View file @
1509a2b4
#!/bin/sh
export
LD_LIBRARY_PATH
=
@OTB_INSTALL_PREFIX@/lib:
$LD_LIBRARY_PATH
export
PYTHONPATH
=
@OTB_INSTALL_PREFIX@/lib:@OTB_
INSTALL_PREFIX@/lib/otb/python
:
$PYTHONPATH
export
PYTHONPATH
=
@OTB_INSTALL_PREFIX@/lib:@OTB_
PYTHONPATH@
:
$PYTHONPATH
export
OTB_APPLICATION_PATH
=
@OTB_INSTALL_PREFIX@/lib/otb/applications
@PYTHON_EXECUTABLE@ @CMAKE_SOURCE_DIR@/Scripts/otbGenerateWrappersRstDoc.py
This diff is collapsed.
Click to expand it.
Documentation/Cookbook/CMakeLists.txt
+
26
−
0
View file @
1509a2b4
...
...
@@ -10,6 +10,25 @@ endif()
#find OTB
find_package
(
OTB REQUIRED
)
if
(
OTB_FOUND
)
include
(
${
OTB_USE_FILE
}
)
message
(
STATUS
"Found OTB:
${
OTB_DIR
}
(found version
\"
${
OTB_VERSION
}
\"
)"
)
else
()
message
(
FATAL_ERROR
"OTB not found. Please set OTB_DIR"
)
return
()
endif
()
set
(
OTB_PYTHONPATH
)
if
(
EXISTS
"
${
OTB_DIR
}
/CMakeCache.txt"
)
set
(
OTB_INSTALL_PREFIX
${
OTB_DIR
}
)
set
(
OTB_PYTHONPATH
"
${
OTB_INSTALL_PREFIX
}
/Modules/Wrappers/SWIG/src"
)
elseif
(
EXISTS
"
${
OTB_DIR
}
/UseOTB.cmake"
)
get_filename_component
(
OTB_INSTALL_PREFIX
${
OTB_DIR
}
PATH
)
get_filename_component
(
OTB_INSTALL_PREFIX
${
OTB_INSTALL_PREFIX
}
PATH
)
get_filename_component
(
OTB_INSTALL_PREFIX
${
OTB_INSTALL_PREFIX
}
PATH
)
set
(
OTB_PYTHONPATH
"
${
OTB_INSTALL_PREFIX
}
/lib/otb/python"
)
endif
()
#find Python
find_package
(
PythonInterp REQUIRED
)
...
...
@@ -94,9 +113,16 @@ foreach(rst_file ${rst_sources3})
configure_file
(
${
rst_file
}
${
RST_GENERATED_SOURCE_DIR
}
/Applications/
${
out_file
}
COPYONLY
)
endforeach
()
file
(
GLOB rst_sources4
${
RST_SOURCES
}
/*.txt
)
foreach
(
rst_file
${
rst_sources4
}
)
get_filename_component
(
out_file
${
rst_file
}
NAME
)
configure_file
(
${
rst_file
}
${
RST_GENERATED_SOURCE_DIR
}
/
${
out_file
}
COPYONLY
)
endforeach
()
configure_file
(
${
RST_SOURCES
}
/conf.py.in
${
RST_GENERATED_SOURCE_DIR
}
/conf.py @ONLY
)
configure_file
(
${
RST_SOURCES
}
/Makefile.in
${
RST_GENERATED_SOURCE_DIR
}
/Makefile @ONLY
)
add_custom_target
(
generate_otbapps_rst
ALL
COMMAND
${
SH_INTERP
}
${
CMAKE_CURRENT_BINARY_DIR
}
/RunApplicationsRstGenerator.sh
...
...
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