1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
# libayatana-appindicator-docs.sgml
configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/AyatanaAppIndicatorGlib-2.0.toml.in" "${CMAKE_CURRENT_BINARY_DIR}/AyatanaAppIndicatorGlib-2.0.toml" @ONLY)
find_program (GI-DOCGEN gi-docgen)
add_custom_command (
OUTPUT "gi-docgen"
DEPENDS "src"
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND
${GI-DOCGEN}
generate
--quiet
--config="AyatanaAppIndicatorGlib-2.0.toml"
"${CMAKE_BINARY_DIR}/src/AyatanaAppIndicatorGlib-2.0.gir"
)
set_source_files_properties ("gi-docgen" PROPERTIES SYMBOLIC True)
install (DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/AyatanaAppIndicatorGlib-2.0" DESTINATION "${CMAKE_INSTALL_FULL_DATADIR}/doc/libayatana-appindicator-glib-dev")
add_custom_target ("doc" ALL DEPENDS "gi-docgen")
|