diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2020-04-28 19:03:59 +0200 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2020-04-29 15:23:23 +0000 |
commit | 6e8d75834eac4c4b9be78a8104993b3b76fb7dca (patch) | |
tree | 2c70a04d5af230aef843b9de5da07070c62d9d62 /cmake | |
parent | dc9a0af697bd3bff6504669ef732b0eaad2478a7 (diff) | |
download | dbus-6e8d75834eac4c4b9be78a8104993b3b76fb7dca.tar.gz |
Add support to generate the api documentation in Qt help format
Qt help files are used by Qt Creator and KDevelop, for example, to support
the development of Qt-based applications and libraries.
Generating api documentation in Qt help format is controlled by two
user specific options named --enable-qt-help and --with-qchdir (autotools)
and -DENABLE_QT_HELP and -DINSTALL_QCH_DIR (cmake).
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/Macros.cmake | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/modules/Macros.cmake b/cmake/modules/Macros.cmake index fed16007..c594747e 100644 --- a/cmake/modules/Macros.cmake +++ b/cmake/modules/Macros.cmake @@ -200,3 +200,15 @@ macro(add_library_version_info _sources _name) # version info and uac manifest can be combined in a binary because they use different resource types list(APPEND ${_sources} ${CMAKE_CURRENT_BINARY_DIR}/versioninfo-${DBUS_VER_INTERNAL_NAME}.rc) endmacro() + +# +# provide option with three states AUTO, ON, OFF +# +macro(tristateoption _name _default _text) + if(NOT DEFINED ${_name}) + set(${_name} ${_default} CACHE STRING "${_text}" FORCE) + else() + set(${_name} ${_default} CACHE STRING "${_text}") + endif() + set_property(CACHE ${_name} PROPERTY STRINGS AUTO ON OFF) +endmacro(tristateoption) |