summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2013-08-16 23:13:27 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2013-08-16 23:13:27 -0500
commit071d5a847e8cbab6dbebb2c649e28689464c88a1 (patch)
treec45957306d01ea6d46bd31866c54d852d3fce87b
parentf8befe6e2f7dea79c61750aefb604d79cf263b39 (diff)
downloadtdepowersave-071d5a847e8cbab6dbebb2c649e28689464c88a1.tar.gz
tdepowersave-071d5a847e8cbab6dbebb2c649e28689464c88a1.zip
Add cmake support for help handbook with preliminary support added for po files.
-rw-r--r--CMakeLists.txt2
-rw-r--r--doc/CMakeLists.txt12
-rw-r--r--doc/cs/CMakeLists.txt12
-rw-r--r--doc/de/CMakeLists.txt12
-rw-r--r--doc/en/CMakeLists.txt12
-rw-r--r--doc/fi/CMakeLists.txt12
-rw-r--r--doc/hu/CMakeLists.txt12
-rw-r--r--doc/nb/CMakeLists.txt12
-rw-r--r--po/CMakeLists.txt17
-rw-r--r--src/tdepowersave.cpp2
10 files changed, 104 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2062df2..7bd0677 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -54,6 +54,8 @@ set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
##### source directories ########################
add_subdirectory( src )
+add_subdirectory( doc )
+add_subdirectory( po )
##### write configure files #####################
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
new file mode 100644
index 0000000..a8b8de4
--- /dev/null
+++ b/doc/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_auto_add_subdirectories()
diff --git a/doc/cs/CMakeLists.txt b/doc/cs/CMakeLists.txt
new file mode 100644
index 0000000..bf6d4a5
--- /dev/null
+++ b/doc/cs/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( LANG cs DESTINATION tdepowersave )
diff --git a/doc/de/CMakeLists.txt b/doc/de/CMakeLists.txt
new file mode 100644
index 0000000..b94a5a6
--- /dev/null
+++ b/doc/de/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( LANG de DESTINATION tdepowersave )
diff --git a/doc/en/CMakeLists.txt b/doc/en/CMakeLists.txt
new file mode 100644
index 0000000..03f6d32
--- /dev/null
+++ b/doc/en/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( LANG en DESTINATION tdepowersave )
diff --git a/doc/fi/CMakeLists.txt b/doc/fi/CMakeLists.txt
new file mode 100644
index 0000000..d1a05d6
--- /dev/null
+++ b/doc/fi/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( LANG fi DESTINATION tdepowersave )
diff --git a/doc/hu/CMakeLists.txt b/doc/hu/CMakeLists.txt
new file mode 100644
index 0000000..0526f81
--- /dev/null
+++ b/doc/hu/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( LANG hu DESTINATION tdepowersave )
diff --git a/doc/nb/CMakeLists.txt b/doc/nb/CMakeLists.txt
new file mode 100644
index 0000000..f7235d3
--- /dev/null
+++ b/doc/nb/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( LANG nb DESTINATION tdepowersave )
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
new file mode 100644
index 0000000..627eb11
--- /dev/null
+++ b/po/CMakeLists.txt
@@ -0,0 +1,17 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} tdepowersave.po )
+
+foreach( _po ${po_files} )
+ get_filename_component( _lang ${_po} PATH )
+ tde_create_translation( FILES ${_po} LANG ${_lang} )
+endforeach( )
diff --git a/src/tdepowersave.cpp b/src/tdepowersave.cpp
index cdcd4d7..d9e790b 100644
--- a/src/tdepowersave.cpp
+++ b/src/tdepowersave.cpp
@@ -215,7 +215,7 @@ void tdepowersave::initMenu() {
help_menu = new TQPopupMenu(this, i18n("&Help").ascii());
- help_menu->insertItem( SmallIcon("help", TQIconSet::Automatic), i18n("&tdepowersave Handbook"),
+ help_menu->insertItem( SmallIcon("help", TQIconSet::Automatic), i18n("&TDEPowersave Handbook"),
this, TQT_SLOT(slotHelp()));
help_menu->insertSeparator();
help_menu->insertItem( i18n("&Report a bug ..."), this, TQT_SLOT(slotReportBug()));