summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgregory guy <g-gregory@gmx.fr>2018-10-23 14:08:03 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-10-26 02:51:17 +0200
commitd27d6b7251bf275a11273235dd873a6d0cf74b5a (patch)
treeb69534c70c0be5db7f1205d46d360a8ed4260661
parent780d6591ffa0a8670ccb38a1fad237484fc782ed (diff)
downloadknetstats-d27d6b7251bf275a11273235dd873a6d0cf74b5a.tar.gz
knetstats-d27d6b7251bf275a11273235dd873a6d0cf74b5a.zip
conversion to the cmake building system
Signed-off-by: gregory guy <g-gregory@gmx.fr> (cherry picked from commit eeefa496afbc5025420f1e1c30c1b2ca59fd4353)
-rw-r--r--CMakeLists.txt76
-rw-r--r--ConfigureChecks.cmake45
-rw-r--r--config.h.cmake8
-rw-r--r--src/CMakeLists.txt15
-rw-r--r--src/doc/CMakeLists.txt1
-rw-r--r--src/doc/en/CMakeLists.txt1
-rw-r--r--src/doc/man/CMakeLists.txt5
-rw-r--r--src/doc/man/knetstats.153
-rw-r--r--src/src/CMakeLists.txt38
-rw-r--r--src/src/pics/CMakeLists.txt6
-rw-r--r--translations/CMakeLists.txt1
-rw-r--r--translations/bg/CMakeLists.txt1
-rw-r--r--translations/bg/messages/CMakeLists.txt1
-rw-r--r--translations/br/CMakeLists.txt1
-rw-r--r--translations/br/messages/CMakeLists.txt1
-rw-r--r--translations/cs/CMakeLists.txt1
-rw-r--r--translations/cs/messages/CMakeLists.txt1
-rw-r--r--translations/da/CMakeLists.txt1
-rw-r--r--translations/da/messages/CMakeLists.txt1
-rw-r--r--translations/de/CMakeLists.txt1
-rw-r--r--translations/de/messages/CMakeLists.txt1
-rw-r--r--translations/el/CMakeLists.txt1
-rw-r--r--translations/el/messages/CMakeLists.txt1
-rw-r--r--translations/es/CMakeLists.txt1
-rw-r--r--translations/es/messages/CMakeLists.txt1
-rw-r--r--translations/et/CMakeLists.txt1
-rw-r--r--translations/et/messages/CMakeLists.txt1
-rw-r--r--translations/fr/CMakeLists.txt1
-rw-r--r--translations/fr/messages/CMakeLists.txt1
-rw-r--r--translations/ga/CMakeLists.txt1
-rw-r--r--translations/ga/messages/CMakeLists.txt1
-rw-r--r--translations/gl/CMakeLists.txt1
-rw-r--r--translations/gl/messages/CMakeLists.txt1
-rw-r--r--translations/it/CMakeLists.txt1
-rw-r--r--translations/it/messages/CMakeLists.txt1
-rw-r--r--translations/ja/CMakeLists.txt1
-rw-r--r--translations/ja/messages/CMakeLists.txt1
-rw-r--r--translations/ka/CMakeLists.txt1
-rw-r--r--translations/ka/messages/CMakeLists.txt1
-rw-r--r--translations/nl/CMakeLists.txt1
-rw-r--r--translations/nl/messages/CMakeLists.txt1
-rw-r--r--translations/pl/CMakeLists.txt1
-rw-r--r--translations/pl/messages/CMakeLists.txt1
-rw-r--r--translations/pt/CMakeLists.txt1
-rw-r--r--translations/pt/messages/CMakeLists.txt1
-rw-r--r--translations/pt_BR/CMakeLists.txt1
-rw-r--r--translations/pt_BR/messages/CMakeLists.txt1
-rw-r--r--translations/ru/CMakeLists.txt1
-rw-r--r--translations/ru/messages/CMakeLists.txt1
-rw-r--r--translations/sk/CMakeLists.txt1
-rw-r--r--translations/sk/messages/CMakeLists.txt1
-rw-r--r--translations/sv/CMakeLists.txt1
-rw-r--r--translations/sv/messages/CMakeLists.txt1
-rw-r--r--translations/tr/CMakeLists.txt1
-rw-r--r--translations/tr/messages/CMakeLists.txt1
55 files changed, 293 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..00718bc
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,76 @@
+############################################
+# #
+# Improvements and feedbacks are welcome #
+# #
+# This file is released under GPL >= 3 #
+# #
+############################################
+
+
+cmake_minimum_required( VERSION 2.8 )
+
+
+#### general package setup
+
+project( knetstats )
+set( VERSION R14.1.0 )
+
+
+#### include essential cmake modules
+
+include( FindPkgConfig )
+include( CheckFunctionExists )
+include( CheckIncludeFile )
+include( CheckLibraryExists )
+include( CheckCSourceCompiles )
+include( CheckCXXSourceCompiles )
+
+
+#### include our cmake modules
+
+set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
+include( TDEMacros )
+
+
+##### setup install paths
+
+include( TDESetupPaths )
+tde_setup_paths( )
+
+
+##### optional stuff
+
+option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
+option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
+
+
+##### user requested modules
+
+option( BUILD_ALL "Build all" ON )
+option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
+option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
+
+
+##### configure checks
+
+include( ConfigureChecks.cmake )
+
+
+###### global compiler settings
+
+add_definitions( -DHAVE_CONFIG_H )
+
+set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
+set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
+set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
+
+
+##### directories
+
+add_subdirectory( src )
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS translations )
+
+
+##### write configure files
+
+configure_file( config.h.cmake config.h @ONLY )
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
new file mode 100644
index 0000000..7733a2a
--- /dev/null
+++ b/ConfigureChecks.cmake
@@ -0,0 +1,45 @@
+###########################################
+# #
+# Improvements and feedback are welcome #
+# #
+# This file is released under GPL >= 3 #
+# #
+###########################################
+
+
+# required stuff
+find_package( TQt )
+find_package( TDE )
+
+tde_setup_architecture_flags( )
+
+include(TestBigEndian)
+test_big_endian(WORDS_BIGENDIAN)
+
+
+##### check for gcc visibility support
+
+if( WITH_GCC_VISIBILITY )
+ if( NOT UNIX )
+ tde_message_fatal( "gcc visibility support was requested, but your system is not *NIX" )
+ endif( NOT UNIX )
+ set( __KDE_HAVE_GCC_VISIBILITY 1 )
+ set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
+ set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
+endif( WITH_GCC_VISIBILITY )
+
+
+##### gettext
+
+if( BUILD_TRANSLATIONS )
+ include( FindGettext )
+ if( GETTEXT_FOUND )
+ set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE}
+ CACHE FILEPATH "path to msgfmt executable" )
+ endif( GETTEXT_FOUND )
+
+ if( NOT MSGFMT_EXECUTABLE )
+ tde_message_fatal( "msgfmt is required but was not found on your system." )
+ endif( NOT MSGFMT_EXECUTABLE )
+endif( BUILD_TRANSLATIONS )
+
diff --git a/config.h.cmake b/config.h.cmake
new file mode 100644
index 0000000..61ede3a
--- /dev/null
+++ b/config.h.cmake
@@ -0,0 +1,8 @@
+#define VERSION "@VERSION@"
+
+// Defined if you have fvisibility and fvisibility-inlines-hidden support.
+#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
+
+/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
+ significant byte first (like Motorola and SPARC, unlike Intel). */
+#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..93766be
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,15 @@
+add_subdirectory( src )
+tde_conditional_add_subdirectory( BUILD_DOC doc )
+
+
+##### icons
+
+tde_install_icons( ${PROJECT_NAME} )
+
+
+##### other data
+
+install(
+ FILES ${PROJECT_NAME}.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
diff --git a/src/doc/CMakeLists.txt b/src/doc/CMakeLists.txt
new file mode 100644
index 0000000..6d0aa9f
--- /dev/null
+++ b/src/doc/CMakeLists.txt
@@ -0,0 +1 @@
+tde_auto_add_subdirectories( )
diff --git a/src/doc/en/CMakeLists.txt b/src/doc/en/CMakeLists.txt
new file mode 100644
index 0000000..ba3ef3e
--- /dev/null
+++ b/src/doc/en/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_handbook( DESTINATION ${PROJECT_NAME} )
diff --git a/src/doc/man/CMakeLists.txt b/src/doc/man/CMakeLists.txt
new file mode 100644
index 0000000..8512250
--- /dev/null
+++ b/src/doc/man/CMakeLists.txt
@@ -0,0 +1,5 @@
+INSTALL(
+ FILES ${PROJECT_NAME}.1
+ DESTINATION ${MAN_INSTALL_DIR}/man1
+ COMPONENT doc
+)
diff --git a/src/doc/man/knetstats.1 b/src/doc/man/knetstats.1
new file mode 100644
index 0000000..7197c48
--- /dev/null
+++ b/src/doc/man/knetstats.1
@@ -0,0 +1,53 @@
+'\" -*- coding: us-ascii -*-
+.if \n(.g .ds T< \\FC
+.if \n(.g .ds T> \\F[\n[.fam]]
+.de URL
+\\$2 \(la\\$1\(ra\\$3
+..
+.if \n(.g .mso www.tmac
+.TH knetstats 1 "16 Oct 2005" "" ""
+.SH NAME
+knetstats \- A system tray icon, which indicates network activity
+.SH SYNOPSIS
+'nh
+.fi
+.ad l
+\fBknetstats\fR \kx
+.if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
+'in \n(.iu+\nxu
+[\fB--help \fIPrint options to console.\fB\fR]
+'in \n(.iu-\nxu
+.ad b
+'hy
+.SH DESCRIPTION
+This manual page documents briefly the
+\fBknetstats\fR
+commands.
+.PP
+This manual page was written for the Debian distribution.
+Instead, it has documentation in the GNU
+Info format; see below.
+.PP
+\fBknetstats\fR is a program that provides a system tray icon. This icon provides two
+LED's, which begin to blink if there is network traffic.
+.SH OPTIONS
+These programs follow the usual GNU command line syntax,
+with long options starting with two dashes (`-'). A summary of
+options is included below. For a complete description, see the
+Info files.
+.TP
+\*(T<\fB\-h\fR\*(T> \*(T<\fB\-\-help\fR\*(T>
+Show summary of options.
+.TP
+\*(T<\fB\-v\fR\*(T> \*(T<\fB\-\-version\fR\*(T>
+Show version of program.
+.SH "SEE ALSO"
+.SH AUTHOR
+This manual page was written by windheus <\*(T<thomas@0x5c.net\*(T>> for
+the Debian system (but may be used by others). Permission is
+granted to copy, distribute and/or modify this document under
+the terms of the GNU General Public License, Version 2 any
+later version published by the Free Software Foundation.
+.PP
+On Debian systems, the complete text of the GNU General Public
+License can be found in /usr/share/common-licenses/GPL.
diff --git a/src/src/CMakeLists.txt b/src/src/CMakeLists.txt
new file mode 100644
index 0000000..4b74eac
--- /dev/null
+++ b/src/src/CMakeLists.txt
@@ -0,0 +1,38 @@
+add_subdirectory( pics )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### knetstats (executable)
+
+tde_add_executable( ${PROJECT_NAME} AUTOMOC
+
+ SOURCES
+ configurebase.ui
+ configure.cpp
+ statisticsbase.ui
+ main.cpp
+ knetstats.cpp
+ knetstatsview.cpp
+ statistics.cpp
+ chart.cpp
+ interface.cpp
+ LINK
+ tdecore-shared
+ tdeui-shared
+ tdeio-shared
+ tdeui-shared
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/src/src/pics/CMakeLists.txt b/src/src/pics/CMakeLists.txt
new file mode 100644
index 0000000..e7d1781
--- /dev/null
+++ b/src/src/pics/CMakeLists.txt
@@ -0,0 +1,6 @@
+file( GLOB _pics RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.png )
+
+install(
+ FILES ${_pics}
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/pics
+)
diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt
new file mode 100644
index 0000000..6d0aa9f
--- /dev/null
+++ b/translations/CMakeLists.txt
@@ -0,0 +1 @@
+tde_auto_add_subdirectories( )
diff --git a/translations/bg/CMakeLists.txt b/translations/bg/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/bg/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/bg/messages/CMakeLists.txt b/translations/bg/messages/CMakeLists.txt
new file mode 100644
index 0000000..4902d61
--- /dev/null
+++ b/translations/bg/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG bg )
diff --git a/translations/br/CMakeLists.txt b/translations/br/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/br/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/br/messages/CMakeLists.txt b/translations/br/messages/CMakeLists.txt
new file mode 100644
index 0000000..cd1ca2d
--- /dev/null
+++ b/translations/br/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG br )
diff --git a/translations/cs/CMakeLists.txt b/translations/cs/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/cs/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/cs/messages/CMakeLists.txt b/translations/cs/messages/CMakeLists.txt
new file mode 100644
index 0000000..a0791b0
--- /dev/null
+++ b/translations/cs/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG cs )
diff --git a/translations/da/CMakeLists.txt b/translations/da/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/da/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/da/messages/CMakeLists.txt b/translations/da/messages/CMakeLists.txt
new file mode 100644
index 0000000..aae4d18
--- /dev/null
+++ b/translations/da/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG da )
diff --git a/translations/de/CMakeLists.txt b/translations/de/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/de/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/de/messages/CMakeLists.txt b/translations/de/messages/CMakeLists.txt
new file mode 100644
index 0000000..5770e14
--- /dev/null
+++ b/translations/de/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG de )
diff --git a/translations/el/CMakeLists.txt b/translations/el/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/el/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/el/messages/CMakeLists.txt b/translations/el/messages/CMakeLists.txt
new file mode 100644
index 0000000..d1ba21b
--- /dev/null
+++ b/translations/el/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG el )
diff --git a/translations/es/CMakeLists.txt b/translations/es/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/es/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/es/messages/CMakeLists.txt b/translations/es/messages/CMakeLists.txt
new file mode 100644
index 0000000..041b7a3
--- /dev/null
+++ b/translations/es/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG es )
diff --git a/translations/et/CMakeLists.txt b/translations/et/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/et/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/et/messages/CMakeLists.txt b/translations/et/messages/CMakeLists.txt
new file mode 100644
index 0000000..8128397
--- /dev/null
+++ b/translations/et/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG et )
diff --git a/translations/fr/CMakeLists.txt b/translations/fr/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/fr/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/fr/messages/CMakeLists.txt b/translations/fr/messages/CMakeLists.txt
new file mode 100644
index 0000000..f7eefec
--- /dev/null
+++ b/translations/fr/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG fr )
diff --git a/translations/ga/CMakeLists.txt b/translations/ga/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/ga/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/ga/messages/CMakeLists.txt b/translations/ga/messages/CMakeLists.txt
new file mode 100644
index 0000000..02707f7
--- /dev/null
+++ b/translations/ga/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG ga )
diff --git a/translations/gl/CMakeLists.txt b/translations/gl/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/gl/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/gl/messages/CMakeLists.txt b/translations/gl/messages/CMakeLists.txt
new file mode 100644
index 0000000..c94a35a
--- /dev/null
+++ b/translations/gl/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG gl )
diff --git a/translations/it/CMakeLists.txt b/translations/it/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/it/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/it/messages/CMakeLists.txt b/translations/it/messages/CMakeLists.txt
new file mode 100644
index 0000000..c54b21c
--- /dev/null
+++ b/translations/it/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG it )
diff --git a/translations/ja/CMakeLists.txt b/translations/ja/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/ja/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/ja/messages/CMakeLists.txt b/translations/ja/messages/CMakeLists.txt
new file mode 100644
index 0000000..a88a684
--- /dev/null
+++ b/translations/ja/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG ja )
diff --git a/translations/ka/CMakeLists.txt b/translations/ka/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/ka/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/ka/messages/CMakeLists.txt b/translations/ka/messages/CMakeLists.txt
new file mode 100644
index 0000000..a94e633
--- /dev/null
+++ b/translations/ka/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG ka )
diff --git a/translations/nl/CMakeLists.txt b/translations/nl/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/nl/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/nl/messages/CMakeLists.txt b/translations/nl/messages/CMakeLists.txt
new file mode 100644
index 0000000..66088c7
--- /dev/null
+++ b/translations/nl/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG nl )
diff --git a/translations/pl/CMakeLists.txt b/translations/pl/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/pl/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/pl/messages/CMakeLists.txt b/translations/pl/messages/CMakeLists.txt
new file mode 100644
index 0000000..ca58df4
--- /dev/null
+++ b/translations/pl/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG pl )
diff --git a/translations/pt/CMakeLists.txt b/translations/pt/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/pt/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/pt/messages/CMakeLists.txt b/translations/pt/messages/CMakeLists.txt
new file mode 100644
index 0000000..1001c25
--- /dev/null
+++ b/translations/pt/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG pt )
diff --git a/translations/pt_BR/CMakeLists.txt b/translations/pt_BR/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/pt_BR/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/pt_BR/messages/CMakeLists.txt b/translations/pt_BR/messages/CMakeLists.txt
new file mode 100644
index 0000000..91fae60
--- /dev/null
+++ b/translations/pt_BR/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG pt_BR )
diff --git a/translations/ru/CMakeLists.txt b/translations/ru/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/ru/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/ru/messages/CMakeLists.txt b/translations/ru/messages/CMakeLists.txt
new file mode 100644
index 0000000..ec8f0d0
--- /dev/null
+++ b/translations/ru/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG ru )
diff --git a/translations/sk/CMakeLists.txt b/translations/sk/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/sk/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/sk/messages/CMakeLists.txt b/translations/sk/messages/CMakeLists.txt
new file mode 100644
index 0000000..f010fa6
--- /dev/null
+++ b/translations/sk/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG sk )
diff --git a/translations/sv/CMakeLists.txt b/translations/sv/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/sv/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/sv/messages/CMakeLists.txt b/translations/sv/messages/CMakeLists.txt
new file mode 100644
index 0000000..c26f445
--- /dev/null
+++ b/translations/sv/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG sv )
diff --git a/translations/tr/CMakeLists.txt b/translations/tr/CMakeLists.txt
new file mode 100644
index 0000000..9c11aea
--- /dev/null
+++ b/translations/tr/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( messages )
diff --git a/translations/tr/messages/CMakeLists.txt b/translations/tr/messages/CMakeLists.txt
new file mode 100644
index 0000000..b968c8e
--- /dev/null
+++ b/translations/tr/messages/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_translation( LANG tr )