+
+if get_option('build_doc')
+ doxygen_conf = configure_file(
+ input: 'Doxyfile.in',
+ output: 'Doxyfile',
+ configuration: cdata,
+ install: false)
+
+ doxygen_build = custom_target(
+ 'doxygen',
+ input: doxygen_conf,
+ output: 'api',
+ command: [doxygen, '@INPUT@', '@OUTPUT@'],
+ build_by_default: true,
+ install_dir: doc_install_dir)
+