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
0e4bd80b
Commit
0e4bd80b
authored
Aug 16, 2015
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5194 from mshabunin:add-contrib-tutorials-root
parents
56cdd6f1
61282236
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
CMakeLists.txt
doc/CMakeLists.txt
+18
-1
root.markdown.in
doc/root.markdown.in
+1
-0
No files found.
doc/CMakeLists.txt
View file @
0e4bd80b
...
...
@@ -34,6 +34,7 @@ endif(HAVE_DOC_GENERATOR)
if
(
BUILD_DOCS AND DOXYGEN_FOUND
)
# not documented modules list
list
(
APPEND blacklist
"ts"
"java"
"python2"
"python3"
"world"
"contrib_world"
)
unset
(
CMAKE_DOXYGEN_TUTORIAL_CONTRIB_ROOT
)
# gathering headers
set
(
paths_include
)
...
...
@@ -70,7 +71,23 @@ if(BUILD_DOCS AND DOXYGEN_FOUND)
if
(
EXISTS
"
${
tutorial_dir
}
"
)
list
(
APPEND paths_tutorial
"
${
tutorial_dir
}
"
)
list
(
APPEND deps
${
tutorial_dir
}
)
# tutorial reference entry
file
(
GLOB tutorials RELATIVE
"
${
OPENCV_MODULE_opencv_
${
m
}
_LOCATION
}
"
"
${
tutorial_dir
}
/*.markdown"
)
foreach
(
t
${
tutorials
}
)
if
(
NOT DEFINED CMAKE_DOXYGEN_TUTORIAL_CONTRIB_ROOT
)
set
(
CMAKE_DOXYGEN_TUTORIAL_CONTRIB_ROOT
"- @ref tutorial_contrib_root"
)
set
(
tutorial_contrib_root
"
${
CMAKE_CURRENT_BINARY_DIR
}
/contrib_tutorials.markdown"
)
file
(
WRITE
"
${
tutorial_contrib_root
}
"
"Tutorials for contrib modules {#tutorial_contrib_root}
\n
"
"=============================
\n
"
)
endif
()
file
(
STRINGS
"
${
OPENCV_MODULE_opencv_
${
m
}
_LOCATION
}
/
${
t
}
"
tutorial_id LIMIT_COUNT 1 REGEX
".*{#[^}]+}"
)
string
(
REGEX REPLACE
".*{#([^}]+)}"
"
\\
1"
tutorial_id
"
${
tutorial_id
}
"
)
file
(
APPEND
"
${
tutorial_contrib_root
}
"
"-
${
m
}
. @subpage
${
tutorial_id
}
\n
"
)
endforeach
()
endif
()
# BiBTeX file
set
(
bib_file
"
${
docs_dir
}
/
${
m
}
.bib"
)
if
(
EXISTS
"
${
bib_file
}
"
)
...
...
@@ -114,7 +131,7 @@ if(BUILD_DOCS AND DOXYGEN_FOUND)
set
(
example_path
"
${
CMAKE_SOURCE_DIR
}
/samples"
)
# set export variables
string
(
REPLACE
";"
"
\\\n
"
CMAKE_DOXYGEN_INPUT_LIST
"
${
rootfile
}
;
${
faqfile
}
;
${
paths_include
}
;
${
paths_doc
}
;
${
tutorial_path
}
;
${
tutorial_py_path
}
;
${
paths_tutorial
}
"
)
string
(
REPLACE
";"
"
\\\n
"
CMAKE_DOXYGEN_INPUT_LIST
"
${
rootfile
}
;
${
faqfile
}
;
${
paths_include
}
;
${
paths_doc
}
;
${
tutorial_path
}
;
${
tutorial_py_path
}
;
${
paths_tutorial
}
;
${
tutorial_contrib_root
}
"
)
string
(
REPLACE
";"
"
\\\n
"
CMAKE_DOXYGEN_IMAGE_PATH
"
${
paths_doc
}
;
${
tutorial_path
}
;
${
tutorial_py_path
}
;
${
paths_tutorial
}
"
)
# TODO: remove paths_doc from EXAMPLE_PATH after face module tutorials/samples moved to separate folders
string
(
REPLACE
";"
"
\\\n
"
CMAKE_DOXYGEN_EXAMPLE_PATH
"
${
example_path
}
;
${
paths_doc
}
;
${
paths_sample
}
"
)
...
...
doc/root.markdown.in
View file @
0e4bd80b
...
...
@@ -4,6 +4,7 @@ OpenCV modules {#mainpage}
- @ref intro
- @ref tutorial_root
- @ref tutorial_py_root
@CMAKE_DOXYGEN_TUTORIAL_CONTRIB_ROOT@
- @ref faq
- @ref citelist
...
...
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