Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
f503b029
Commit
f503b029
authored
Jul 19, 2011
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allowed to build html documentation without pdf documentation.
parent
05ff8217
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
CMakeLists.txt
CMakeLists.txt
+6
-2
CMakeLists.txt
doc/CMakeLists.txt
+4
-1
No files found.
CMakeLists.txt
View file @
f503b029
...
...
@@ -1702,8 +1702,12 @@ endif()
status
(
""
)
status
(
" Documentation:"
)
status
(
" Sphinx:"
HAVE_SPHINX THEN
"
${
SPHINX_BUILD
}
(ver
${
SPHINX_VERSION
}
)"
ELSE NO
)
status
(
" PdfLaTeX compiler:"
BUILD_DOCS AND PDFLATEX_COMPILER THEN
"
${
PDFLATEX_COMPILER
}
"
ELSE NO
)
status
(
" Build Documentation:"
BUILD_DOCS AND PDFLATEX_COMPILER AND HAVE_SPHINX THEN YES ELSE NO
)
status
(
" PdfLaTeX compiler:"
PDFLATEX_COMPILER THEN
"
${
PDFLATEX_COMPILER
}
"
ELSE NO
)
if
(
BUILD_DOCS AND HAVE_SPHINX
)
status
(
" Build Documentation:"
PDFLATEX_COMPILER THEN YES ELSE
"YES (HTML only)"
)
else
()
status
(
" Build Documentation:"
NO
)
endif
()
# samples and tests
status
(
""
)
...
...
doc/CMakeLists.txt
View file @
f503b029
...
...
@@ -7,7 +7,7 @@ file(GLOB FILES_DOC_VS vidsurv/*.doc)
file
(
GLOB FILES_TEX *.tex *.sty *.bib
)
file
(
GLOB FILES_TEX_PICS pics/*.png pics/*.jpg
)
if
(
BUILD_DOCS AND
PDFLATEX_COMPILER AND
HAVE_SPHINX
)
if
(
BUILD_DOCS AND HAVE_SPHINX
)
project
(
opencv_docs
)
...
...
@@ -20,6 +20,7 @@ file(GLOB_RECURSE OPENCV_FILES_TUT_PICT tutorials/*.png tutorials/*.jpg)
set
(
OPENCV_DOC_DEPS conf.py
${
OPENCV_FILES_REF
}
${
OPENCV_FILES_REF_PICT
}
${
OPENCV_FILES_UG
}
${
OPENCV_FILES_TUT
}
${
OPENCV_FILES_TUT_PICT
}
)
if
(
PDFLATEX_COMPILER
)
add_custom_target
(
docs
${
SPHINX_BUILD
}
-b latex -c
${
CMAKE_CURRENT_SOURCE_DIR
}
...
...
@@ -38,6 +39,8 @@ add_custom_target(docs
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
COMMENT
"Generating the PDF Manuals"
)
endif
()
add_custom_target
(
html_docs
${
SPHINX_BUILD
}
-b html -c
${
CMAKE_CURRENT_SOURCE_DIR
}
...
...
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