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
Main Repositories
otb
Commits
7574eab8
Commit
7574eab8
authored
8 years ago
by
Rashad Kanavath
Browse files
Options
Downloads
Patches
Plain Diff
DOC: minor fixes for cookbook/cmake
parent
908696bc
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
Documentation/Cookbook/CMakeLists.txt
+28
-30
28 additions, 30 deletions
Documentation/Cookbook/CMakeLists.txt
with
28 additions
and
30 deletions
Documentation/Cookbook/CMakeLists.txt
+
28
−
30
View file @
7574eab8
...
@@ -120,6 +120,20 @@ endforeach()
...
@@ -120,6 +120,20 @@ endforeach()
configure_file
(
${
RST_SOURCES
}
/conf.py.in
${
RST_GENERATED_SOURCE_DIR
}
/conf.py @ONLY
)
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
)
configure_file
(
${
RST_SOURCES
}
/Makefile.in
${
RST_GENERATED_SOURCE_DIR
}
/Makefile @ONLY
)
find_program
(
LATEX_COMMAND NAMES latex
)
mark_as_advanced
(
LATEX_COMMAND
)
find_program
(
TAR_COMMAND NAMES tar
)
mark_as_advanced
(
TAR_COMMAND
)
find_program
(
PDFLATEX_COMMAND NAMES pdflatex
)
mark_as_advanced
(
PDFLATEX_COMMAND
)
foreach
(
cmd LATEX_COMMAND TAR_COMMAND PDFLATEX_COMMAND
)
if
(
NOT
${
cmd
}
)
message
(
FATAL_ERROR
"
${
cmd
}
not set. Cannot continue"
)
endif
()
endforeach
()
add_custom_target
(
generate_otbapps_rst
add_custom_target
(
generate_otbapps_rst
ALL
ALL
...
@@ -135,36 +149,20 @@ add_custom_target(CookBookHTMLFromRST
...
@@ -135,36 +149,20 @@ add_custom_target(CookBookHTMLFromRST
DEPENDS generate_otbapps_rst
DEPENDS generate_otbapps_rst
COMMENT
"Building RST documentation in html"
)
COMMENT
"Building RST documentation in html"
)
find_program
(
TAR_COMMAND NAMES tar
)
add_custom_target
(
CookBookArchive
mark_as_advanced
(
TAR_COMMAND
)
ALL
COMMAND
${
TAR_COMMAND
}
find_program
(
PDFLATEX_COMMAND NAMES pdflatex
)
--transform
"s/^html/CookBook-
${
OTB_VERSION_MAJOR
}
.
${
OTB_VERSION_MINOR
}
/"
mark_as_advanced
(
PDFLATEX_COMMAND
)
-czf
${
CMAKE_BINARY_DIR
}
/CookBook-
${
OTB_VERSION_MAJOR
}
.
${
OTB_VERSION_MINOR
}
-html.tar.gz html
WORKING_DIRECTORY
${
RST_BUILD_DIR
}
find_program
(
LATEX_COMMAND NAMES latex
)
DEPENDS CookBookHTMLFromRST
mark_as_advanced
(
LATEX_COMMAND
)
COMMENT
"Creating archive for html CookBook"
)
if
(
NOT LATEX_COMMAND
)
message
(
FATAL_ERROR
"latex command not found. please add it to your path"
)
endif
()
if
(
TAR_COMMAND
)
add_custom_target
(
CookBookPDFFromRST
add_custom_target
(
CookBookArchive
ALL
ALL
COMMAND
${
CMAKE_MAKE_PROGRAM
}
latexpdf
COMMAND
${
TAR_COMMAND
}
WORKING_DIRECTORY
${
RST_GENERATED_SOURCE_DIR
}
--transform
"s/^html/CookBook-
${
OTB_VERSION_MAJOR
}
.
${
OTB_VERSION_MINOR
}
/"
DEPENDS generate_otbapps_rst
-czf
${
CMAKE_BINARY_DIR
}
/CookBook-
${
OTB_VERSION_MAJOR
}
.
${
OTB_VERSION_MINOR
}
-html.tar.gz html
COMMENT
"Building RST documentation in pdf"
)
WORKING_DIRECTORY
${
RST_BUILD_DIR
}
DEPENDS CookBookHTMLFromRST
COMMENT
"Creating archive for html CookBook"
)
endif
()
if
(
PDFLATEX_COMMAND
)
add_custom_target
(
CookBookPDFFromRST
ALL
COMMAND
${
CMAKE_MAKE_PROGRAM
}
latexpdf
WORKING_DIRECTORY
${
RST_GENERATED_SOURCE_DIR
}
DEPENDS generate_otbapps_rst
COMMENT
"Building RST documentation in pdf"
)
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