add doc and translations to cmake

Signed-off-by: gregory guy <g-gregory@gmx.fr>
pull/2/head
gregory guy 6 years ago
parent 53c9fc0f2f
commit 1fec079159
No known key found for this signature in database
GPG Key ID: 6EFE0EF249A874C0

@ -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 #####################

@ -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 )

@ -0,0 +1 @@
tde_create_handbook( LANG cs DESTINATION ${PROJECT_NAME} )

@ -0,0 +1 @@
tde_create_handbook( LANG de DESTINATION ${PROJECT_NAME} )

@ -0,0 +1 @@
tde_create_handbook( LANG en DESTINATION ${PROJECT_NAME} )

@ -0,0 +1 @@
tde_create_handbook( LANG fi DESTINATION ${PROJECT_NAME} )

@ -0,0 +1 @@
tde_create_handbook( LANG hu DESTINATION ${PROJECT_NAME} )

@ -0,0 +1,5 @@
INSTALL(
FILES ${PROJECT_NAME}.1
DESTINATION ${MAN_INSTALL_DIR}/man1
COMPONENT doc
)

@ -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

@ -0,0 +1 @@
tde_create_handbook( LANG nb DESTINATION ${PROJECT_NAME} )

@ -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( )
Loading…
Cancel
Save