diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2022-09-03 00:42:29 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2022-09-03 00:50:22 +0200 |
commit | f87ecf91e7ec49bf2187261560154c8555f733f9 (patch) | |
tree | cfc8a30469aa8312a84daef0f578c9bf397fa47c /CMakeLists.txt | |
parent | 0324d1c73f56c449976f7bd5e249ec4ecf3e750c (diff) | |
download | gtk-qt-engine-f87ecf91e7ec49bf2187261560154c8555f733f9.tar.gz gtk-qt-engine-f87ecf91e7ec49bf2187261560154c8555f733f9.zip |
Move documentation into kcontrol/gtk.
Use common rules for build and install documentation.
Copy translations to a new directory layout.
Use gtk-qt-engine as the name of the translation catalog.
Use common rules for build and install translations.
Added translation of .desktop files.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b2c94a..0a338b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,6 +41,13 @@ tde_setup_paths( ) set( ENV{PKG_CONFIG_PATH} "${PKG_CONFIG_PATH}:$ENV{PKG_CONFIG_PATH}:${LIB_INSTALL_DIR}/pkgconfig" ) +##### user requested modules + +option( BUILD_ALL "Build all" ON ) +option( BUILD_DOC "Build doc" ${BUILD_ALL} ) +option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} ) + + ##### configure checks ########################## include( ConfigureChecks.cmake ) @@ -48,9 +55,7 @@ include( ConfigureChecks.cmake ) ###### global compiler settings ################# -add_definitions( - -DHAVE_CONFIG_H -) +add_definitions( -DHAVE_CONFIG_H ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) @@ -106,8 +111,8 @@ INCLUDE_DIRECTORIES(${GTK_INCLUDE_DIR} ${BONOBO_INCLUDE_DIR} ${TDE_INCLUDE_DIR} # Subdirectories ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(kcm_gtk) -ADD_SUBDIRECTORY(po) -ADD_SUBDIRECTORY(doc) +tde_conditional_add_project_docs( BUILD_DOC ) +tde_conditional_add_project_translations( BUILD_TRANSLATIONS ) # Uninstall support CONFIGURE_FILE( |