|
|
|
|
51
|
find_package (Doxygen)
|
51
|
find_package (Doxygen)
|
52
|
if (DOXYGEN_FOUND)
|
52
|
if (DOXYGEN_FOUND)
|
53
|
# Configure the Template Doxyfile for our specific project
|
53
|
# Configure the Template Doxyfile for our specific project
|
54
|
- configure_file(Doxyfile.in
|
|
|
|
|
54
|
+ configure_file (cmake/Doxyfile.in
|
55
|
${PROJECT_BINARY_DIR}/Doxyfile @ONLY IMMEDIATE)
|
55
|
${PROJECT_BINARY_DIR}/Doxyfile @ONLY IMMEDIATE)
|
|
|
56
|
+
|
56
|
# Add a custom target to run Doxygen when ever the project is built
|
57
|
# Add a custom target to run Doxygen when ever the project is built
|
57
|
add_custom_target (doc
|
58
|
add_custom_target (doc
|
58
|
COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile
|
59
|
COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile
|
59
|
SOURCES ${PROJECT_BINARY_DIR}/Doxyfile)
|
60
|
SOURCES ${PROJECT_BINARY_DIR}/Doxyfile)
|
|
|
61
|
+
|
60
|
# Add custom target to create local documentation without graphs
|
62
|
# Add custom target to create local documentation without graphs
|
61
|
add_custom_target (docLocal
|
63
|
add_custom_target (docLocal
|
62
|
COMMAND sed -i '' "s/HAVE_DOT = YES/HAVE_DOT = NO/g" Doxyfile
|
64
|
COMMAND sed -i '' "s/HAVE_DOT = YES/HAVE_DOT = NO/g" Doxyfile
|
|
|
|
|
64
|
COMMAND cp -R doc/html/* ${PROJECT_SOURCE_DIR}/../apache/
|
66
|
COMMAND cp -R doc/html/* ${PROJECT_SOURCE_DIR}/../apache/
|
65
|
COMMAND sed -i '' "s/HAVE_DOT = NO/HAVE_DOT = YES/g" Doxyfile
|
67
|
COMMAND sed -i '' "s/HAVE_DOT = NO/HAVE_DOT = YES/g" Doxyfile
|
66
|
SOURCES ${PROJECT_BINARY_DIR}/Doxyfile)
|
68
|
SOURCES ${PROJECT_BINARY_DIR}/Doxyfile)
|
67
|
-endif(DOXYGEN_FOUND)
|
|
|
|
|
69
|
+endif (DOXYGEN_FOUND)
|
68
|
|
70
|
|
69
|
# Clean doc files
|
71
|
# Clean doc files
|
70
|
-set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "doc")
|
|
|
|
|
72
|
+set_directory_properties (PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "doc")
|