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
ec9a17e7
Commit
ec9a17e7
authored
Dec 26, 2014
by
Maksim Shabunin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restored PlantUML support for doxygen
parent
ad6a80f6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
CMakeLists.txt
CMakeLists.txt
+14
-1
CMakeLists.txt
doc/CMakeLists.txt
+5
-0
Doxyfile.in
doc/Doxyfile.in
+1
-0
No files found.
CMakeLists.txt
View file @
ec9a17e7
...
@@ -473,10 +473,22 @@ include(cmake/OpenCVFindLibsPerf.cmake)
...
@@ -473,10 +473,22 @@ include(cmake/OpenCVFindLibsPerf.cmake)
# Detect other 3rd-party libraries/tools
# Detect other 3rd-party libraries/tools
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# --- Doxygen for documentation ---
# --- Doxygen
and PlantUML
for documentation ---
unset
(
DOXYGEN_FOUND CACHE
)
unset
(
DOXYGEN_FOUND CACHE
)
if
(
BUILD_DOCS
)
if
(
BUILD_DOCS
)
find_package
(
Doxygen
)
find_package
(
Doxygen
)
if
(
PLANTUML_JAR
)
message
(
STATUS
"Using PlantUML path from command line:
${
PLANTUML_JAR
}
"
)
elseif
(
DEFINED ENV{PLANTUML_JAR}
)
set
(
PLANTUML_JAR $ENV{PLANTUML_JAR}
)
message
(
STATUS
"Using PLantUML path from environment:
${
PLANTUML_JAR
}
"
)
else
()
message
(
STATUS
"To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake"
)
endif
()
if
(
PLANTUML_JAR AND DOXYGEN_VERSION VERSION_LESS 1.8.8
)
message
(
STATUS
"You need Doxygen version 1.8.8 or later to use PlantUML"
)
unset
(
PLANTUML_JAR
)
endif
()
endif
(
BUILD_DOCS
)
endif
(
BUILD_DOCS
)
# --- Python Support ---
# --- Python Support ---
...
@@ -1080,6 +1092,7 @@ if(BUILD_DOCS)
...
@@ -1080,6 +1092,7 @@ if(BUILD_DOCS)
status
(
""
)
status
(
""
)
status
(
" Documentation:"
)
status
(
" Documentation:"
)
status
(
" Doxygen:"
DOXYGEN_FOUND THEN
"
${
DOXYGEN_EXECUTABLE
}
(ver
${
DOXYGEN_VERSION
}
)"
ELSE NO
)
status
(
" Doxygen:"
DOXYGEN_FOUND THEN
"
${
DOXYGEN_EXECUTABLE
}
(ver
${
DOXYGEN_VERSION
}
)"
ELSE NO
)
status
(
" PlantUML:"
PLANTUML_JAR THEN
"
${
PLANTUML_JAR
}
"
ELSE NO
)
endif
()
endif
()
# ========================== samples and tests ==========================
# ========================== samples and tests ==========================
...
...
doc/CMakeLists.txt
View file @
ec9a17e7
...
@@ -129,6 +129,11 @@ if(BUILD_DOCS AND DOXYGEN_FOUND)
...
@@ -129,6 +129,11 @@ if(BUILD_DOCS AND DOXYGEN_FOUND)
set
(
CMAKE_DOXYGEN_MAIN_REFERENCE
"
${
refs_main
}
"
)
set
(
CMAKE_DOXYGEN_MAIN_REFERENCE
"
${
refs_main
}
"
)
set
(
CMAKE_DOXYGEN_EXTRA_REFERENCE
"
${
refs_extra
}
"
)
set
(
CMAKE_DOXYGEN_EXTRA_REFERENCE
"
${
refs_extra
}
"
)
set
(
CMAKE_EXTRA_BIB_FILES
"
${
bibfile
}
${
paths_bib
}
"
)
set
(
CMAKE_EXTRA_BIB_FILES
"
${
bibfile
}
${
paths_bib
}
"
)
if
(
PLANTUML_JAR
)
set
(
CMAKE_DOXYGEN_PLANTUML_SUPPORT
"PLANTUML_JAR_PATH =
${
PLANTUML_JAR
}
\n
"
)
else
()
set
(
CMAKE_DOXYGEN_PLANTUML_SUPPORT
"ALIASES += startuml{1}=
\"
@warning __No plantuml!__
\\
n
\\
n @if DUMMY_PLANTUML_CODE
\"
enduml=
\"
@endif
\"\n
"
)
endif
()
# writing file
# writing file
configure_file
(
Doxyfile.in
${
doxyfile
}
@ONLY
)
configure_file
(
Doxyfile.in
${
doxyfile
}
@ONLY
)
...
...
doc/Doxyfile.in
View file @
ec9a17e7
...
@@ -285,3 +285,4 @@ DOT_TRANSPARENT = NO
...
@@ -285,3 +285,4 @@ DOT_TRANSPARENT = NO
DOT_MULTI_TARGETS = NO
DOT_MULTI_TARGETS = NO
GENERATE_LEGEND = YES
GENERATE_LEGEND = YES
DOT_CLEANUP = YES
DOT_CLEANUP = YES
@CMAKE_DOXYGEN_PLANTUML_SUPPORT@
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