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