-
Notifications
You must be signed in to change notification settings - Fork 0
/
EnableDoxygen.cmake
67 lines (54 loc) · 898 Bytes
/
EnableDoxygen.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# - Find Doxygen
# Find the Doxygen and enable it
#
# Include guard
include_guard(GLOBAL)
# Search Doxygen package
find_package(
Doxygen
COMPONENTS dot
)
# If Doxygen found
if (DOXYGEN_FOUND)
# Doxygen recursive
set(
DOXYGEN_RECURSIVE
True
)
# Doxygen generate HTML docs
set(
DOXYGEN_GENERATE_HTML
YES
)
# Documentation exclued directories
set(
DOXYGEN_EXCLUDE_PATTERNS
"*/.ccache/*"
"*/.git/*"
"*/.github/*"
"*/.idea/*"
"*/.kdev4/*"
"*/.vs/*"
"*/.vscode/*"
"*/build/*"
"*/cmake/*"
"*/docs/*"
"*/install/*"
)
# Doxygen warning format
set(
DOXYGEN_WARN_FORMAT
"$file:$line: $text"
)
# Documentation output directory
set(
DOXYGEN_OUTPUT_DIRECTORY
"${PROJECT_SOURCE_DIR}/docs/"
)
# Documentation build target
doxygen_add_docs(
documentation
"${PROJECT_SOURCE_DIR}"
COMMENT "Generate documentation"
)
endif (DOXYGEN_FOUND)