summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt9
-rw-r--r--doc/CMakeLists.txt7
-rw-r--r--doc/cs/CMakeLists.txt1
-rw-r--r--doc/de/CMakeLists.txt1
-rw-r--r--doc/en/CMakeLists.txt1
-rw-r--r--doc/fi/CMakeLists.txt1
-rw-r--r--doc/hu/CMakeLists.txt1
-rw-r--r--doc/man/CMakeLists.txt5
-rw-r--r--doc/man/kpowersave.1148
-rw-r--r--doc/nb/CMakeLists.txt1
-rw-r--r--po/CMakeLists.txt5
11 files changed, 180 insertions, 0 deletions
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 <caption>
+Use 'caption' as name in the titlebar
+.TP
+.B \-\-icon <icon>
+Use 'icon' as the application icon
+.TP
+.B \-\-miniicon <icon>
+Use 'icon' as the icon in the titlebar
+.TP
+.B \-\-config <filename>
+Use alternative configuration file
+.TP
+.B \-\-dcopserver <server>
+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 <style>
+sets the application GUI style
+.TP
+.B \-\-geometry <geometry>
+sets the client geometry of the main widget - see man X for the argument format
+.TP
+.B \-\-nofork
+Don't run in the background.
+.SS Qt options:
+.TP
+.B \-\-display <displayname>
+Use the X-server display 'displayname'
+.TP
+.B \-\-session <sessionId>
+Restore the application for the given 'sessionId'
+.TP
+.B \-\-cmap
+Causes the application to install a private color
+map on an 8-bit display
+.TP
+.B \-\-ncols <count>
+Limits the number of colors allocated in the color
+cube on an 8-bit display, if the application is
+using the QApplication::ManyColor color
+specification
+.TP
+.B \-\-nograb
+tells Qt to never grab the mouse or the keyboard
+.TP
+.B \-\-dograb
+running under a debugger can cause an implicit
+-nograb, use -dograb to override
+.TP
+.B \-\-sync
+switches to synchronous mode for debugging
+.TP
+.B \-\-fn, \-\-font <fontname>
+defines the application font
+.TP
+.B \-\-bg, \-\-background <color>
+sets the default background color and an
+application palette (light and dark shades are
+calculated)
+.TP
+.B \-\-fg, \-\-foreground <color>
+sets the default foreground color
+.TP
+.B \-\-btn, \-\-button <color>
+sets the default button color
+.TP
+.B \-\-name <name>
+sets the application name
+.TP
+.B \-\-title <title>
+sets the application title (caption)
+.TP
+.B \-\-visual TrueColor
+forces the application to use a TrueColor visual on
+an 8-bit display
+.TP
+.B \-\-inputstyle <inputstyle>
+sets XIM (X Input Method) input style. Possible
+values are onthespot, overthespot, offthespot and
+root
+.TP
+.B \-\-im <XIM server>
+set XIM server
+.TP
+.B \-\-noxim
+disable XIM
+.TP
+.B \-\-reverse
+mirrors the whole layout of widgets
+.SS
+
+.SH SEE ALSO
+Full user documentation is available through the TDE Help Center. You can also enter the URL
+.BR help:/kpowersave/
+directly into konqueror or you can run
+.BR "`khelpcenter help:/kpowersave/'"
+from the command-line.
+.br
+.SH AUTHORS
+.nf
+Danny Kukawka <dkukawka@suse.de>
+.br
+Thomas Renninger <trenn@suse.de>
+.br
+
diff --git a/doc/nb/CMakeLists.txt b/doc/nb/CMakeLists.txt
new file mode 100644
index 0000000..f5fe4d5
--- /dev/null
+++ b/doc/nb/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_handbook( LANG nb DESTINATION ${PROJECT_NAME} )
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
new file mode 100644
index 0000000..ad36a01
--- /dev/null
+++ b/po/CMakeLists.txt
@@ -0,0 +1,5 @@
+file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
+
+if( _srcs )
+ tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} )
+endif( )