@ -7,6 +7,14 @@ 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
# 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 )
if ( DOXYGEN_FOUND )
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
# 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_NAME "Storm" )
set ( DOXYGEN_PROJECT_BRIEF "A Modern Probabilistic Model Checker" )
set ( DOXYGEN_PROJECT_BRIEF "A Modern Probabilistic Model Checker" )
@ -27,10 +35,6 @@ if(DOXYGEN_FOUND)
" $ { P R O J E C T _ S O U R C E _ D I R } / s r 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 "
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 )
endif ( DOXYGEN_FOUND )