-
Notifications
You must be signed in to change notification settings - Fork 0
/
DocumentationTargets.cmake
37 lines (35 loc) · 1.79 KB
/
DocumentationTargets.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
# Michael Aaron Safyan ([email protected]). Copyright (C) 2009. Simplified BSD License.
#
# This CMake package creates a Doxygen documentation target.
#
FIND_PACKAGE (Doxygen)
IF (DOXYGEN_FOUND)
IF (EXISTS ${PROJECT_SOURCE_DIR}/Doxyfile)
ADD_CUSTOM_TARGET(
doxygen
${DOXYGEN_EXECUTABLE} Doxyfile
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
COMMENT "Generating doxygen project documentation." VERBATIM
)
ADD_CUSTOM_TARGET(
documentation
${DOXYGEN_EXECUTABLE} Doxyfile
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
COMMENT "Generating doxygen project documentation." VERBATIM
)
ADD_CUSTOM_TARGET(
docs
${DOXYGEN_EXECUTABLE} Doxyfile
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
COMMENT "Generating doxygen project documentation." VERBATIM
)
ELSE (EXISTS ${PROJECT_SOURCE_DIR}/Doxyfile)
ADD_CUSTOM_TARGET(doxygen COMMENT "Doxyfile not found. Please generate a doxygen configuration file to use this target." VERBATIM)
ADD_CUSTOM_TARGET(documentation COMMENT "Doxyfile not found. Please generate a doxygen configuration file to use this target." VERBATIM)
ADD_CUSTOM_TARGET(docs COMMENT "Doxyfile not found. Please generate a doxygen configuration file to use this target." VERBATIM)
ENDIF (EXISTS ${PROJECT_SOURCE_DIR}/Doxyfile)
ELSE (DOXYGEN_FOUND)
ADD_CUSTOM_TARGET(doxygen COMMENT "Doxygen not found. Please install doxygen to use this target." VERBATIM)
ADD_CUSTOM_TARGET(documentation COMMENT "Doxygen not found. Please install doxygen to use this target." VERBATIM)
ADD_CUSTOM_TARGET(docs COMMENT "Doxygen not found. Please install doxygen to use this target." VERBATIM)
ENDIF (DOXYGEN_FOUND)