File: CMakeLists.txt

package info (click to toggle)
libayatana-appindicator-glib 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 620 kB
  • sloc: ansic: 2,590; python: 167; xml: 71; makefile: 23; sh: 8
file content (22 lines) | stat: -rw-r--r-- 782 bytes parent folder | download
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")