diff options
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 ) - |