@ -7,30 +7,34 @@ find_package(Doxygen)
# A d d a t a r g e t t o g e n e r a t e A P I d o c u m e n t a t i o n w i t h D o x y g e n
if ( DOXYGEN_FOUND )
# W e u s e t h e d o x y g e n c o m m a n d o f C M a k e i n s t e a d o f u s i n g t h e s e p a r a t e c o n f i g f i l e
set ( DOXYGEN_PROJECT_NAME "Storm" )
set ( DOXYGEN_PROJECT_BRIEF "A Modern Probabilistic Model Checker" )
set ( DOXYGEN_BRIEF_MEMBER_DESC YES )
set ( DOXYGEN_REPEAT_BRIEF YES )
set ( DOXYGEN_JAVADOC_AUTOBRIEF YES )
set ( DOXYGEN_QT_AUTOBRIEF YES )
set ( DOXYGEN_EXTRACT_ALL YES )
set ( DOXYGEN_EXTRACT_STATIC YES )
set ( DOXYGEN_SOURCE_BROWSER YES )
set ( DOXYGEN_GENERATE_TREEVIEW YES )
set ( DOXYGEN_CASE_SENSE_NAMES NO )
set ( DOXYGEN_HTML_TIMESTAMP YES )
set ( DOXYGEN_CREATE_SUBDIRS YES )
set ( DOXYGEN_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/doc" )
doxygen_add_docs (
d o c
" $ { P R O J E C T _ S O U R C E _ D I R } / s r c "
C O M M E N T " G e n e r a t i n g A P I d o c u m e n t a t i o n w i t h D o x y g e n "
)
if ( ${ CMAKE_VERSION } VERSION_LESS "3.9.0" )
# U s e o l d c o m m a n d s i f C M a k e d o e s n o t s u p p o r t t h e c o m m a n d d o x y g e n _ a d d _ d o c s
set ( CMAKE_DOXYGEN_OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/doc" )
string ( REGEX REPLACE ";" " " CMAKE_DOXYGEN_INPUT_LIST "${PROJECT_SOURCE_DIR}/src" )
configure_file ( "${CMAKE_CURRENT_SOURCE_DIR}/resources/doxygen/Doxyfile.in" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" @ONLY )
add_custom_target ( doc ${ DOXYGEN_EXECUTABLE } "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" COMMENT "Generating API documentation with Doxygen" VERBATIM )
else ( )
# W e u s e t h e d o x y g e n c o m m a n d o f C M a k e i n s t e a d o f u s i n g t h e s e p a r a t e c o n f i g f i l e
set ( DOXYGEN_PROJECT_NAME "Storm" )
set ( DOXYGEN_PROJECT_BRIEF "A Modern Probabilistic Model Checker" )
set ( DOXYGEN_BRIEF_MEMBER_DESC YES )
set ( DOXYGEN_REPEAT_BRIEF YES )
set ( DOXYGEN_JAVADOC_AUTOBRIEF YES )
set ( DOXYGEN_QT_AUTOBRIEF YES )
set ( DOXYGEN_EXTRACT_ALL YES )
set ( DOXYGEN_EXTRACT_STATIC YES )
set ( DOXYGEN_SOURCE_BROWSER YES )
set ( DOXYGEN_GENERATE_TREEVIEW YES )
set ( DOXYGEN_CASE_SENSE_NAMES NO )
set ( DOXYGEN_HTML_TIMESTAMP YES )
set ( DOXYGEN_CREATE_SUBDIRS YES )
set ( DOXYGEN_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/doc" )
doxygen_add_docs (
d o c
" $ { P R O J E C T _ S O U R C E _ D I R } / s r c "
C O M M E N T " G e n e r a t i n g A P I d o c u m e n t a t i o n w i t h D o x y g e n "
)
endif ( )
# T h e s e c o m m a n d s c a n b e u s e d i f t h e s e p a r a t e c o n f i g f i l e s s h o u l d b e u s e d
# set ( CMAKE_DOXYGEN_OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/doc" )
# string ( REGEX REPLACE ";" " " CMAKE_DOXYGEN_INPUT_LIST "${PROJECT_SOURCE_DIR}/src" )
# configure_file ( "${CMAKE_CURRENT_SOURCE_DIR}/resources/doxygen/Doxyfile.in.new" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" @ONLY )
# add_custom_target ( doc ${ DOXYGEN_EXECUTABLE } "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" COMMENT "Generating API documentation with Doxygen" VERBATIM )
endif ( DOXYGEN_FOUND )