From 1fec079159ddcc9e9358ea9765f9079c892bfbeb Mon Sep 17 00:00:00 2001 From: gregory guy Date: Sat, 15 Jun 2019 13:43:01 +0200 Subject: add doc and translations to cmake Signed-off-by: gregory guy --- CMakeLists.txt | 9 +++ doc/CMakeLists.txt | 7 +++ doc/cs/CMakeLists.txt | 1 + doc/de/CMakeLists.txt | 1 + doc/en/CMakeLists.txt | 1 + doc/fi/CMakeLists.txt | 1 + doc/hu/CMakeLists.txt | 1 + doc/man/CMakeLists.txt | 5 ++ doc/man/kpowersave.1 | 148 +++++++++++++++++++++++++++++++++++++++++++++++++ doc/nb/CMakeLists.txt | 1 + po/CMakeLists.txt | 5 ++ 11 files changed, 180 insertions(+) create mode 100644 doc/CMakeLists.txt create mode 100644 doc/cs/CMakeLists.txt create mode 100644 doc/de/CMakeLists.txt create mode 100644 doc/en/CMakeLists.txt create mode 100644 doc/fi/CMakeLists.txt create mode 100644 doc/hu/CMakeLists.txt create mode 100644 doc/man/CMakeLists.txt create mode 100644 doc/man/kpowersave.1 create mode 100644 doc/nb/CMakeLists.txt create mode 100644 po/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f9bcf2..78ae6fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,13 @@ include( TDESetupPaths ) tde_setup_paths( ) +##### user requested modules #################### + +option( BUILD_ALL "Build all" OFF ) +option( BUILD_DOC "Build doc" ${BUILD_ALL} ) +option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} ) + + ##### configure checks ########################## include( ConfigureChecks.cmake ) @@ -55,6 +62,8 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" ##### source directories ######################## add_subdirectory( src ) +tde_conditional_add_subdirectory( BUILD_DOC doc ) +tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po ) ##### write configure files ##################### diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt new file mode 100644 index 0000000..17b59b1 --- /dev/null +++ b/doc/CMakeLists.txt @@ -0,0 +1,7 @@ +add_subdirectory( cs ) +add_subdirectory( de ) +add_subdirectory( en ) +add_subdirectory( fi ) +add_subdirectory( hu ) +add_subdirectory( nb ) +add_subdirectory( man ) diff --git a/doc/cs/CMakeLists.txt b/doc/cs/CMakeLists.txt new file mode 100644 index 0000000..063505f --- /dev/null +++ b/doc/cs/CMakeLists.txt @@ -0,0 +1 @@ +tde_create_handbook( LANG cs DESTINATION ${PROJECT_NAME} ) diff --git a/doc/de/CMakeLists.txt b/doc/de/CMakeLists.txt new file mode 100644 index 0000000..ef43745 --- /dev/null +++ b/doc/de/CMakeLists.txt @@ -0,0 +1 @@ +tde_create_handbook( LANG de DESTINATION ${PROJECT_NAME} ) diff --git a/doc/en/CMakeLists.txt b/doc/en/CMakeLists.txt new file mode 100644 index 0000000..ec15f2f --- /dev/null +++ b/doc/en/CMakeLists.txt @@ -0,0 +1 @@ +tde_create_handbook( LANG en DESTINATION ${PROJECT_NAME} ) diff --git a/doc/fi/CMakeLists.txt b/doc/fi/CMakeLists.txt new file mode 100644 index 0000000..57e7736 --- /dev/null +++ b/doc/fi/CMakeLists.txt @@ -0,0 +1 @@ +tde_create_handbook( LANG fi DESTINATION ${PROJECT_NAME} ) diff --git a/doc/hu/CMakeLists.txt b/doc/hu/CMakeLists.txt new file mode 100644 index 0000000..a2cff92 --- /dev/null +++ b/doc/hu/CMakeLists.txt @@ -0,0 +1 @@ +tde_create_handbook( LANG hu DESTINATION ${PROJECT_NAME} ) diff --git a/doc/man/CMakeLists.txt b/doc/man/CMakeLists.txt new file mode 100644 index 0000000..8512250 --- /dev/null +++ b/doc/man/CMakeLists.txt @@ -0,0 +1,5 @@ +INSTALL( + FILES ${PROJECT_NAME}.1 + DESTINATION ${MAN_INSTALL_DIR}/man1 + COMPONENT doc +) diff --git a/doc/man/kpowersave.1 b/doc/man/kpowersave.1 new file mode 100644 index 0000000..1f816da --- /dev/null +++ b/doc/man/kpowersave.1 @@ -0,0 +1,148 @@ +.\" This file was generated by kdemangen.pl +.TH KPOWERSAVE 1 "Sep 2005" "Trinity Desktop Environment" "A TDE KPart Application" +.SH NAME +kpowersave +\- A TDE KPart Application +.SH SYNOPSIS +kpowersave [Qt\-options] [TDE\-options] +.SH DESCRIPTION +A TDE KPart Application +.SH OPTIONS +.SS Generic options: +.TP +.B \-\-help +Show help about options +.TP +.B \-\-help\-qt +Show Qt specific options +.TP +.B \-\-help\-tde +Show TDE specific options +.TP +.B \-\-help\-all +Show all options +.TP +.B \-\-author +Show author information +.TP +.B \-v, \-\-version +Show version information +.TP +.B \-\-license +Show license information +.TP +.B \-\- +End of options +.SS +.SS TDE options: +.TP +.B \-\-caption +Use 'caption' as name in the titlebar +.TP +.B \-\-icon +Use 'icon' as the application icon +.TP +.B \-\-miniicon +Use 'icon' as the icon in the titlebar +.TP +.B \-\-config +Use alternative configuration file +.TP +.B \-\-dcopserver +Use the DCOP Server specified by 'server' +.TP +.B \-\-nocrashhandler +Disable crash handler, to get core dumps +.TP +.B \-\-waitforwm +Waits for a WM_NET compatible windowmanager +.TP +.B \-\-style