Skip to content
This repository was archived by the owner on Jun 25, 2020. It is now read-only.

Commit 6cf4d69

Browse files
committed
added target doc; added demo documentation; added automatic plantuml detection (Download and install http://de.plantuml.com/).
1 parent 6dac0b7 commit 6cf4d69

File tree

4 files changed

+2437
-0
lines changed

4 files changed

+2437
-0
lines changed

src/CMakeLists.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,21 @@ target_link_libraries(${project_name} ${global_libraries})
141141
install(TARGETS ${project_name}
142142
RUNTIME DESTINATION bin
143143
)
144+
145+
find_package(Plantuml)
146+
if(PLANTUML_FOUND)
147+
#message("plantuml found PLANTUML_JARFILE=${PLANTUML_JARFILE}")
148+
else(Plantuml_FOUND)
149+
message("plantuml not found. No UML diagrams are generated. You may define the environment variable PLANTUML_PATH...")
150+
endif(PLANTUML_FOUND)
151+
152+
# add a target to generate API documentation with Doxygen
153+
find_package(Doxygen)
154+
if(DOXYGEN_FOUND)
155+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
156+
add_custom_target(doc
157+
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
158+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
159+
COMMENT "Generating API documentation with Doxygen to ${CMAKE_CURRENT_BINARY_DIR}" VERBATIM
160+
)
161+
endif(DOXYGEN_FOUND)

0 commit comments

Comments
 (0)