diff options
author | Emanoil Kotsev <deloptes@gmail.com> | 2025-06-25 13:56:23 +0000 |
---|---|---|
committer | Emanoil Kotsev <deloptes@gmail.com> | 2025-07-11 00:42:48 +0000 |
commit | ccee564ea0e6d9c13127c170068f9364e41d7f89 (patch) | |
tree | 9caa0dc67a0764ca92c9a27f8cb53f1f353b2e9e /CMakeLists.txt | |
parent | 8bc7bd5e9e885fc26ff398602970b189e8c490c3 (diff) | |
download | dbus-1-tqt-feat/apidocs.tar.gz dbus-1-tqt-feat/apidocs.zip |
Generating apidocs with the new macro tde_add_project_apidocs()feat/apidocs
Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f09103c..8fd7ade 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,11 +30,16 @@ include( CheckSymbolExists ) include( TDEMacros ) +##### setup install paths ####################### + +include( TDESetupPaths ) +tde_setup_paths( ) ##### optional stuff option( WITH_ALL_OPTIONS "Enable all optional support" OFF ) option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} ) +option( BUILD_APIDOX "Build documentation for developers" ${WITH_ALL_OPTIONS} ) ##### configure checks ########################## @@ -72,19 +77,13 @@ add_definitions( ${TQT_CFLAGS_OTHER} ) -if( CMAKE_APIDOX_HTML_DIRECTORY ) - set( APIDOX_HTML_DIRECTORY "${CMAKE_APIDOX_HTML_DIRECTORY}" ) -else() - set( APIDOX_HTML_DIRECTORY "/usr/share/doc/lib${PROJECT_NAME}/HTML" ) -endif() +##### build apidox ######################## +if( BUILD_APIDOX ) + set( APIDOX_HTML_DIR "/usr/share/doc/lib${PROJECT_NAME}/HTML/en" ) + tde_add_project_apidocs() +endif() ##### source directories ######################## add_subdirectory( src ) - - -##### write configure files ##################### - -configure_file( ${CMAKE_SOURCE_DIR}/dbus-1-tqt.Doxyfile.cmake ${CMAKE_BINARY_DIR}/dbus-1-tqt.Doxyfile ) - |