2016-01-05 10:59:25 +03:00
if ( DOXYGEN_FOUND )
if ( LLVM_ENABLE_DOXYGEN )
set ( abs_srcdir ${ CMAKE_CURRENT_SOURCE_DIR } )
set ( abs_builddir ${ CMAKE_CURRENT_BINARY_DIR } )
if ( HAVE_DOT )
set ( DOT ${ LLVM_PATH_DOT } )
endif ( )
if ( LLVM_DOXYGEN_EXTERNAL_SEARCH )
set ( enable_searchengine "YES" )
set ( searchengine_url "${LLVM_DOXYGEN_SEARCHENGINE_URL}" )
set ( enable_server_based_search "YES" )
set ( enable_external_search "YES" )
set ( extra_search_mappings "${LLVM_DOXYGEN_SEARCH_MAPPINGS}" )
else ( )
set ( enable_searchengine "NO" )
set ( searchengine_url "" )
set ( enable_server_based_search "NO" )
set ( enable_external_search "NO" )
set ( extra_search_mappings "" )
endif ( )
configure_file ( ${ CMAKE_CURRENT_SOURCE_DIR } /doxygen.cfg.in
$ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / d o x y g e n . c f g @ O N L Y )
set ( abs_top_srcdir )
set ( abs_top_builddir )
set ( DOT )
set ( enable_searchengine )
set ( searchengine_url )
set ( enable_server_based_search )
set ( enable_external_search )
set ( extra_search_mappings )
set ( cling_doxygen_generate_qhp )
set ( cling_doxygen_qch_filename )
set ( cling_doxygen_qhp_namespace )
set ( cling_doxygen_qhelpgenerator_path )
set ( cling_doxygen_qhp_cust_filter_name )
set ( cling_doxygen_qhp_cust_filter_attrs )
add_custom_target ( doxygen-cling
C O M M A N D $ { D O X Y G E N _ E X E C U T A B L E } $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / d o x y g e n . c f g
W O R K I N G _ D I R E C T O R Y $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R }
C O M M E N T " G e n e r a t i n g c l i n g d o x y g e n d o c u m e n t a t i o n . " V E R B A T I M )
if ( LLVM_BUILD_DOCS )
add_dependencies ( doxygen doxygen-cling )
endif ( )
if ( NOT LLVM_INSTALL_TOOLCHAIN_ONLY )
install ( DIRECTORY ${ CMAKE_CURRENT_BINARY_DIR } /doxygen/html
D E S T I N A T I O N d o c s / h t m l )
endif ( )
endif ( )
endif ( )
if ( LLVM_ENABLE_SPHINX )
2022-09-14 12:05:31 +03:00
include ( AddSphinxTarget )
2016-01-05 10:59:25 +03:00
if ( SPHINX_FOUND )
if ( ${ SPHINX_OUTPUT_HTML } )
add_sphinx_target ( html cling )
endif ( )
endif ( )
endif ( )