summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2016-02-25 06:23:55 +0300
committerSlávek Banko <slavek.banko@axis.cz>2016-03-14 23:04:06 +0100
commitc70db62d3671e524d23ac974d296eb218159b000 (patch)
tree08d8ed5d0c7c170a7940bcbb80989b99ead98447
parent133cc7035dbdcaf812d8370f729530fa60547f92 (diff)
downloadtdegames-c70db62d3671e524d23ac974d296eb218159b000.tar.gz
tdegames-c70db62d3671e524d23ac974d296eb218159b000.zip
Initial cmake conversion
-rw-r--r--CMakeLists.txt156
-rw-r--r--ConfigureChecks.cmake63
-rw-r--r--atlantik/CMakeLists.txt19
-rw-r--r--atlantik/atlanticd/CMakeLists.txt32
-rw-r--r--atlantik/client/CMakeLists.txt38
-rw-r--r--atlantik/libatlantic/CMakeLists.txt41
-rw-r--r--atlantik/libatlantikclient/CMakeLists.txt34
-rw-r--r--atlantik/libatlantikui/CMakeLists.txt34
-rw-r--r--atlantik/pics/CMakeLists.txt10
-rw-r--r--atlantik/pics/board/CMakeLists.txt5
-rw-r--r--atlantik/pics/misc/CMakeLists.txt12
-rw-r--r--atlantik/pics/toolbar/CMakeLists.txt12
-rw-r--r--atlantik/tdeio_atlantik/CMakeLists.txt39
-rw-r--r--atlantik/themes/CMakeLists.txt3
-rw-r--r--atlantik/themes/default/CMakeLists.txt3
-rw-r--r--atlantik/themes/default/tokens/CMakeLists.txt7
-rw-r--r--config.h.cmake30
-rw-r--r--doc/CMakeLists.txt3
-rw-r--r--doc/atlantik/CMakeLists.txt3
-rw-r--r--doc/kasteroids/CMakeLists.txt3
-rw-r--r--doc/katomic/CMakeLists.txt3
-rw-r--r--doc/kbackgammon/CMakeLists.txt3
-rw-r--r--doc/kbattleship/CMakeLists.txt3
-rw-r--r--doc/kblackbox/CMakeLists.txt3
-rw-r--r--doc/kbounce/CMakeLists.txt3
-rw-r--r--doc/kenolaba/CMakeLists.txt3
-rw-r--r--doc/kfouleggs/CMakeLists.txt3
-rw-r--r--doc/kgoldrunner/CMakeLists.txt3
-rw-r--r--doc/kjumpingcube/CMakeLists.txt3
-rw-r--r--doc/klickety/CMakeLists.txt3
-rw-r--r--doc/klines/CMakeLists.txt3
-rw-r--r--doc/kmahjongg/CMakeLists.txt3
-rw-r--r--doc/kmines/CMakeLists.txt3
-rw-r--r--doc/kolf/CMakeLists.txt3
-rw-r--r--doc/konquest/CMakeLists.txt3
-rw-r--r--doc/kpat/CMakeLists.txt3
-rw-r--r--doc/kpoker/CMakeLists.txt3
-rw-r--r--doc/kreversi/CMakeLists.txt3
-rw-r--r--doc/ksame/CMakeLists.txt3
-rw-r--r--doc/kshisen/CMakeLists.txt3
-rw-r--r--doc/ksirtet/CMakeLists.txt3
-rw-r--r--doc/ksmiletris/CMakeLists.txt3
-rw-r--r--doc/ksnake/CMakeLists.txt3
-rw-r--r--doc/ksokoban/CMakeLists.txt3
-rw-r--r--doc/kspaceduel/CMakeLists.txt3
-rw-r--r--doc/ktron/CMakeLists.txt3
-rw-r--r--doc/ktuberling/CMakeLists.txt3
-rw-r--r--doc/lskat/CMakeLists.txt3
-rw-r--r--doc/twin4/CMakeLists.txt3
-rw-r--r--kasteroids/CMakeLists.txt50
-rw-r--r--kasteroids/sounds/CMakeLists.txt5
-rw-r--r--kasteroids/sprites/CMakeLists.txt22
-rw-r--r--kasteroids/sprites/bits/CMakeLists.txt18
-rw-r--r--kasteroids/sprites/exhaust/CMakeLists.txt3
-rw-r--r--kasteroids/sprites/missile/CMakeLists.txt3
-rw-r--r--kasteroids/sprites/powerups/CMakeLists.txt7
-rw-r--r--kasteroids/sprites/rock1/CMakeLists.txt34
-rw-r--r--kasteroids/sprites/rock2/CMakeLists.txt34
-rw-r--r--kasteroids/sprites/rock3/CMakeLists.txt34
-rw-r--r--kasteroids/sprites/shield/CMakeLists.txt9
-rw-r--r--kasteroids/sprites/ship/CMakeLists.txt66
-rw-r--r--katomic/CMakeLists.txt57
-rw-r--r--katomic/molek.cpp5
-rw-r--r--kbackgammon/CMakeLists.txt50
-rw-r--r--kbackgammon/engines/CMakeLists.txt39
-rw-r--r--kbackgammon/engines/fibs/CMakeLists.txt23
-rw-r--r--kbackgammon/engines/generic/CMakeLists.txt21
-rw-r--r--kbackgammon/engines/gnubg/CMakeLists.txt22
-rw-r--r--kbackgammon/engines/nextgen/CMakeLists.txt23
-rw-r--r--kbackgammon/engines/offline/CMakeLists.txt22
-rw-r--r--kbackgammon/icons/CMakeLists.txt4
-rw-r--r--kbackgammon/pics/CMakeLists.txt5
-rw-r--r--kbackgammon/sounds/CMakeLists.txt6
-rw-r--r--kbattleship/CMakeLists.txt3
-rw-r--r--kbattleship/kbattleship/CMakeLists.txt59
-rw-r--r--kbattleship/kbattleship/dialogs/CMakeLists.txt30
-rw-r--r--kbattleship/kbattleship/pictures/CMakeLists.txt13
-rw-r--r--kbattleship/kbattleship/sounds/CMakeLists.txt6
-rw-r--r--kblackbox/CMakeLists.txt40
-rw-r--r--kblackbox/pics/CMakeLists.txt6
-rw-r--r--kbounce/CMakeLists.txt53
-rw-r--r--kbounce/pics/CMakeLists.txt14
-rw-r--r--kbounce/sounds/CMakeLists.txt6
-rw-r--r--kenolaba/CMakeLists.txt42
-rw-r--r--kenolaba/Network.cpp2
-rw-r--r--kenolaba/bitmaps/CMakeLists.txt1
-rw-r--r--kenolaba/toolbar/CMakeLists.txt7
-rw-r--r--kfouleggs/CMakeLists.txt58
-rw-r--r--kfouleggs/pics/CMakeLists.txt4
-rw-r--r--kgoldrunner/CMakeLists.txt4
-rw-r--r--kgoldrunner/gamedata/CMakeLists.txt24
-rw-r--r--kgoldrunner/src/CMakeLists.txt52
-rw-r--r--kjumpingcube/CMakeLists.txt44
-rw-r--r--klickety/CMakeLists.txt52
-rw-r--r--klickety/pics/CMakeLists.txt4
-rw-r--r--klines/CMakeLists.txt49
-rw-r--r--kmahjongg/CMakeLists.txt47
-rw-r--r--kmahjongg/pics/CMakeLists.txt23
-rw-r--r--kmines/CMakeLists.txt45
-rw-r--r--kmines/bitmaps/CMakeLists.txt1
-rw-r--r--kmines/data/CMakeLists.txt14
-rw-r--r--kmines/solver/CMakeLists.txt77
-rw-r--r--knetwalk/CMakeLists.txt3
-rw-r--r--knetwalk/src/CMakeLists.txt43
-rw-r--r--knetwalk/src/pics/CMakeLists.txt13
-rw-r--r--knetwalk/src/sounds/CMakeLists.txt5
-rw-r--r--kolf/CMakeLists.txt86
-rw-r--r--kolf/courses/CMakeLists.txt6
-rw-r--r--kolf/graphics/CMakeLists.txt5
-rw-r--r--kolf/objects/CMakeLists.txt1
-rw-r--r--kolf/objects/poolball/CMakeLists.txt29
-rw-r--r--kolf/objects/test/CMakeLists.txt29
-rw-r--r--kolf/pics/CMakeLists.txt4
-rw-r--r--kolf/sounds/CMakeLists.txt6
-rw-r--r--konquest/CMakeLists.txt43
-rw-r--r--konquest/pics/CMakeLists.txt7
-rw-r--r--kpat/CMakeLists.txt54
-rw-r--r--kpat/freecell-solver/CMakeLists.txt27
-rw-r--r--kpat/freecell.cpp2
-rw-r--r--kpat/golf.cpp2
-rw-r--r--kpat/icons/CMakeLists.txt4
-rw-r--r--kpat/mod3.cpp2
-rw-r--r--kpoker/CMakeLists.txt42
-rw-r--r--kpoker/sounds/CMakeLists.txt5
-rw-r--r--kreversi/CMakeLists.txt45
-rw-r--r--kreversi/icons/CMakeLists.txt4
-rw-r--r--kreversi/pics/CMakeLists.txt9
-rw-r--r--kreversi/pics/background/CMakeLists.txt6
-rw-r--r--kreversi/sounds/CMakeLists.txt9
-rw-r--r--ksame/CMakeLists.txt40
-rw-r--r--kshisen/CMakeLists.txt46
-rw-r--r--kshisen/pics/CMakeLists.txt5
-rw-r--r--ksirtet/CMakeLists.txt3
-rw-r--r--ksirtet/ksirtet/CMakeLists.txt75
-rw-r--r--ksmiletris/CMakeLists.txt44
-rw-r--r--ksmiletris/data/CMakeLists.txt12
-rw-r--r--ksmiletris/wav/CMakeLists.txt5
-rw-r--r--ksnake/CMakeLists.txt48
-rw-r--r--ksnake/data/CMakeLists.txt11
-rw-r--r--ksnake/data/backgrounds/CMakeLists.txt6
-rw-r--r--ksnake/data/levels/CMakeLists.txt7
-rw-r--r--ksnake/data/pixmaps/CMakeLists.txt5
-rw-r--r--ksokoban/CMakeLists.txt41
-rw-r--r--ksokoban/data/CMakeLists.txt10
-rw-r--r--ksokoban/images/CMakeLists.txt43
-rw-r--r--ksokoban/levels/CMakeLists.txt23
-rw-r--r--kspaceduel/CMakeLists.txt47
-rw-r--r--kspaceduel/pics/CMakeLists.txt12
-rw-r--r--kspaceduel/sprites/CMakeLists.txt14
-rw-r--r--kspaceduel/sprites/explosion/CMakeLists.txt21
-rw-r--r--kspaceduel/sprites/playerinfo/CMakeLists.txt6
-rw-r--r--kspaceduel/sprites/powerups/CMakeLists.txt6
-rw-r--r--kspaceduel/sprites/ship1/CMakeLists.txt24
-rw-r--r--kspaceduel/sprites/ship2/CMakeLists.txt24
-rw-r--r--kspaceduel/sprites/sun/CMakeLists.txt5
-rw-r--r--ktron/CMakeLists.txt41
-rw-r--r--ktron/pics/CMakeLists.txt4
-rw-r--r--ktuberling/CMakeLists.txt49
-rw-r--r--ktuberling/museum/CMakeLists.txt9
-rw-r--r--ktuberling/pics/CMakeLists.txt6
-rw-r--r--ktuberling/sounds/CMakeLists.txt7
-rw-r--r--libksirtet/CMakeLists.txt5
-rw-r--r--libksirtet/base/CMakeLists.txt23
-rw-r--r--libksirtet/common/CMakeLists.txt36
-rw-r--r--libksirtet/lib/CMakeLists.txt34
-rw-r--r--libtdegames/CMakeLists.txt56
-rw-r--r--libtdegames/carddecks/CMakeLists.txt17
-rw-r--r--libtdegames/highscore/CMakeLists.txt40
-rw-r--r--libtdegames/kgame/CMakeLists.txt48
-rw-r--r--libtdegames/kgame/dialogs/CMakeLists.txt30
-rw-r--r--libtdegames/pics/CMakeLists.txt9
-rw-r--r--lskat/CMakeLists.txt16
-rw-r--r--lskat/grafix/CMakeLists.txt6
-rw-r--r--lskat/lskat/CMakeLists.txt34
-rw-r--r--lskat/lskat/KRSocket.cpp12
-rw-r--r--lskat/lskatproc/CMakeLists.txt23
-rw-r--r--lskat/lskatproc/docs/CMakeLists.txt1
-rw-r--r--lskat/lskatproc/docs/en/CMakeLists.txt1
-rw-r--r--twin4/CMakeLists.txt15
-rw-r--r--twin4/grafix/CMakeLists.txt15
-rw-r--r--twin4/twin4/CMakeLists.txt46
181 files changed, 3623 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 00000000..26f2341b
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,156 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+cmake_minimum_required( VERSION 2.8 )
+
+
+##### general package setup #####################
+
+project( tdegames )
+set( VERSION R14.1.0 )
+
+
+##### include essential cmake modules ###########
+
+include( FindPkgConfig )
+include( CheckIncludeFile )
+include( CheckLibraryExists )
+include( CheckSymbolExists )
+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_ARTS "Enable aRts support" ON )
+
+
+##### options comments ##########################
+
+# WITH_ARTS affects kbounce
+# if disabled the game will have no sound
+# NOTE: ARTS is unconditionally required to build kolf and kasteroids
+
+##### user requested modules ####################
+
+option( BUILD_ALL "Build all" OFF )
+
+option( BUILD_ATLANTIK "Build atlantik" ${BUILD_ALL} )
+option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
+option( BUILD_KASTEROIDS "Build kasteroids" ${BUILD_ALL} )
+option( BUILD_KATOMIC "Build katomic" ${BUILD_ALL} )
+option( BUILD_KBACKGAMMON "Build kbackgammon" ${BUILD_ALL} )
+option( BUILD_KBATTLESHIP "Build kbattleship" ${BUILD_ALL} )
+option( BUILD_KBLACKBOX "Build kblackbox" ${BUILD_ALL} )
+option( BUILD_KBOUNCE "Build kbounce" ${BUILD_ALL} )
+option( BUILD_KENOLABA "Build kenolaba" ${BUILD_ALL} )
+option( BUILD_KFOULEGGS "Build kfouleggs" ${BUILD_ALL} )
+option( BUILD_KGOLDRUNNER "Build kgoldrunner" ${BUILD_ALL} )
+option( BUILD_KJUMPINGCUBE "Build kjumpingcube" ${BUILD_ALL} )
+option( BUILD_KLICKETY "Build klickety" ${BUILD_ALL} )
+option( BUILD_KLINES "Build klines" ${BUILD_ALL} )
+option( BUILD_KMAHJONGG "Build kmahjongg" ${BUILD_ALL} )
+option( BUILD_KMINES "Build kmines" ${BUILD_ALL} )
+option( BUILD_KNETWALK "Build knetwalk" ${BUILD_ALL} )
+option( BUILD_KOLF "Build kolf" ${BUILD_ALL} )
+option( BUILD_KONQUEST "Build konquest" ${BUILD_ALL} )
+option( BUILD_KPAT "Build kpat" ${BUILD_ALL} )
+option( BUILD_KPOKER "Build kpoker" ${BUILD_ALL} )
+option( BUILD_KREVERSI "Build kreversi" ${BUILD_ALL} )
+option( BUILD_KSAME "Build ksame" ${BUILD_ALL} )
+option( BUILD_KSHISEN "Build kshisen" ${BUILD_ALL} )
+option( BUILD_KSIRTET "Build ksirtet" ${BUILD_ALL} )
+option( BUILD_KSMILETRIS "Build ksmiletris" ${BUILD_ALL} )
+option( BUILD_KSNAKE "Build ksnake" ${BUILD_ALL} )
+option( BUILD_KSOKOBAN "Build ksokoban" ${BUILD_ALL} )
+option( BUILD_KSPACEDUEL "Build kspaceduel" ${BUILD_ALL} )
+option( BUILD_KTRON "Build ktron" ${BUILD_ALL} )
+option( BUILD_KTUBERLING "Build ktuberling" ${BUILD_ALL} )
+option( BUILD_LIBTDEGAMES "Build libtdegames" ${BUILD_ALL} )
+option( BUILD_LSKAT "Build lskat" ${BUILD_ALL} )
+option( BUILD_TWIN4 "Build twin4" ${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" )
+
+if( WITH_TEST )
+ enable_testing()
+endif( WITH_TEST )
+
+##### tdeaddons directories #####################
+
+tde_conditional_add_subdirectory( BUILD_ATLANTIK atlantik )
+tde_conditional_add_subdirectory( BUILD_DOC doc )
+tde_conditional_add_subdirectory( BUILD_KASTEROIDS kasteroids )
+tde_conditional_add_subdirectory( BUILD_KATOMIC katomic )
+tde_conditional_add_subdirectory( BUILD_KBACKGAMMON kbackgammon )
+tde_conditional_add_subdirectory( BUILD_KBATTLESHIP kbattleship )
+tde_conditional_add_subdirectory( BUILD_KBLACKBOX kblackbox )
+tde_conditional_add_subdirectory( BUILD_KBOUNCE kbounce )
+tde_conditional_add_subdirectory( BUILD_KENOLABA kenolaba )
+tde_conditional_add_subdirectory( BUILD_KFOULEGGS kfouleggs )
+tde_conditional_add_subdirectory( BUILD_KGOLDRUNNER kgoldrunner )
+tde_conditional_add_subdirectory( BUILD_KJUMPINGCUBE kjumpingcube )
+tde_conditional_add_subdirectory( BUILD_KLICKETY klickety )
+tde_conditional_add_subdirectory( BUILD_KLINES klines )
+tde_conditional_add_subdirectory( BUILD_KMAHJONGG kmahjongg )
+tde_conditional_add_subdirectory( BUILD_KMINES kmines )
+tde_conditional_add_subdirectory( BUILD_KNETWALK knetwalk )
+tde_conditional_add_subdirectory( BUILD_KOLF kolf )
+tde_conditional_add_subdirectory( BUILD_KONQUEST konquest )
+tde_conditional_add_subdirectory( BUILD_KPAT kpat )
+tde_conditional_add_subdirectory( BUILD_KPOKER kpoker )
+tde_conditional_add_subdirectory( BUILD_KREVERSI kreversi )
+tde_conditional_add_subdirectory( BUILD_KSAME ksame )
+tde_conditional_add_subdirectory( BUILD_KSHISEN kshisen )
+tde_conditional_add_subdirectory( BUILD_KSIRTET ksirtet )
+tde_conditional_add_subdirectory( BUILD_KSMILETRIS ksmiletris )
+tde_conditional_add_subdirectory( BUILD_KSNAKE ksnake )
+tde_conditional_add_subdirectory( BUILD_KSOKOBAN ksokoban )
+tde_conditional_add_subdirectory( BUILD_KSPACEDUEL kspaceduel )
+tde_conditional_add_subdirectory( BUILD_KTRON ktron )
+tde_conditional_add_subdirectory( BUILD_KTUBERLING ktuberling )
+tde_conditional_add_subdirectory( BUILD_LIBTDEGAMES libtdegames )
+tde_conditional_add_subdirectory( BUILD_LSKAT lskat )
+tde_conditional_add_subdirectory( BUILD_TWIN4 twin4 )
+
+if( BUILD_KSIRTET OR BUILD_KFOULEGGS OR BUILD_KLICKETY )
+ add_subdirectory( libksirtet )
+endif( )
+
+
+##### write configure files #####################
+
+configure_file( config.h.cmake config.h @ONLY )
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
new file mode 100644
index 00000000..8420e006
--- /dev/null
+++ b/ConfigureChecks.cmake
@@ -0,0 +1,63 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+##### check for gcc visibility support #########
+# FIXME
+# This should check for [T]Qt3 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 )
+
+tde_setup_architecture_flags( )
+
+
+# arts
+if( WITH_ARTS )
+ pkg_search_module( ARTS arts )
+ if( ARTS_FOUND )
+ set( HAVE_ARTS 1 )
+ else( )
+ tde_message_fatal( "aRts is requested, but was not found on your system" )
+ endif( )
+else( WITH_ARTS )
+ if (BUILD_KASTEROIDS OR BUILD_KOLF)
+ tde_message_fatal( "aRts support is disabled, but it is required to build kasteroids and kolf" )
+ endif( )
+endif( WITH_ARTS )
+
+
+##### Other dependencies ########################
+
+check_include_file( "stropts.h" HAVE_STROPTS_H )
+check_include_file( "sys/filio.h" HAVE_SYS_FILIO_H )
+check_include_file( "sys/select.h" HAVE_SYS_SELECT_H )
+check_include_file( "sysent.h" HAVE_SYSENT_H )
+
+check_symbol_exists( usleep "unistd.h" HAVE_USLEEP )
+check_symbol_exists( strlcpy "string.h" HAVE_USLEEP )
+
+# NOTE: Borrowed from tdelibs
+# FIXME I'm not sure if test TIME_WITH_SYS_TIME are correct
+check_include_file( "sys/time.h" HAVE_SYS_TIME_H )
+check_include_file( "time.h" HAVE_TIME_H )
+if( HAVE_SYS_TIME_H AND HAVE_TIME_H )
+ set( TIME_WITH_SYS_TIME 1 )
+endif( HAVE_SYS_TIME_H AND HAVE_TIME_H )
+
+# required stuff
+find_package( TQt )
+find_package( TDE )
diff --git a/atlantik/CMakeLists.txt b/atlantik/CMakeLists.txt
new file mode 100644
index 00000000..138370db
--- /dev/null
+++ b/atlantik/CMakeLists.txt
@@ -0,0 +1,19 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( libatlantic )
+add_subdirectory( libatlantikclient )
+add_subdirectory( libatlantikui )
+add_subdirectory( client )
+add_subdirectory( tdeio_atlantik )
+add_subdirectory( pics )
+add_subdirectory( themes )
+
+##### other data ################################
+
+install( FILES atlantik.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES atlantikui.rc eventsrc
+ DESTINATION ${DATA_INSTALL_DIR}/atlantik
+)
diff --git a/atlantik/atlanticd/CMakeLists.txt b/atlantik/atlanticd/CMakeLists.txt
new file mode 100644
index 00000000..23687f54
--- /dev/null
+++ b/atlantik/atlanticd/CMakeLists.txt
@@ -0,0 +1,32 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/atlantik/libatlantic
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### atlanticd (executable) ####################
+
+tde_add_executable( atlanticd AUTOMOC
+ SOURCES atlanticclient.cpp atlanticdaemon.cpp main.cpp serversocket.cpp
+ LINK ${TQT_LIBRARIES} libatlantic-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/atlantik/client/CMakeLists.txt b/atlantik/client/CMakeLists.txt
new file mode 100644
index 00000000..10a7e79a
--- /dev/null
+++ b/atlantik/client/CMakeLists.txt
@@ -0,0 +1,38 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/atlantik/libatlantic
+ ${CMAKE_SOURCE_DIR}/atlantik/libatlantikui
+ ${CMAKE_SOURCE_DIR}/atlantik/libatlantikclient
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### atlantik (executable) #####################
+
+tde_add_executable( atlantik AUTOMOC
+ SOURCES atlantik.cpp configdlg.cpp event.cpp eventlogwidget.cpp main.cpp
+ monopigator.cpp selectconfiguration_widget.cpp selectgame_widget.cpp
+ selectserver_widget.cpp
+ LINK tdecore-shared tdeui-shared tdeio-shared atlantikui-shared
+ atlantikclient-shared tdeio-shared tdegames-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/atlantik/libatlantic/CMakeLists.txt b/atlantik/libatlantic/CMakeLists.txt
new file mode 100644
index 00000000..6fb000bb
--- /dev/null
+++ b/atlantik/libatlantic/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ atlantic_core.h auction.h configoption.h estate.h
+ estategroup.h game.h player.h trade.h libatlantic_export.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/atlantic )
+
+
+##### atlantic (shared) #########################
+
+tde_add_library( atlantic SHARED AUTOMOC
+ SOURCES atlantic_core.cpp auction.cpp configoption.cpp estate.cpp
+ estategroup.cpp game.cpp player.cpp trade.cpp
+ LINK ${TQT_LIBRARIES}
+ VERSION 3.0.2
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/atlantik/libatlantikclient/CMakeLists.txt b/atlantik/libatlantikclient/CMakeLists.txt
new file mode 100644
index 00000000..53d2a932
--- /dev/null
+++ b/atlantik/libatlantikclient/CMakeLists.txt
@@ -0,0 +1,34 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+##################################################
+
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/atlantik/libatlantic
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### atlantikclient (shared) ###################
+
+tde_add_library( atlantikclient SHARED AUTOMOC
+ SOURCES atlantik_network.cpp monopdprotocol.cpp
+ VERSION 3.0.2
+ LINK tdeio-shared atlantic-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/atlantik/libatlantikui/CMakeLists.txt b/atlantik/libatlantikui/CMakeLists.txt
new file mode 100644
index 00000000..0af2c33e
--- /dev/null
+++ b/atlantik/libatlantikui/CMakeLists.txt
@@ -0,0 +1,34 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/atlantik/libatlantic
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### atlantikui (shared) #######################
+
+tde_add_library( atlantikui SHARED AUTOMOC
+ SOURCES auction_widget.cpp board.cpp estatedetails.cpp estateview.cpp
+ kwrappedlistviewitem.cpp portfolioestate.cpp portfolioview.cpp token.cpp
+ trade_widget.cpp
+ VERSION 3.0.2
+ LINK atlantic-shared tdeio-shared tdecore-shared tdeui-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### headers ###################################
+install( FILES auction_widget.h board.h estatedetails.h estateview.h
+ kwrappedlistviewitem.h portfolioestate.h portfolioview.h token.h
+ trade_widget.h libatlantikui_export.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/atlantik/ui
+)
diff --git a/atlantik/pics/CMakeLists.txt b/atlantik/pics/CMakeLists.txt
new file mode 100644
index 00000000..787378c8
--- /dev/null
+++ b/atlantik/pics/CMakeLists.txt
@@ -0,0 +1,10 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( board )
+add_subdirectory( misc )
+add_subdirectory( toolbar )
+
+##### icons #####################################
+
+tde_install_icons( atlantik )
+
diff --git a/atlantik/pics/board/CMakeLists.txt b/atlantik/pics/board/CMakeLists.txt
new file mode 100644
index 00000000..3302333c
--- /dev/null
+++ b/atlantik/pics/board/CMakeLists.txt
@@ -0,0 +1,5 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES arrow.png qmark-blue.png qmark-red.png token.png train.png
+ DESTINATION ${DATA_INSTALL_DIR}/atlantik/pics
+)
diff --git a/atlantik/pics/misc/CMakeLists.txt b/atlantik/pics/misc/CMakeLists.txt
new file mode 100644
index 00000000..1997f767
--- /dev/null
+++ b/atlantik/pics/misc/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/atlantik/icons )
diff --git a/atlantik/pics/toolbar/CMakeLists.txt b/atlantik/pics/toolbar/CMakeLists.txt
new file mode 100644
index 00000000..1997f767
--- /dev/null
+++ b/atlantik/pics/toolbar/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/atlantik/icons )
diff --git a/atlantik/tdeio_atlantik/CMakeLists.txt b/atlantik/tdeio_atlantik/CMakeLists.txt
new file mode 100644
index 00000000..cbad7286
--- /dev/null
+++ b/atlantik/tdeio_atlantik/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/atlantik/libatlantic
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### tdeio_atlantik (kpart) ####################
+
+tde_add_kpart( tdeio_atlantik AUTOMOC
+ SOURCES tdeio_atlantik.cpp
+ LINK tdeio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES atlantik.protocol
+ DESTINATION ${SERVICES_INSTALL_DIR}
+)
diff --git a/atlantik/themes/CMakeLists.txt b/atlantik/themes/CMakeLists.txt
new file mode 100644
index 00000000..c8feaf64
--- /dev/null
+++ b/atlantik/themes/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( default )
diff --git a/atlantik/themes/default/CMakeLists.txt b/atlantik/themes/default/CMakeLists.txt
new file mode 100644
index 00000000..42733a33
--- /dev/null
+++ b/atlantik/themes/default/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( tokens )
diff --git a/atlantik/themes/default/tokens/CMakeLists.txt b/atlantik/themes/default/tokens/CMakeLists.txt
new file mode 100644
index 00000000..aa9c12d1
--- /dev/null
+++ b/atlantik/themes/default/tokens/CMakeLists.txt
@@ -0,0 +1,7 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES badge.png beachball.png bell.png bomb.png cat.png cookie.png
+ cube.png eyeball.png flag.png ghost.png globe.png hamburger.png lips.png
+ puzzle.png pyramid.png skull.png traffic_light.png wizard.png
+ DESTINATION ${DATA_INSTALL_DIR}/atlantik/themes/default/tokens
+)
diff --git a/config.h.cmake b/config.h.cmake
new file mode 100644
index 00000000..f4d5613a
--- /dev/null
+++ b/config.h.cmake
@@ -0,0 +1,30 @@
+#define VERSION "@VERSION@"
+
+// katomic
+#cmakedefine HAVE_STRLCPY 1
+
+// kbounce
+#cmakedefine HAVE_ARTS 1
+
+// kbattleship
+#cmakedefine HAVE_STROPTS_H 1
+
+// Something unknown and atiant; disabled permanently
+// HAVE_KIR
+
+// kbattleship & libksirtet
+#cmakedefine HAVE_SYS_FILIO_H 1
+
+// ksmiletris
+#cmakedefine HAVE_USLEEP 1
+
+// ksokoban
+// Permanently turned on due to required by tdelibs anyway
+#define USE_LIBZ 1
+
+// libksirtet
+#cmakedefine HAVE_SYS_SELECT_H 1
+
+// lskat
+#cmakedefine HAVE_SYSENT_H 1
+#cmakedefine TIME_WITH_SYS_TIME 1
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
new file mode 100644
index 00000000..03be0864
--- /dev/null
+++ b/doc/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+tde_auto_add_subdirectories( )
diff --git a/doc/atlantik/CMakeLists.txt b/doc/atlantik/CMakeLists.txt
new file mode 100644
index 00000000..b5c0e7b8
--- /dev/null
+++ b/doc/atlantik/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION atlantik )
+
diff --git a/doc/kasteroids/CMakeLists.txt b/doc/kasteroids/CMakeLists.txt
new file mode 100644
index 00000000..e1328403
--- /dev/null
+++ b/doc/kasteroids/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION kasteroids )
+
diff --git a/doc/katomic/CMakeLists.txt b/doc/katomic/CMakeLists.txt
new file mode 100644
index 00000000..63477712
--- /dev/null
+++ b/doc/katomic/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION katomic )
+
diff --git a/doc/kbackgammon/CMakeLists.txt b/doc/kbackgammon/CMakeLists.txt
new file mode 100644
index 00000000..3869b2d2
--- /dev/null
+++ b/doc/kbackgammon/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION kbackgammon )
+
diff --git a/doc/kbattleship/CMakeLists.txt b/doc/kbattleship/CMakeLists.txt
new file mode 100644
index 00000000..c0c3d38e
--- /dev/null
+++ b/doc/kbattleship/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION kbattleship )
+
diff --git a/doc/kblackbox/CMakeLists.txt b/doc/kblackbox/CMakeLists.txt
new file mode 100644
index 00000000..cf73815f
--- /dev/null
+++ b/doc/kblackbox/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION kblackbox )
+
diff --git a/doc/kbounce/CMakeLists.txt b/doc/kbounce/CMakeLists.txt
new file mode 100644
index 00000000..d4dc68d4
--- /dev/null
+++ b/doc/kbounce/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION kbounce )
+
diff --git a/doc/kenolaba/CMakeLists.txt b/doc/kenolaba/CMakeLists.txt
new file mode 100644
index 00000000..76a4ac16
--- /dev/null
+++ b/doc/kenolaba/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION kenolaba )
+
diff --git a/doc/kfouleggs/CMakeLists.txt b/doc/kfouleggs/CMakeLists.txt
new file mode 100644
index 00000000..488b1e44
--- /dev/null
+++ b/doc/kfouleggs/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION kfouleggs )
+
diff --git a/doc/kgoldrunner/CMakeLists.txt b/doc/kgoldrunner/CMakeLists.txt
new file mode 100644
index 00000000..71dc8eb8
--- /dev/null
+++ b/doc/kgoldrunner/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION kgoldrunner )
+
diff --git a/doc/kjumpingcube/CMakeLists.txt b/doc/kjumpingcube/CMakeLists.txt
new file mode 100644
index 00000000..8cee6ad1
--- /dev/null
+++ b/doc/kjumpingcube/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION kjumpingcube )
+
diff --git a/doc/klickety/CMakeLists.txt b/doc/klickety/CMakeLists.txt
new file mode 100644
index 00000000..e25b0883
--- /dev/null
+++ b/doc/klickety/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION klickety )
+
diff --git a/doc/klines/CMakeLists.txt b/doc/klines/CMakeLists.txt
new file mode 100644
index 00000000..4614f9bf
--- /dev/null
+++ b/doc/klines/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION klines )
+
diff --git a/doc/kmahjongg/CMakeLists.txt b/doc/kmahjongg/CMakeLists.txt
new file mode 100644
index 00000000..7f66b9ed
--- /dev/null
+++ b/doc/kmahjongg/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION kmahjongg )
+
diff --git a/doc/kmines/CMakeLists.txt b/doc/kmines/CMakeLists.txt
new file mode 100644
index 00000000..e53625ac
--- /dev/null
+++ b/doc/kmines/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION kmines )
+
diff --git a/doc/kolf/CMakeLists.txt b/doc/kolf/CMakeLists.txt
new file mode 100644
index 00000000..379365fa
--- /dev/null
+++ b/doc/kolf/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION kolf )
+
diff --git a/doc/konquest/CMakeLists.txt b/doc/konquest/CMakeLists.txt
new file mode 100644
index 00000000..1d8ed956
--- /dev/null
+++ b/doc/konquest/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION konquest )
+
diff --git a/doc/kpat/CMakeLists.txt b/doc/kpat/CMakeLists.txt
new file mode 100644
index 00000000..aeb42813
--- /dev/null
+++ b/doc/kpat/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION kpat )
+
diff --git a/doc/kpoker/CMakeLists.txt b/doc/kpoker/CMakeLists.txt
new file mode 100644
index 00000000..2dafb4b6
--- /dev/null
+++ b/doc/kpoker/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION kpoker )
+
diff --git a/doc/kreversi/CMakeLists.txt b/doc/kreversi/CMakeLists.txt
new file mode 100644
index 00000000..c0df0dce
--- /dev/null
+++ b/doc/kreversi/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION kreversi )
+
diff --git a/doc/ksame/CMakeLists.txt b/doc/ksame/CMakeLists.txt
new file mode 100644
index 00000000..2a2cae76
--- /dev/null
+++ b/doc/ksame/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION ksame )
+
diff --git a/doc/kshisen/CMakeLists.txt b/doc/kshisen/CMakeLists.txt
new file mode 100644
index 00000000..678ef3f9
--- /dev/null
+++ b/doc/kshisen/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION kshisen )
+
diff --git a/doc/ksirtet/CMakeLists.txt b/doc/ksirtet/CMakeLists.txt
new file mode 100644
index 00000000..9a8aecc6
--- /dev/null
+++ b/doc/ksirtet/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION ksirtet )
+
diff --git a/doc/ksmiletris/CMakeLists.txt b/doc/ksmiletris/CMakeLists.txt
new file mode 100644
index 00000000..8359a141
--- /dev/null
+++ b/doc/ksmiletris/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION ksmiletris )
+
diff --git a/doc/ksnake/CMakeLists.txt b/doc/ksnake/CMakeLists.txt
new file mode 100644
index 00000000..35be5dc2
--- /dev/null
+++ b/doc/ksnake/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION ksnake )
+
diff --git a/doc/ksokoban/CMakeLists.txt b/doc/ksokoban/CMakeLists.txt
new file mode 100644
index 00000000..c8be5da3
--- /dev/null
+++ b/doc/ksokoban/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION ksokoban )
+
diff --git a/doc/kspaceduel/CMakeLists.txt b/doc/kspaceduel/CMakeLists.txt
new file mode 100644
index 00000000..75c4ee60
--- /dev/null
+++ b/doc/kspaceduel/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION kspaceduel )
+
diff --git a/doc/ktron/CMakeLists.txt b/doc/ktron/CMakeLists.txt
new file mode 100644
index 00000000..3d689c1c
--- /dev/null
+++ b/doc/ktron/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION ktron )
+
diff --git a/doc/ktuberling/CMakeLists.txt b/doc/ktuberling/CMakeLists.txt
new file mode 100644
index 00000000..a7c87ae9
--- /dev/null
+++ b/doc/ktuberling/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION ktuberling )
+
diff --git a/doc/lskat/CMakeLists.txt b/doc/lskat/CMakeLists.txt
new file mode 100644
index 00000000..2d71dc26
--- /dev/null
+++ b/doc/lskat/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION lskat )
+
diff --git a/doc/twin4/CMakeLists.txt b/doc/twin4/CMakeLists.txt
new file mode 100644
index 00000000..75d9915b
--- /dev/null
+++ b/doc/twin4/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+tde_create_handbook( DESTINATION twin4 )
+
diff --git a/kasteroids/CMakeLists.txt b/kasteroids/CMakeLists.txt
new file mode 100644
index 00000000..ecdbdbb5
--- /dev/null
+++ b/kasteroids/CMakeLists.txt
@@ -0,0 +1,50 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( sprites )
+add_subdirectory( sounds )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/highscore
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kasteroids (executable) ###################
+
+tde_add_executable( kasteroids AUTOMOC
+ SOURCES main.cpp view.cpp ledmeter.cpp toplevel.cpp settings.kcfgc
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( kasteroids )
+
+
+##### other data ################################
+install( FILES kasteroids.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES kasteroidsui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kasteroids
+)
+
+install( FILES kasteroids.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)
+
+install( FILES bg.png
+ DESTINATION ${DATA_INSTALL_DIR}/kasteroids/sprites
+)
diff --git a/kasteroids/sounds/CMakeLists.txt b/kasteroids/sounds/CMakeLists.txt
new file mode 100644
index 00000000..c0a7d768
--- /dev/null
+++ b/kasteroids/sounds/CMakeLists.txt
@@ -0,0 +1,5 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES Explosion.wav
+ DESTINATION ${DATA_INSTALL_DIR}/kasteroids/sounds
+)
diff --git a/kasteroids/sprites/CMakeLists.txt b/kasteroids/sprites/CMakeLists.txt
new file mode 100644
index 00000000..e0a2fc60
--- /dev/null
+++ b/kasteroids/sprites/CMakeLists.txt
@@ -0,0 +1,22 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+set ( KASTEROID_SPRITES_DIR ${DATA_INSTALL_DIR}/kasteroids/sprites )
+
+add_subdirectory( bits )
+add_subdirectory( missile )
+add_subdirectory( rock1 )
+add_subdirectory( rock2 )
+add_subdirectory( rock3 )
+add_subdirectory( ship )
+add_subdirectory( shield )
+add_subdirectory( powerups )
+add_subdirectory( exhaust )
diff --git a/kasteroids/sprites/bits/CMakeLists.txt b/kasteroids/sprites/bits/CMakeLists.txt
new file mode 100644
index 00000000..61df8b30
--- /dev/null
+++ b/kasteroids/sprites/bits/CMakeLists.txt
@@ -0,0 +1,18 @@
+install (FILES
+bits0000.png
+bits0001.png
+bits0002.png
+bits0003.png
+bits0004.png
+bits0005.png
+bits0006.png
+bits0007.png
+bits0008.png
+bits0009.png
+bits0010.png
+bits0011.png
+bits0012.png
+bits0013.png
+bits0014.png
+bits0015.png
+DESTINATION ${KASTEROID_SPRITES_DIR}/bits )
diff --git a/kasteroids/sprites/exhaust/CMakeLists.txt b/kasteroids/sprites/exhaust/CMakeLists.txt
new file mode 100644
index 00000000..fabe134e
--- /dev/null
+++ b/kasteroids/sprites/exhaust/CMakeLists.txt
@@ -0,0 +1,3 @@
+install (FILES
+exhaust.png
+DESTINATION ${KASTEROID_SPRITES_DIR}/exhaust )
diff --git a/kasteroids/sprites/missile/CMakeLists.txt b/kasteroids/sprites/missile/CMakeLists.txt
new file mode 100644
index 00000000..5791fcef
--- /dev/null
+++ b/kasteroids/sprites/missile/CMakeLists.txt
@@ -0,0 +1,3 @@
+install (FILES
+missile.png
+DESTINATION ${KASTEROID_SPRITES_DIR}/missile )
diff --git a/kasteroids/sprites/powerups/CMakeLists.txt b/kasteroids/sprites/powerups/CMakeLists.txt
new file mode 100644
index 00000000..b8acaaa9
--- /dev/null
+++ b/kasteroids/sprites/powerups/CMakeLists.txt
@@ -0,0 +1,7 @@
+install (FILES
+brake.png
+energy.png
+shield.png
+shoot.png
+teleport.png
+DESTINATION ${KASTEROID_SPRITES_DIR}/powerups )
diff --git a/kasteroids/sprites/rock1/CMakeLists.txt b/kasteroids/sprites/rock1/CMakeLists.txt
new file mode 100644
index 00000000..3b482894
--- /dev/null
+++ b/kasteroids/sprites/rock1/CMakeLists.txt
@@ -0,0 +1,34 @@
+install (FILES
+rock10000.png
+rock10001.png
+rock10002.png
+rock10003.png
+rock10004.png
+rock10005.png
+rock10006.png
+rock10007.png
+rock10008.png
+rock10009.png
+rock10010.png
+rock10011.png
+rock10012.png
+rock10013.png
+rock10014.png
+rock10015.png
+rock10016.png
+rock10017.png
+rock10018.png
+rock10019.png
+rock10020.png
+rock10021.png
+rock10022.png
+rock10023.png
+rock10024.png
+rock10025.png
+rock10026.png
+rock10027.png
+rock10028.png
+rock10029.png
+rock10030.png
+rock10031.png
+DESTINATION ${KASTEROID_SPRITES_DIR}/rock1 )
diff --git a/kasteroids/sprites/rock2/CMakeLists.txt b/kasteroids/sprites/rock2/CMakeLists.txt
new file mode 100644
index 00000000..0667bbf2
--- /dev/null
+++ b/kasteroids/sprites/rock2/CMakeLists.txt
@@ -0,0 +1,34 @@
+install (FILES
+rock20000.png
+rock20001.png
+rock20002.png
+rock20003.png
+rock20004.png
+rock20005.png
+rock20006.png
+rock20007.png
+rock20008.png
+rock20009.png
+rock20010.png
+rock20011.png
+rock20012.png
+rock20013.png
+rock20014.png
+rock20015.png
+rock20016.png
+rock20017.png
+rock20018.png
+rock20019.png
+rock20020.png
+rock20021.png
+rock20022.png
+rock20023.png
+rock20024.png
+rock20025.png
+rock20026.png
+rock20027.png
+rock20028.png
+rock20029.png
+rock20030.png
+rock20031.png
+DESTINATION ${KASTEROID_SPRITES_DIR}/rock2 )
diff --git a/kasteroids/sprites/rock3/CMakeLists.txt b/kasteroids/sprites/rock3/CMakeLists.txt
new file mode 100644
index 00000000..213c6fe5
--- /dev/null
+++ b/kasteroids/sprites/rock3/CMakeLists.txt
@@ -0,0 +1,34 @@
+install (FILES
+rock30000.png
+rock30001.png
+rock30002.png
+rock30003.png
+rock30004.png
+rock30005.png
+rock30006.png
+rock30007.png
+rock30008.png
+rock30009.png
+rock30010.png
+rock30011.png
+rock30012.png
+rock30013.png
+rock30014.png
+rock30015.png
+rock30016.png
+rock30017.png
+rock30018.png
+rock30019.png
+rock30020.png
+rock30021.png
+rock30022.png
+rock30023.png
+rock30024.png
+rock30025.png
+rock30026.png
+rock30027.png
+rock30028.png
+rock30029.png
+rock30030.png
+rock30031.png
+DESTINATION ${KASTEROID_SPRITES_DIR}/rock3 )
diff --git a/kasteroids/sprites/shield/CMakeLists.txt b/kasteroids/sprites/shield/CMakeLists.txt
new file mode 100644
index 00000000..23b02165
--- /dev/null
+++ b/kasteroids/sprites/shield/CMakeLists.txt
@@ -0,0 +1,9 @@
+install (FILES
+shield0000.png
+shield0001.png
+shield0002.png
+shield0003.png
+shield0004.png
+shield0005.png
+shield0006.png
+DESTINATION ${KASTEROID_SPRITES_DIR}/shield )
diff --git a/kasteroids/sprites/ship/CMakeLists.txt b/kasteroids/sprites/ship/CMakeLists.txt
new file mode 100644
index 00000000..81153bc5
--- /dev/null
+++ b/kasteroids/sprites/ship/CMakeLists.txt
@@ -0,0 +1,66 @@
+install (FILES
+ship0000.png
+ship0001.png
+ship0002.png
+ship0003.png
+ship0004.png
+ship0005.png
+ship0006.png
+ship0007.png
+ship0008.png
+ship0009.png
+ship0010.png
+ship0011.png
+ship0012.png
+ship0013.png
+ship0014.png
+ship0015.png
+ship0016.png
+ship0017.png
+ship0018.png
+ship0019.png
+ship0020.png
+ship0021.png
+ship0022.png
+ship0023.png
+ship0024.png
+ship0025.png
+ship0026.png
+ship0027.png
+ship0028.png
+ship0029.png
+ship0030.png
+ship0031.png
+ship0032.png
+ship0033.png
+ship0034.png
+ship0035.png
+ship0036.png
+ship0037.png
+ship0038.png
+ship0039.png
+ship0040.png
+ship0041.png
+ship0042.png
+ship0043.png
+ship0044.png
+ship0045.png
+ship0046.png
+ship0047.png
+ship0048.png
+ship0049.png
+ship0050.png
+ship0051.png
+ship0052.png
+ship0053.png
+ship0054.png
+ship0055.png
+ship0056.png
+ship0057.png
+ship0058.png
+ship0059.png
+ship0060.png
+ship0061.png
+ship0062.png
+ship0063.png
+DESTINATION ${KASTEROID_SPRITES_DIR}/ship )
diff --git a/katomic/CMakeLists.txt b/katomic/CMakeLists.txt
new file mode 100644
index 00000000..61988b67
--- /dev/null
+++ b/katomic/CMakeLists.txt
@@ -0,0 +1,57 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/highscore
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### katomic (executable) ######################
+
+tde_add_executable( katomic AUTOMOC
+ SOURCES feld.cpp molek.cpp main.cpp toplevel.cpp configbox.cpp gamewidget.cpp
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( katomic )
+
+
+##### other data ################################
+
+install( DIRECTORY levels
+ DESTINATION ${DATA_INSTALL_DIR}/katomic
+)
+
+install( FILES abilder.png molek.png
+ DESTINATION ${DATA_INSTALL_DIR}/katomic/pics
+)
+
+install( FILES katomicui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/katomic
+)
+
+install( FILES katomic.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
diff --git a/katomic/molek.cpp b/katomic/molek.cpp
index 46132502..711ece5f 100644
--- a/katomic/molek.cpp
+++ b/katomic/molek.cpp
@@ -67,7 +67,12 @@ void Molek::load (const KSimpleConfig& config)
if (value.isNull())
value = "";
+#ifdef HAVE_STRLCPY
strlcpy(current.conn, value.ascii(), sizeof(current.conn));
+#else
+ strncpy(current.conn, value.ascii(), sizeof(current.conn));
+ current.conn[sizeof(current.conn)-1] = 0;
+#endif
kdWarning( atoms.find(current) != atoms.end() )
<< "OOOPS, duplicate atom definition in " << key << endl;
atoms.append(current);
diff --git a/kbackgammon/CMakeLists.txt b/kbackgammon/CMakeLists.txt
new file mode 100644
index 00000000..432239ef
--- /dev/null
+++ b/kbackgammon/CMakeLists.txt
@@ -0,0 +1,50 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( pics )
+add_subdirectory( sounds )
+add_subdirectory( icons )
+add_subdirectory( engines )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/kgame/
+ ${CMAKE_CURRENT_SOURCE_DIR}/engines
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kbackgammon (executable) ##################
+
+tde_add_executable( kbackgammon AUTOMOC
+ SOURCES main.cpp kbg.cpp kbgboard.cpp kbgtextview.cpp kbgstatus.cpp
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared tdeprint-shared
+ kbgengines-static
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+install( FILES kbackgammon.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES kbackgammonui.rc eventsrc
+ DESTINATION ${DATA_INSTALL_DIR}/kbackgammon
+)
diff --git a/kbackgammon/engines/CMakeLists.txt b/kbackgammon/engines/CMakeLists.txt
new file mode 100644
index 00000000..3497c6bd
--- /dev/null
+++ b/kbackgammon/engines/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( offline )
+add_subdirectory( generic )
+add_subdirectory( fibs )
+add_subdirectory( gnubg )
+add_subdirectory( nextgen )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+file( WRITE dummy.cpp "" )
+
+##### kbgengines (static) #######################
+
+tde_add_library( kbgengines STATIC_PIC AUTOMOC
+ SOURCES dummy.cpp
+ LINK kbgoffline-static kbggnubg-static kbggeneric-static kbgfibs-static
+ kbgnextgen-static
+)
diff --git a/kbackgammon/engines/fibs/CMakeLists.txt b/kbackgammon/engines/fibs/CMakeLists.txt
new file mode 100644
index 00000000..fd60510c
--- /dev/null
+++ b/kbackgammon/engines/fibs/CMakeLists.txt
@@ -0,0 +1,23 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kbackgammon/engines
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/kbackgammon
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kbgfibs (static) ##########################
+
+tde_add_library( kbgfibs STATIC_PIC AUTOMOC
+ SOURCES kbgfibs.cpp kplayerlist.cpp kbginvite.cpp kbgfibschat.cpp
+)
diff --git a/kbackgammon/engines/generic/CMakeLists.txt b/kbackgammon/engines/generic/CMakeLists.txt
new file mode 100644
index 00000000..aaa71437
--- /dev/null
+++ b/kbackgammon/engines/generic/CMakeLists.txt
@@ -0,0 +1,21 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kbackgammon
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kbggeneric (static) #######################
+
+tde_add_library( kbggeneric STATIC_PIC AUTOMOC
+ SOURCES kbgengine.cpp
+)
diff --git a/kbackgammon/engines/gnubg/CMakeLists.txt b/kbackgammon/engines/gnubg/CMakeLists.txt
new file mode 100644
index 00000000..b194ea9b
--- /dev/null
+++ b/kbackgammon/engines/gnubg/CMakeLists.txt
@@ -0,0 +1,22 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kbackgammon
+ ${CMAKE_SOURCE_DIR}/kbackgammon/engines
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kbggnubg (static) #########################
+
+tde_add_library( kbggnubg STATIC_PIC AUTOMOC
+ SOURCES kbggnubg.cpp
+)
diff --git a/kbackgammon/engines/nextgen/CMakeLists.txt b/kbackgammon/engines/nextgen/CMakeLists.txt
new file mode 100644
index 00000000..1dbf5fb2
--- /dev/null
+++ b/kbackgammon/engines/nextgen/CMakeLists.txt
@@ -0,0 +1,23 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kbackgammon
+ ${CMAKE_SOURCE_DIR}/kbackgammon/engines
+ ${CMAKE_SOURCE_DIR}/libtdegames/kgame
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kbgnextgen (static) #######################
+
+tde_add_library( kbgnextgen STATIC_PIC AUTOMOC
+ SOURCES kbgng.cpp kbgplayer.cpp kbggame.cpp
+)
diff --git a/kbackgammon/engines/offline/CMakeLists.txt b/kbackgammon/engines/offline/CMakeLists.txt
new file mode 100644
index 00000000..51e396f5
--- /dev/null
+++ b/kbackgammon/engines/offline/CMakeLists.txt
@@ -0,0 +1,22 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kbackgammon
+ ${CMAKE_SOURCE_DIR}/kbackgammon/engines
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kbgoffline (static) #######################
+
+tde_add_library( kbgoffline STATIC_PIC AUTOMOC
+ SOURCES kbgoffline.cpp
+)
diff --git a/kbackgammon/icons/CMakeLists.txt b/kbackgammon/icons/CMakeLists.txt
new file mode 100644
index 00000000..18d2e2f1
--- /dev/null
+++ b/kbackgammon/icons/CMakeLists.txt
@@ -0,0 +1,4 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+tde_install_icons( kbackgammon kbackgammon_engine )
+
diff --git a/kbackgammon/pics/CMakeLists.txt b/kbackgammon/pics/CMakeLists.txt
new file mode 100644
index 00000000..e0ab6392
--- /dev/null
+++ b/kbackgammon/pics/CMakeLists.txt
@@ -0,0 +1,5 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES kbackgammon-double.xpm kbackgammon-chat.png
+ DESTINATION ${DATA_INSTALL_DIR}/kbackgammon/pics
+)
diff --git a/kbackgammon/sounds/CMakeLists.txt b/kbackgammon/sounds/CMakeLists.txt
new file mode 100644
index 00000000..37e2c4cf
--- /dev/null
+++ b/kbackgammon/sounds/CMakeLists.txt
@@ -0,0 +1,6 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES kbackgammon-lost.wav kbackgammon-won.wav kbackgammon-roll.wav
+ kbackgammon-move.wav
+ DESTINATION ${DATA_INSTALL_DIR}/kbackgammon/sounds
+)
diff --git a/kbattleship/CMakeLists.txt b/kbattleship/CMakeLists.txt
new file mode 100644
index 00000000..db254495
--- /dev/null
+++ b/kbattleship/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( kbattleship )
diff --git a/kbattleship/kbattleship/CMakeLists.txt b/kbattleship/kbattleship/CMakeLists.txt
new file mode 100644
index 00000000..5e140a16
--- /dev/null
+++ b/kbattleship/kbattleship/CMakeLists.txt
@@ -0,0 +1,59 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( dialogs )
+add_subdirectory( pictures )
+add_subdirectory( sounds )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/highscore
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kbattleship (executable) ##################
+
+tde_add_executable( kbattleship AUTOMOC
+ SOURCES kbaiplayer.cpp kbstrategy.cpp kbverticalstepstrategy.cpp
+ kbdestroyshipstrategy.cpp kbhorizontalstepstrategy.cpp
+ kbrandomshotstrategy.cpp kbdiagonalwrapstrategy.cpp kmessage.cpp
+ kbattleshipserver.cpp kbattleshipclient.cpp kbattleshipview.cpp
+ kgridwidget.cpp kbattlefield.cpp kchatwidget.cpp kserverdialog.cpp
+ kclientdialog.cpp kstatdialog.cpp kbdiagonalshotstrategy.cpp
+ konnectionhandling.cpp kship.cpp kshiplist.cpp kbchooserstrategy.cpp
+ kbattleship.cpp main.cpp
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared
+ tdednssd-shared kbattleshipdialogs-static
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+install( FILES kbattleshipui.rc eventsrc
+ DESTINATION ${DATA_INSTALL_DIR}/kbattleship
+)
+
+install( FILES kbattleship.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES _kbattleship._tcp
+ DESTINATION ${DATA_INSTALL_DIR}/zeroconf
+)
diff --git a/kbattleship/kbattleship/dialogs/CMakeLists.txt b/kbattleship/kbattleship/dialogs/CMakeLists.txt
new file mode 100644
index 00000000..26215d96
--- /dev/null
+++ b/kbattleship/kbattleship/dialogs/CMakeLists.txt
@@ -0,0 +1,30 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kbattleshipdialogs (static) ###############
+
+tde_add_library( kbattleshipdialogs STATIC_PIC AUTOMOC
+ SOURCES connectDlg.ui serverDlg.ui chatDlg.ui statDlg.ui infoDlg.ui
+ LINK tdecore-shared tdeui-shared tdeio-shared tdeui-shared
+)
diff --git a/kbattleship/kbattleship/pictures/CMakeLists.txt b/kbattleship/kbattleship/pictures/CMakeLists.txt
new file mode 100644
index 00000000..5bb60870
--- /dev/null
+++ b/kbattleship/kbattleship/pictures/CMakeLists.txt
@@ -0,0 +1,13 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+tde_install_icons( kbattleship )
+
+
+##### other data ################################
+install( FILES sea.png water.png hit.png death.png border.png ship1-1.png
+ ship2-1.png ship2-2.png ship3-1.png ship3-2.png ship3-3.png ship4-1.png
+ ship4-2.png ship4-3.png ship4-4.png ship1-1-r.png ship2-1-r.png ship2-2-r.png
+ ship3-1-r.png ship3-2-r.png ship3-3-r.png ship4-1-r.png ship4-2-r.png
+ ship4-3-r.png ship4-4-r.png
+ DESTINATION ${DATA_INSTALL_DIR}/kbattleship/pictures
+)
diff --git a/kbattleship/kbattleship/sounds/CMakeLists.txt b/kbattleship/kbattleship/sounds/CMakeLists.txt
new file mode 100644
index 00000000..156bc502
--- /dev/null
+++ b/kbattleship/kbattleship/sounds/CMakeLists.txt
@@ -0,0 +1,6 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES ship-player-shoot-water.ogg ship-player1-shoot.ogg
+ ship-player2-shoot.ogg ship-sink.ogg
+ DESTINATION ${DATA_INSTALL_DIR}/kbattleship/sounds
+)
diff --git a/kblackbox/CMakeLists.txt b/kblackbox/CMakeLists.txt
new file mode 100644
index 00000000..057c1119
--- /dev/null
+++ b/kblackbox/CMakeLists.txt
@@ -0,0 +1,40 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( pics )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kblackbox (executable) ####################
+
+tde_add_executable( kblackbox AUTOMOC
+ SOURCES kbbgfx.cpp kbbgame.cpp util.cpp main.cpp
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( kblackbox )
+
+
+##### other data ################################
+install( FILES kblackbox.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES kblackboxui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kblackbox
+)
diff --git a/kblackbox/pics/CMakeLists.txt b/kblackbox/pics/CMakeLists.txt
new file mode 100644
index 00000000..97e38f32
--- /dev/null
+++ b/kblackbox/pics/CMakeLists.txt
@@ -0,0 +1,6 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES blue.xpm brown.xpm cyan.xpm gray.xpm green.xpm red.xpm white.xpm
+ green2.xpm giveup.xpm done.xpm
+ DESTINATION ${DATA_INSTALL_DIR}/kblackbox/pics
+)
diff --git a/kbounce/CMakeLists.txt b/kbounce/CMakeLists.txt
new file mode 100644
index 00000000..da633954
--- /dev/null
+++ b/kbounce/CMakeLists.txt
@@ -0,0 +1,53 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( pics )
+add_subdirectory( sounds )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/highscore
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${ARTS_LIBRARY_DIRS}
+)
+
+
+if( WITH_ARTS )
+ set( ARTS_LIBRARIES artskde-shared )
+endif( WITH_ARTS )
+
+
+##### kbounce (executable) ######################
+
+tde_add_executable( kbounce AUTOMOC
+ SOURCES main.cpp kbounce.cpp game.cpp highscores.cpp
+ LINK tdecore-shared tdeui-shared tdegames-shared ${ARTS_LIBRARIES}
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES kbounceui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kbounce
+)
+
+install( FILES kbounce.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
diff --git a/kbounce/pics/CMakeLists.txt b/kbounce/pics/CMakeLists.txt
new file mode 100644
index 00000000..3772832d
--- /dev/null
+++ b/kbounce/pics/CMakeLists.txt
@@ -0,0 +1,14 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+tde_install_icons( kbounce )
+
+
+##### other data ################################
+
+install( FILES ball0000.png ball0001.png ball0002.png ball0003.png ball0004.png
+ ball0005.png ball0006.png ball0007.png ball0008.png ball0009.png ball0010.png
+ ball0011.png ball0012.png ball0013.png ball0014.png ball0015.png ball0016.png
+ ball0017.png ball0018.png ball0019.png ball0020.png ball0021.png ball0022.png
+ ball0023.png ball0024.png tiles.png
+ DESTINATION ${DATA_INSTALL_DIR}/kbounce/pics
+)
diff --git a/kbounce/sounds/CMakeLists.txt b/kbounce/sounds/CMakeLists.txt
new file mode 100644
index 00000000..274accf8
--- /dev/null
+++ b/kbounce/sounds/CMakeLists.txt
@@ -0,0 +1,6 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES death.au reflect.au wallstart.au wallend.au seconds.au
+ timeout.au
+ DESTINATION ${DATA_INSTALL_DIR}/kbounce/sounds
+)
diff --git a/kenolaba/CMakeLists.txt b/kenolaba/CMakeLists.txt
new file mode 100644
index 00000000..e5398246
--- /dev/null
+++ b/kenolaba/CMakeLists.txt
@@ -0,0 +1,42 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( toolbar )
+add_subdirectory( bitmaps )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kenolaba (executable) #####################
+
+tde_add_executable( kenolaba AUTOMOC
+ SOURCES Board.cpp Move.cpp BoardWidget.cpp AbTop.cpp kenolaba.cpp Spy.cpp
+ Ball.cpp Network.cpp EvalDlg.ui EvalDlgImpl.cpp EvalScheme.cpp
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( kenolaba )
+
+
+##### other data ################################
+install( FILES kenolabaui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kenolaba
+)
+
+install( FILES kenolaba.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
diff --git a/kenolaba/Network.cpp b/kenolaba/Network.cpp
index 0f031e99..9be7c0c0 100644
--- a/kenolaba/Network.cpp
+++ b/kenolaba/Network.cpp
@@ -89,7 +89,7 @@ void Network::gotConnection()
static char tmp[1024];
int len=0;
struct sockaddr_in sin;
- kde_socklen_t sz = sizeof (sin);
+ socklen_t sz = sizeof (sin);
// printf("GotConnection: ");
int s = accept(fd,(struct sockaddr *)&sin, &sz);
diff --git a/kenolaba/bitmaps/CMakeLists.txt b/kenolaba/bitmaps/CMakeLists.txt
new file mode 100644
index 00000000..89a876b0
--- /dev/null
+++ b/kenolaba/bitmaps/CMakeLists.txt
@@ -0,0 +1 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
diff --git a/kenolaba/toolbar/CMakeLists.txt b/kenolaba/toolbar/CMakeLists.txt
new file mode 100644
index 00000000..13bed4ee
--- /dev/null
+++ b/kenolaba/toolbar/CMakeLists.txt
@@ -0,0 +1,7 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES new.xpm stop.xpm edit.xpm hint.xpm undo.xpm redball.xpm
+ yellowball.xpm noball.xpm warning.xpm ok.xpm spy0.xpm spy1.xpm spy2.xpm
+ spy3.xpm network.xpm
+ DESTINATION ${DATA_INSTALL_DIR}/kenolaba/pics
+)
diff --git a/kfouleggs/CMakeLists.txt b/kfouleggs/CMakeLists.txt
new file mode 100644
index 00000000..a295f934
--- /dev/null
+++ b/kfouleggs/CMakeLists.txt
@@ -0,0 +1,58 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( pics )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/libksirtet
+ ${CMAKE_SOURCE_DIR}/libksirtet
+ ${CMAKE_SOURCE_DIR}/libksirtet/base
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/highscore
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kfouleggs (executable) ####################
+
+tde_add_executable( kfouleggs AUTOMOC
+ SOURCES piece.cpp board.cpp ai.cpp field.cpp main.cpp prefs.kcfgc
+ LINK tdecore-shared tdeui-shared tdeio-shared ksirtetcommon-static
+ tdecore-shared tdeui-shared tdeio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES kfouleggsui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kfouleggs
+)
+
+install( FILES kfouleggs.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)
+
+install( FILES eventsrc
+ DESTINATION ${DATA_INSTALL_DIR}/kfouleggs
+)
+
+install( FILES kfouleggs.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
diff --git a/kfouleggs/pics/CMakeLists.txt b/kfouleggs/pics/CMakeLists.txt
new file mode 100644
index 00000000..510accfe
--- /dev/null
+++ b/kfouleggs/pics/CMakeLists.txt
@@ -0,0 +1,4 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+tde_install_icons( )
+
diff --git a/kgoldrunner/CMakeLists.txt b/kgoldrunner/CMakeLists.txt
new file mode 100644
index 00000000..87d654a4
--- /dev/null
+++ b/kgoldrunner/CMakeLists.txt
@@ -0,0 +1,4 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( src )
+add_subdirectory( gamedata )
diff --git a/kgoldrunner/gamedata/CMakeLists.txt b/kgoldrunner/gamedata/CMakeLists.txt
new file mode 100644
index 00000000..3dfc7770
--- /dev/null
+++ b/kgoldrunner/gamedata/CMakeLists.txt
@@ -0,0 +1,24 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES games.dat hi_level.dat hi_plws.dat hi_plwv.dat hi_wad.dat
+ DESTINATION ${DATA_INSTALL_DIR}/kgoldrunner/system
+)
+
+# To not to list all files in add_custom_command do all the preparation on
+# configuration stage
+execute_process( COMMAND
+ tar -xf "${CMAKE_CURRENT_SOURCE_DIR}/levels.tar" -C ${CMAKE_CURRENT_BINARY_DIR}
+)
+
+install( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/levels
+ DESTINATION ${DATA_INSTALL_DIR}/kgoldrunner/system )
+
diff --git a/kgoldrunner/src/CMakeLists.txt b/kgoldrunner/src/CMakeLists.txt
new file mode 100644
index 00000000..3a915d31
--- /dev/null
+++ b/kgoldrunner/src/CMakeLists.txt
@@ -0,0 +1,52 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+add_definitions(
+ -DQT3
+)
+
+##### kgoldrunner (executable) ##################
+
+tde_add_executable( kgoldrunner AUTOMOC
+ SOURCES kgoldrunner.cpp kgrcanvas.cpp kgrfigure.cpp kgrgame.cpp kgrobject.cpp
+ main.cpp kgrdialog.cpp
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared tdeprint-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( kgoldrunner )
+
+
+##### other data ################################
+
+install( FILES KGoldrunner.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES kgoldrunnerui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kgoldrunner
+)
diff --git a/kjumpingcube/CMakeLists.txt b/kjumpingcube/CMakeLists.txt
new file mode 100644
index 00000000..f3b87156
--- /dev/null
+++ b/kjumpingcube/CMakeLists.txt
@@ -0,0 +1,44 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kjumpingcube (executable) #################
+
+tde_add_executable( kjumpingcube AUTOMOC
+ SOURCES kjumpingcube.cpp kcubeboxwidget.cpp main.cpp kcubewidget.cpp cube.cpp
+ brain.cpp cubebox.cpp settings.ui prefs.kcfgc
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( kjumpingcube )
+
+
+##### other data ################################
+
+install( FILES kjumpingcube.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)
+
+install( FILES kjumpingcubeui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kjumpingcube
+)
+
+install( FILES kjumpingcube.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
diff --git a/klickety/CMakeLists.txt b/klickety/CMakeLists.txt
new file mode 100644
index 00000000..9254ba11
--- /dev/null
+++ b/klickety/CMakeLists.txt
@@ -0,0 +1,52 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( pics )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libksirtet
+ ${CMAKE_SOURCE_DIR}/libtdegames/highscore
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### klickety (executable) #####################
+
+tde_add_executable( klickety AUTOMOC
+ SOURCES piece.cpp board.cpp field.cpp highscores.cpp main.cpp
+ LINK tdegames-shared tdecore-shared tdeui-shared tdeio-shared
+ ksirtetbase-static tdecore-shared tdeui-shared tdeio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES eventsrc
+ DESTINATION ${DATA_INSTALL_DIR}/klickety
+)
+
+install( FILES klicketyui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/klickety
+)
+
+install( FILES klickety.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
diff --git a/klickety/pics/CMakeLists.txt b/klickety/pics/CMakeLists.txt
new file mode 100644
index 00000000..510accfe
--- /dev/null
+++ b/klickety/pics/CMakeLists.txt
@@ -0,0 +1,4 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+tde_install_icons( )
+
diff --git a/klines/CMakeLists.txt b/klines/CMakeLists.txt
new file mode 100644
index 00000000..26371364
--- /dev/null
+++ b/klines/CMakeLists.txt
@@ -0,0 +1,49 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/highscore
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### klines (executable) #######################
+
+tde_add_executable( klines AUTOMOC
+ SOURCES prompt.cpp mwidget.cpp linesboard.cpp field.cpp cell.cpp
+ ballpainter.cpp klines.cpp main.cpp prefs.kcfgc
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( klines )
+
+
+##### other data ################################
+
+install( FILES klines.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES klinesui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/klines
+)
+
+install( FILES balls.jpg field.jpg fire.jpg
+ DESTINATION ${DATA_INSTALL_DIR}/klines/
+)
+
+install( FILES klines.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)
diff --git a/kmahjongg/CMakeLists.txt b/kmahjongg/CMakeLists.txt
new file mode 100644
index 00000000..c90d3fc8
--- /dev/null
+++ b/kmahjongg/CMakeLists.txt
@@ -0,0 +1,47 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( pics )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kmahjongg (executable) ####################
+
+tde_add_executable( kmahjongg AUTOMOC
+ SOURCES main.cpp kmahjongg.cpp boardwidget.cpp Tileset.cpp BoardLayout.cpp
+ GameTimer.cpp Background.cpp Preview.cpp prefs.kcfgc Editor.cpp
+ HighScore.cpp settings.ui
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( kmahjongg )
+
+
+##### other data ################################
+
+install( FILES kmahjonggui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kmahjongg
+)
+
+install( FILES kmahjongg.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES kmahjongg.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)
diff --git a/kmahjongg/pics/CMakeLists.txt b/kmahjongg/pics/CMakeLists.txt
new file mode 100644
index 00000000..075fd742
--- /dev/null
+++ b/kmahjongg/pics/CMakeLists.txt
@@ -0,0 +1,23 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES kmahjongg.png kmahjongg_bgnd.png splash.png newnum.xpm
+ DESTINATION ${DATA_INSTALL_DIR}/kmahjongg/pics
+)
+
+install( FILES default.tileset pirates.tileset runes.tileset
+ traditional.tileset
+ DESTINATION ${DATA_INSTALL_DIR}/kmahjongg/pics
+)
+
+install( FILES default.theme pirates.theme
+ DESTINATION ${DATA_INSTALL_DIR}/kmahjongg/pics
+)
+
+install( FILES default.layout cross.layout pirates.layout pyramid.layout
+ stax.layout test.layout test2.layout tower.layout triangle.layout
+ DESTINATION ${DATA_INSTALL_DIR}/kmahjongg/pics
+)
+
+install( FILES default.bgnd haze.bgnd pirates.bgnd slate.bgnd wood.bgnd
+ DESTINATION ${DATA_INSTALL_DIR}/kmahjongg/pics
+)
diff --git a/kmines/CMakeLists.txt b/kmines/CMakeLists.txt
new file mode 100644
index 00000000..450004ce
--- /dev/null
+++ b/kmines/CMakeLists.txt
@@ -0,0 +1,45 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( data )
+add_subdirectory( bitmaps )
+add_subdirectory( solver )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/highscore
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kmines (executable) #######################
+
+tde_add_executable( kmines AUTOMOC
+ SOURCES kzoommainwindow.cpp defines.cpp highscores.cpp settings.kcfgc
+ dialogs.cpp frame.cpp field.cpp status.cpp main.cpp
+ LINK tdecore-shared tdeui-shared tdeio-shared solver-static tdegames-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES kminesui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kmines
+)
diff --git a/kmines/bitmaps/CMakeLists.txt b/kmines/bitmaps/CMakeLists.txt
new file mode 100644
index 00000000..89a876b0
--- /dev/null
+++ b/kmines/bitmaps/CMakeLists.txt
@@ -0,0 +1 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
diff --git a/kmines/data/CMakeLists.txt b/kmines/data/CMakeLists.txt
new file mode 100644
index 00000000..45e39b94
--- /dev/null
+++ b/kmines/data/CMakeLists.txt
@@ -0,0 +1,14 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+tde_install_icons( kmines )
+
+
+##### other data ################################
+
+install( FILES kmines.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES eventsrc
+ DESTINATION ${DATA_INSTALL_DIR}/kmines
+)
diff --git a/kmines/solver/CMakeLists.txt b/kmines/solver/CMakeLists.txt
new file mode 100644
index 00000000..0936261b
--- /dev/null
+++ b/kmines/solver/CMakeLists.txt
@@ -0,0 +1,77 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kmines/generic
+ ${CMAKE_SOURCE_DIR}/kmines
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### solver (static) ###########################
+
+tde_add_library( solver STATIC_PIC AUTOMOC
+ SOURCES bfield.cpp solver.cpp advFastRules.cpp adviseFast.cpp adviseFull.cpp
+)
+
+# FIXME: add test targets to cmake
+#
+# ##### test (test) ###############################
+#
+# tde_add_executable( test AUTOMOC
+# SOURCES test.cpp
+# LINK solver-shared tdecore-shared
+# )
+#
+# add_test( NAME test-test
+# COMMAND test)
+#
+#
+# ##### testFast (test) ###########################
+#
+# tde_add_executable( testFast AUTOMOC
+# SOURCES testFast.cpp
+# LINK solver-shared tdecore-shared
+# )
+#
+# add_test( NAME testFast-test
+# COMMAND testFast)
+#
+#
+# ##### testSolve (test) ##########################
+#
+# tde_add_executable( testSolve AUTOMOC
+# SOURCES testSolve.cpp
+# LINK solver-shared tdecore-shared tdeui-shared
+# )
+#
+# add_test( NAME testSolve-test
+# COMMAND testSolve)
+#
+#
+# ##### testRate (test) ###########################
+#
+# tde_add_executable( testRate AUTOMOC
+# SOURCES testRate.cpp
+# LINK solver-shared tdecore-shared tdeui-shared
+# )
+#
+# add_test( NAME testRate-test
+# COMMAND testRate)
diff --git a/knetwalk/CMakeLists.txt b/knetwalk/CMakeLists.txt
new file mode 100644
index 00000000..25d413f1
--- /dev/null
+++ b/knetwalk/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( src )
diff --git a/knetwalk/src/CMakeLists.txt b/knetwalk/src/CMakeLists.txt
new file mode 100644
index 00000000..04e10d51
--- /dev/null
+++ b/knetwalk/src/CMakeLists.txt
@@ -0,0 +1,43 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( pics )
+add_subdirectory( sounds )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/highscore
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### knetwalk (executable) #####################
+
+tde_add_executable( knetwalk AUTOMOC
+ SOURCES cell.cpp highscores.cpp main.cpp mainwindow.cpp settings.kcfgc
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared tdecore-shared
+ tdeui-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES eventsrc
+ DESTINATION ${DATA_INSTALL_DIR}/knetwalk
+)
+
+install( FILES knetwalk.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES knetwalkui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/knetwalk
+)
diff --git a/knetwalk/src/pics/CMakeLists.txt b/knetwalk/src/pics/CMakeLists.txt
new file mode 100644
index 00000000..e65269a2
--- /dev/null
+++ b/knetwalk/src/pics/CMakeLists.txt
@@ -0,0 +1,13 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+tde_install_icons( knetwalk )
+
+
+##### other data ################################
+
+install( FILES background.png background_locked.png cable0001.png cable0010.png
+ cable0011.png cable0100.png cable0101.png cable0110.png cable0111.png
+ cable1000.png cable1001.png cable1010.png cable1011.png cable1100.png
+ cable1101.png cable1110.png computer1.png computer2.png server.png
+ DESTINATION ${DATA_INSTALL_DIR}/knetwalk/
+)
diff --git a/knetwalk/src/sounds/CMakeLists.txt b/knetwalk/src/sounds/CMakeLists.txt
new file mode 100644
index 00000000..08029ff5
--- /dev/null
+++ b/knetwalk/src/sounds/CMakeLists.txt
@@ -0,0 +1,5 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES click.wav connect.wav start.wav turn.wav win.wav
+ DESTINATION ${DATA_INSTALL_DIR}/knetwalk/sounds
+)
diff --git a/kolf/CMakeLists.txt b/kolf/CMakeLists.txt
new file mode 100644
index 00000000..664c64a5
--- /dev/null
+++ b/kolf/CMakeLists.txt
@@ -0,0 +1,86 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( objects )
+add_subdirectory( sounds )
+add_subdirectory( courses )
+add_subdirectory( pics )
+add_subdirectory( graphics )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/highscore
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${ARTS_LIBRARY_DIRS}
+)
+
+
+##### kolf (tdeinit) ############################
+
+tde_add_tdeinit_executable( kolf AUTOMOC
+ SOURCES main.cpp
+ LINK kolf-shared
+)
+
+
+##### kolf (shared) #############################
+
+tde_add_library( kolf SHARED AUTOMOC
+ SOURCES kolf.cpp game.cpp canvasitem.cpp ball.cpp newgame.cpp config.cpp
+ scoreboard.cpp editor.cpp pluginloader.cpp object.cpp vector.cpp
+ printdialogpage.cpp kcomboboxdialog.cpp kvolumecontrol.cpp floater.cpp
+ slope.cpp
+ VERSION 3.0.2
+ LINK tdegames-shared tdeprint-shared tdeio-shared artskde-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### headers ###################################
+
+install( FILES ball.h game.h statedb.h config.h canvasitem.h object.h
+ rtti.h vector.h floater.h slope.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kolf
+)
+
+
+##### other data ################################
+
+add_custom_command ( OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/kolf.magic.mgc"
+ COMMAND file -C -m ${CMAKE_CURRENT_SOURCE_DIR}/kolf.magic
+ DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/kolf.magic"
+)
+
+add_custom_target( kolf-magic-mgc ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/kolf.magic.mgc" )
+
+install( FILES x-kourse.desktop x-kolf.desktop
+ DESTINATION ${MIME_INSTALL_DIR}/application
+)
+
+install( FILES kolf.magic "${CMAKE_CURRENT_BINARY_DIR}/kolf.magic.mgc"
+ DESTINATION ${CONFIG_INSTALL_DIR}/magic
+)
+
+install( FILES kolf.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES kolfui.rc intro tutorial.kolf tutorial.kolfgame
+ DESTINATION ${DATA_INSTALL_DIR}/kolf
+)
diff --git a/kolf/courses/CMakeLists.txt b/kolf/courses/CMakeLists.txt
new file mode 100644
index 00000000..01fde2a4
--- /dev/null
+++ b/kolf/courses/CMakeLists.txt
@@ -0,0 +1,6 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES Classic.kolf Hard.kolf Medium.kolf Easy.kolf ReallyEasy Practice
+ Impossible USApro
+ DESTINATION ${DATA_INSTALL_DIR}/kolf/courses
+)
diff --git a/kolf/graphics/CMakeLists.txt b/kolf/graphics/CMakeLists.txt
new file mode 100644
index 00000000..73b18fff
--- /dev/null
+++ b/kolf/graphics/CMakeLists.txt
@@ -0,0 +1,5 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES cup.png grass.png puddle.png sand.png
+ DESTINATION ${DATA_INSTALL_DIR}/kolf/pics/
+)
diff --git a/kolf/objects/CMakeLists.txt b/kolf/objects/CMakeLists.txt
new file mode 100644
index 00000000..89a876b0
--- /dev/null
+++ b/kolf/objects/CMakeLists.txt
@@ -0,0 +1 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
diff --git a/kolf/objects/poolball/CMakeLists.txt b/kolf/objects/poolball/CMakeLists.txt
new file mode 100644
index 00000000..adccbef8
--- /dev/null
+++ b/kolf/objects/poolball/CMakeLists.txt
@@ -0,0 +1,29 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kolfpoolball (shared) #####################
+
+tde_add_library( kolfpoolball SHARED AUTOMOC
+ SOURCES poolball.cpp
+ LINK tdeio-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES poolball.plugin
+ DESTINATION ${DATA_INSTALL_DIR}/kolf
+)
diff --git a/kolf/objects/test/CMakeLists.txt b/kolf/objects/test/CMakeLists.txt
new file mode 100644
index 00000000..192ebd34
--- /dev/null
+++ b/kolf/objects/test/CMakeLists.txt
@@ -0,0 +1,29 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kolftest (shared) #########################
+
+tde_add_library( kolftest SHARED AUTOMOC
+ SOURCES test.cpp
+ LINK tdeio-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES test.plugin
+ DESTINATION ${DATA_INSTALL_DIR}/kolf
+)
diff --git a/kolf/pics/CMakeLists.txt b/kolf/pics/CMakeLists.txt
new file mode 100644
index 00000000..510accfe
--- /dev/null
+++ b/kolf/pics/CMakeLists.txt
@@ -0,0 +1,4 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+tde_install_icons( )
+
diff --git a/kolf/sounds/CMakeLists.txt b/kolf/sounds/CMakeLists.txt
new file mode 100644
index 00000000..a3ae4461
--- /dev/null
+++ b/kolf/sounds/CMakeLists.txt
@@ -0,0 +1,6 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES wall.wav puddle.wav holeinone.wav holed.wav blackhole.wav
+ blackholeputin.wav blackholeeject.wav hit.wav
+ DESTINATION ${DATA_INSTALL_DIR}/kolf/sounds
+)
diff --git a/konquest/CMakeLists.txt b/konquest/CMakeLists.txt
new file mode 100644
index 00000000..0f567200
--- /dev/null
+++ b/konquest/CMakeLists.txt
@@ -0,0 +1,43 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( pics )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### konquest (executable) #####################
+
+tde_add_executable( konquest AUTOMOC
+ SOURCES Konquest.cc gameboard.cc gamecore.cc int_validator.cc mainwin.cc
+ map_widget.cc minimap.cc newgamedlg.cc planet_info.cc gameenddlg.cc
+ scoredlg.cc fleetdlg.cc newGameDlg_ui.ui
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( konquest )
+
+
+##### other data ################################
+
+install( FILES konquest.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES konquestui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/konquest
+)
diff --git a/konquest/pics/CMakeLists.txt b/konquest/pics/CMakeLists.txt
new file mode 100644
index 00000000..fcddff33
--- /dev/null
+++ b/konquest/pics/CMakeLists.txt
@@ -0,0 +1,7 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES konquest-splash.png planet1.xpm planet2.xpm planet3.xpm
+ planet4.xpm planet5.xpm planet6.xpm planet7.xpm planet8.xpm planet9.xpm
+ ruler.xpm
+ DESTINATION ${DATA_INSTALL_DIR}/konquest/pics
+)
diff --git a/kpat/CMakeLists.txt b/kpat/CMakeLists.txt
new file mode 100644
index 00000000..e1399487
--- /dev/null
+++ b/kpat/CMakeLists.txt
@@ -0,0 +1,54 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( icons )
+add_subdirectory( freecell-solver )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kpat (executable) #########################
+
+tde_add_executable( kpat AUTOMOC
+ SOURCES main.cpp cardmaps.cpp card.cpp dealer.cpp pwidget.cpp pile.cpp
+ deck.cpp pile_algorithms.cpp kings.cpp freecell.cpp klondike.cpp simon.cpp
+ grandf.cpp mod3.cpp idiot.cpp napoleon.cpp computation.cpp gypsy.cpp
+ fortyeight.cpp yukon.cpp clock.cpp golf.cpp spider.cpp gamestatsimpl.cpp
+ gamestats.ui
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared fcs-static
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES green.png
+ DESTINATION ${DATA_INSTALL_DIR}/kpat/backgrounds
+)
+
+install( FILES kpatui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kpat
+)
+
+install( FILES kpat.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
diff --git a/kpat/freecell-solver/CMakeLists.txt b/kpat/freecell-solver/CMakeLists.txt
new file mode 100644
index 00000000..b40359c7
--- /dev/null
+++ b/kpat/freecell-solver/CMakeLists.txt
@@ -0,0 +1,27 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+add_definitions(
+ -DFCS_STATE_STORAGE=FCS_STATE_STORAGE_INTERNAL_HASH
+ -DFCS_STACK_STORAGE=FCS_STACK_STORAGE_INTERNAL_HASH
+)
+
+
+##### fcs (static) ##############################
+
+tde_add_library( fcs STATIC_PIC AUTOMOC
+ SOURCES alloc.c app_str.c caas.c card.c cl_chop.c cmd_line.c fcs_dm.c
+ fcs_hash.c fcs_isa.c freecell.c intrface.c lib.c lookup2.c move.c pqueue.c
+ preset.c rand.c scans.c simpsim.c state.c
+)
diff --git a/kpat/freecell.cpp b/kpat/freecell.cpp
index d222020a..1e7b8b92 100644
--- a/kpat/freecell.cpp
+++ b/kpat/freecell.cpp
@@ -851,4 +851,4 @@ public:
//-------------------------------------------------------------------------//
-#include"freecell.moc"
+#include "freecell.moc"
diff --git a/kpat/golf.cpp b/kpat/golf.cpp
index 0a37dae4..0e7adf9f 100644
--- a/kpat/golf.cpp
+++ b/kpat/golf.cpp
@@ -163,7 +163,7 @@ public:
//-------------------------------------------------------------------------//
-#include"golf.moc"
+#include "golf.moc"
//-------------------------------------------------------------------------//
diff --git a/kpat/icons/CMakeLists.txt b/kpat/icons/CMakeLists.txt
new file mode 100644
index 00000000..3891f156
--- /dev/null
+++ b/kpat/icons/CMakeLists.txt
@@ -0,0 +1,4 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+tde_install_icons( kpat )
+
diff --git a/kpat/mod3.cpp b/kpat/mod3.cpp
index 64687162..a6e42a00 100644
--- a/kpat/mod3.cpp
+++ b/kpat/mod3.cpp
@@ -306,7 +306,7 @@ public:
//-------------------------------------------------------------------------//
-#include"mod3.moc"
+#include "mod3.moc"
//-------------------------------------------------------------------------//
diff --git a/kpoker/CMakeLists.txt b/kpoker/CMakeLists.txt
new file mode 100644
index 00000000..9e339067
--- /dev/null
+++ b/kpoker/CMakeLists.txt
@@ -0,0 +1,42 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( sounds )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kpoker (executable) #######################
+
+tde_add_executable( kpoker AUTOMOC
+ SOURCES kpoker.cpp kpaint.cpp top.cpp main.cpp betbox.cpp optionsdlg.cpp
+ player.cpp playerbox.cpp newgamedlg.cpp poker.cpp
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( kpoker )
+
+
+##### other data ################################
+
+install( FILES kpoker.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES kpokerui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kpoker
+)
diff --git a/kpoker/sounds/CMakeLists.txt b/kpoker/sounds/CMakeLists.txt
new file mode 100644
index 00000000..82c0680e
--- /dev/null
+++ b/kpoker/sounds/CMakeLists.txt
@@ -0,0 +1,5 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES cardflip.wav hold.wav lose.wav win.wav
+ DESTINATION ${DATA_INSTALL_DIR}/kpoker/sounds
+)
diff --git a/kreversi/CMakeLists.txt b/kreversi/CMakeLists.txt
new file mode 100644
index 00000000..4a7a4193
--- /dev/null
+++ b/kreversi/CMakeLists.txt
@@ -0,0 +1,45 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( pics )
+add_subdirectory( sounds )
+add_subdirectory( icons )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/highscore
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kreversi (executable) #####################
+
+tde_add_executable( kreversi AUTOMOC
+ SOURCES kzoommainwindow.cpp Score.cpp Move.cpp Position.cpp Game.cpp
+ qreversigame.cpp qreversigameview.cpp SuperEngine.cpp Engine.cpp board.cpp
+ settings.ui highscores.cpp kreversi.cpp main.cpp prefs.kcfgc
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared tdeio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES kreversiui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kreversi
+)
+
+install( FILES kreversi.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES kreversi.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)
diff --git a/kreversi/icons/CMakeLists.txt b/kreversi/icons/CMakeLists.txt
new file mode 100644
index 00000000..510accfe
--- /dev/null
+++ b/kreversi/icons/CMakeLists.txt
@@ -0,0 +1,4 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+tde_install_icons( )
+
diff --git a/kreversi/pics/CMakeLists.txt b/kreversi/pics/CMakeLists.txt
new file mode 100644
index 00000000..3a1a51f4
--- /dev/null
+++ b/kreversi/pics/CMakeLists.txt
@@ -0,0 +1,9 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( background )
+
+##### other data ################################
+
+install( FILES chips.png chips_mono.png
+ DESTINATION ${DATA_INSTALL_DIR}/kreversi/pics
+)
diff --git a/kreversi/pics/background/CMakeLists.txt b/kreversi/pics/background/CMakeLists.txt
new file mode 100644
index 00000000..e2fd75d8
--- /dev/null
+++ b/kreversi/pics/background/CMakeLists.txt
@@ -0,0 +1,6 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES Dark_Wood.png Granite.png Light_Wood.png Ocean.png Puzzle.png
+ Earth.png Hexagon.png Mystique.png Pipes.png Stones.png
+ DESTINATION ${DATA_INSTALL_DIR}/kreversi/pics/background
+)
diff --git a/kreversi/sounds/CMakeLists.txt b/kreversi/sounds/CMakeLists.txt
new file mode 100644
index 00000000..b97fe32a
--- /dev/null
+++ b/kreversi/sounds/CMakeLists.txt
@@ -0,0 +1,9 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES eventsrc
+ DESTINATION ${DATA_INSTALL_DIR}/kreversi
+)
+
+install( FILES reversi-click.wav reversi-won.wav
+ DESTINATION ${DATA_INSTALL_DIR}/kreversi/sounds
+)
diff --git a/ksame/CMakeLists.txt b/ksame/CMakeLists.txt
new file mode 100644
index 00000000..647eaffc
--- /dev/null
+++ b/ksame/CMakeLists.txt
@@ -0,0 +1,40 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/highscore
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### ksame (executable) ########################
+
+tde_add_executable( ksame AUTOMOC
+ SOURCES main.cpp StoneField.cpp StoneWidget.cpp KSameWidget.cpp
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared tdeio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( ksame )
+
+
+##### other data ################################
+
+install( FILES stones.png ksameui.rc eventsrc
+ DESTINATION ${DATA_INSTALL_DIR}/ksame
+)
+
+install( FILES ksame.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
diff --git a/kshisen/CMakeLists.txt b/kshisen/CMakeLists.txt
new file mode 100644
index 00000000..6562d565
--- /dev/null
+++ b/kshisen/CMakeLists.txt
@@ -0,0 +1,46 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( pics )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/highscore
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kshisen (executable) ######################
+
+tde_add_executable( kshisen AUTOMOC
+ SOURCES main.cpp board.cpp app.cpp tileset.cpp settings.ui prefs.kcfgc
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared tdeui-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( kshisen )
+
+
+##### other data ################################
+
+install( FILES kshisen.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)
+
+install( FILES kshisenui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kshisen
+)
+
+install( FILES kshisen.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
diff --git a/kshisen/pics/CMakeLists.txt b/kshisen/pics/CMakeLists.txt
new file mode 100644
index 00000000..56cd4e75
--- /dev/null
+++ b/kshisen/pics/CMakeLists.txt
@@ -0,0 +1,5 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES tileset.png kshisen_bgnd.png
+ DESTINATION ${DATA_INSTALL_DIR}/kshisen/
+)
diff --git a/ksirtet/CMakeLists.txt b/ksirtet/CMakeLists.txt
new file mode 100644
index 00000000..d597d8cd
--- /dev/null
+++ b/ksirtet/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( ksirtet )
diff --git a/ksirtet/ksirtet/CMakeLists.txt b/ksirtet/ksirtet/CMakeLists.txt
new file mode 100644
index 00000000..ecf44240
--- /dev/null
+++ b/ksirtet/ksirtet/CMakeLists.txt
@@ -0,0 +1,75 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/libksirtet
+ ${CMAKE_SOURCE_DIR}/libksirtet
+ ${CMAKE_SOURCE_DIR}/libksirtet/base
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/highscore
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+# FIXME: Add support for testing framework
+#
+# ##### check_score (test) ########################
+#
+# tde_add_executable( check_score AUTOMOC
+# SOURCES check_score.cpp
+# LINK tdecore-shared tdeui-shared tdeio-shared
+# )
+#
+# add_test( NAME check_score-test
+# COMMAND check_score)
+#
+
+##### ksirtet (executable) ######################
+
+tde_add_executable( ksirtet AUTOMOC
+ SOURCES piece.cpp board.cpp ai.cpp field.cpp settings.cpp main.cpp
+ prefs.kcfgc
+ LINK tdecore-shared tdeui-shared tdeio-shared ksirtetcommon-static
+ tdecore-shared tdeui-shared tdeio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( ksirtet )
+
+
+##### other data ################################
+
+install( FILES ksirtetui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/ksirtet
+)
+
+install( FILES ksirtet.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES ksirtet.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)
+
+install( FILES eventsrc
+ DESTINATION ${DATA_INSTALL_DIR}/ksirtet
+)
diff --git a/ksmiletris/CMakeLists.txt b/ksmiletris/CMakeLists.txt
new file mode 100644
index 00000000..c9f6779d
--- /dev/null
+++ b/ksmiletris/CMakeLists.txt
@@ -0,0 +1,44 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( data )
+add_subdirectory( wav )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/highscore
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### ksmiletris (executable) ###################
+
+tde_add_executable( ksmiletris AUTOMOC
+ SOURCES main.cpp gamewindow.cpp gamewidget.cpp screenwidget.cpp
+ mirrorwidget.cpp npiecewidget.cpp
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( ksmiletris )
+
+
+##### other data ################################
+
+install( FILES ksmiletrisui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/ksmiletris
+)
+
+install( FILES ksmiletris.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
diff --git a/ksmiletris/data/CMakeLists.txt b/ksmiletris/data/CMakeLists.txt
new file mode 100644
index 00000000..09d3b4d2
--- /dev/null
+++ b/ksmiletris/data/CMakeLists.txt
@@ -0,0 +1,12 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES bg1.bmp bg10.bmp bg11.bmp bg12.bmp bg13.bmp bg14.bmp bg15.bmp
+ bg16.bmp bg2.bmp bg3.bmp bg4.bmp bg5.bmp bg6.bmp bg7.bmp bg8.bmp bg9.bmp
+ block-a1.bmp block-a2.bmp block-a3.bmp block-a4.bmp block-a5.bmp block-a6.bmp
+ block-a7.bmp block-a8.bmp block-b1.bmp block-b2.bmp block-b3.bmp block-b4.bmp
+ block-b5.bmp block-b6.bmp block-b7.bmp block-b8.bmp block-c1.bmp block-c2.bmp
+ block-c3.bmp block-c4.bmp block-c5.bmp block-c6.bmp block-c7.bmp block-c8.bmp
+ broken-mask.bmp broken.bmp pause.bmp cleared-a.bmp cleared-b.bmp
+ cleared-c.bmp
+ DESTINATION ${DATA_INSTALL_DIR}/ksmiletris/data
+)
diff --git a/ksmiletris/wav/CMakeLists.txt b/ksmiletris/wav/CMakeLists.txt
new file mode 100644
index 00000000..da59b12a
--- /dev/null
+++ b/ksmiletris/wav/CMakeLists.txt
@@ -0,0 +1,5 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES break.wav clear.wav
+ DESTINATION ${DATA_INSTALL_DIR}/ksmiletris/sounds
+)
diff --git a/ksnake/CMakeLists.txt b/ksnake/CMakeLists.txt
new file mode 100644
index 00000000..c47fbd3e
--- /dev/null
+++ b/ksnake/CMakeLists.txt
@@ -0,0 +1,48 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( data )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/highscore/
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### ksnake (executable) #######################
+
+tde_add_executable( ksnake AUTOMOC
+ SOURCES game.cpp rattler.cpp board.cpp level.cpp ball.cpp snake.cpp
+ basket.cpp startroom.cpp pixServer.cpp progress.cpp levels.cpp view.cpp
+ main.cpp settings.kcfgc appearance.ui general.ui
+ LINK tdecore-shared tdeui-shared tdeio-shared tdeui-shared tdegames-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( ksnake )
+
+
+##### other data ################################
+
+install( FILES ksnake.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)
+
+install( FILES ksnake.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES ksnakeui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/ksnake
+)
diff --git a/ksnake/data/CMakeLists.txt b/ksnake/data/CMakeLists.txt
new file mode 100644
index 00000000..aa454a71
--- /dev/null
+++ b/ksnake/data/CMakeLists.txt
@@ -0,0 +1,11 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( levels )
+add_subdirectory( pixmaps )
+add_subdirectory( backgrounds )
+
+##### other data ################################
+
+install( FILES highScores
+ DESTINATION ${DATA_INSTALL_DIR}/ksnake
+)
diff --git a/ksnake/data/backgrounds/CMakeLists.txt b/ksnake/data/backgrounds/CMakeLists.txt
new file mode 100644
index 00000000..11982a26
--- /dev/null
+++ b/ksnake/data/backgrounds/CMakeLists.txt
@@ -0,0 +1,6 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES Bark.png Blue_Carpet.png Dark_Wood.png Granite.png
+ Green_Carpet.png Mystique.png Rope_Weave.png Volcanic.png Wood.png
+ DESTINATION ${DATA_INSTALL_DIR}/ksnake/backgrounds
+)
diff --git a/ksnake/data/levels/CMakeLists.txt b/ksnake/data/levels/CMakeLists.txt
new file mode 100644
index 00000000..5bc8da0c
--- /dev/null
+++ b/ksnake/data/levels/CMakeLists.txt
@@ -0,0 +1,7 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES room01 room02 room03 room04 room05 room06 room07 room08 room09
+ room10 room11 room12 room13 room14 room15 room16 room17 room18 room19 room20
+ room21 room22 room23 room24 room25
+ DESTINATION ${DATA_INSTALL_DIR}/ksnake/levels
+)
diff --git a/ksnake/data/pixmaps/CMakeLists.txt b/ksnake/data/pixmaps/CMakeLists.txt
new file mode 100644
index 00000000..4f0a3e59
--- /dev/null
+++ b/ksnake/data/pixmaps/CMakeLists.txt
@@ -0,0 +1,5 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES apples.png ball.png brick.png snake1.png snake2.png
+ DESTINATION ${DATA_INSTALL_DIR}/ksnake/pics
+)
diff --git a/ksokoban/CMakeLists.txt b/ksokoban/CMakeLists.txt
new file mode 100644
index 00000000..6ffa3316
--- /dev/null
+++ b/ksokoban/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( images )
+add_subdirectory( data )
+add_subdirectory( levels )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}/levels
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### ksokoban (executable) #####################
+
+tde_add_executable( ksokoban AUTOMOC
+ SOURCES Bookmark.cpp History.cpp HtmlPrinter.cpp ImageData.cpp
+ InternalCollections.cpp LevelCollection.cpp LevelMap.cpp MainWindow.cpp
+ Map.cpp MapDelta.cpp ModalLabel.cpp Move.cpp MoveSequence.cpp
+ PathFinder.cpp PlayField.cpp StaticImage.cpp main.cpp
+ LINK tdecore-shared tdeui-shared tdeio-shared tdeio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+ DEPENDENCIES ksokoban_levels_data_c
+ ksokoban_images_data_c
+)
diff --git a/ksokoban/data/CMakeLists.txt b/ksokoban/data/CMakeLists.txt
new file mode 100644
index 00000000..e1114b1b
--- /dev/null
+++ b/ksokoban/data/CMakeLists.txt
@@ -0,0 +1,10 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+tde_install_icons( ksokoban )
+
+
+##### other data ################################
+
+install( FILES ksokoban.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
diff --git a/ksokoban/images/CMakeLists.txt b/ksokoban/images/CMakeLists.txt
new file mode 100644
index 00000000..e58ecba3
--- /dev/null
+++ b/ksokoban/images/CMakeLists.txt
@@ -0,0 +1,43 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+)
+
+add_definitions( -DUSE_LIBZ )
+
+# FIXME: that should potentialy break the cross
+# compilation, If it is possible in
+# generall.
+
+add_executable( bin2c bin2c.c )
+target_link_libraries( bin2c z )
+
+get_target_property( BIN2C_EXE bin2c LOCATION)
+
+foreach( _img goal.png halfstone_1.png halfstone_2.png halfstone_3.png
+ halfstone_4.png man.png object.png saveman.png stone_1.png stone_2.png
+ stone_3.png stone_4.png stone_5.png stone_6.png treasure.png starfield.png
+ )
+ list( APPEND IMAGES "${CMAKE_CURRENT_SOURCE_DIR}/${_img}" )
+endforeach( )
+
+add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/data.c
+ COMMAND "${BIN2C_EXE}" \"\" ${IMAGES}
+ DEPENDS bin2c ${IMAGES}
+ WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
+)
+
+add_custom_target ( ksokoban_images_data_c
+ DEPENDS data.c
+)
diff --git a/ksokoban/levels/CMakeLists.txt b/ksokoban/levels/CMakeLists.txt
new file mode 100644
index 00000000..1847d3ec
--- /dev/null
+++ b/ksokoban/levels/CMakeLists.txt
@@ -0,0 +1,23 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+##################################################
+
+get_target_property( BIN2C_EXE bin2c LOCATION)
+
+add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/data.c
+ COMMAND
+ "${BIN2C_EXE}" \"\" "${CMAKE_CURRENT_SOURCE_DIR}/level.data"
+ DEPENDS bin2c ${CMAKE_CURRENT_SOURCE_DIR}/level.data
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+)
+
+add_custom_target ( ksokoban_levels_data_c
+ DEPENDS data.c
+)
diff --git a/kspaceduel/CMakeLists.txt b/kspaceduel/CMakeLists.txt
new file mode 100644
index 00000000..8775757f
--- /dev/null
+++ b/kspaceduel/CMakeLists.txt
@@ -0,0 +1,47 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( sprites )
+add_subdirectory( pics )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kspaceduel (executable) ###################
+
+tde_add_executable( kspaceduel AUTOMOC
+ SOURCES general.ui mathroutines.cpp topwidget.cpp playerinfo.cpp sprites.cpp
+ mainview.cpp dialogs.cpp ai.cpp main.cpp options.kcfgc
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( kspaceduel )
+
+
+##### other data ################################
+
+install( FILES kspaceduel.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES kspaceduelui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kspaceduel
+)
+
+install( FILES kspaceduel.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)
diff --git a/kspaceduel/pics/CMakeLists.txt b/kspaceduel/pics/CMakeLists.txt
new file mode 100644
index 00000000..620b54c1
--- /dev/null
+++ b/kspaceduel/pics/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/kspaceduel/icons )
diff --git a/kspaceduel/sprites/CMakeLists.txt b/kspaceduel/sprites/CMakeLists.txt
new file mode 100644
index 00000000..0edf2ca5
--- /dev/null
+++ b/kspaceduel/sprites/CMakeLists.txt
@@ -0,0 +1,14 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( ship1 )
+add_subdirectory( ship2 )
+add_subdirectory( playerinfo )
+add_subdirectory( explosion )
+add_subdirectory( sun )
+add_subdirectory( powerups )
+
+##### other data ################################
+
+install( FILES backgr.png
+ DESTINATION ${DATA_INSTALL_DIR}/kspaceduel/sprites
+)
diff --git a/kspaceduel/sprites/explosion/CMakeLists.txt b/kspaceduel/sprites/explosion/CMakeLists.txt
new file mode 100644
index 00000000..ee150761
--- /dev/null
+++ b/kspaceduel/sprites/explosion/CMakeLists.txt
@@ -0,0 +1,21 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES explos00.pbm explos00.ppm explos01.pbm explos01.ppm explos02.pbm
+ explos02.ppm explos03.pbm explos03.ppm explos04.pbm explos04.ppm explos05.pbm
+ explos05.ppm explos06.pbm explos06.ppm explos07.pbm explos07.ppm explos08.pbm
+ explos08.ppm explos09.pbm explos09.ppm explos10.pbm explos10.ppm explos11.pbm
+ explos11.ppm explos12.pbm explos12.ppm explos13.pbm explos13.ppm explos14.pbm
+ explos14.ppm explos15.pbm explos15.ppm explos16.pbm explos16.ppm explos17.pbm
+ explos17.ppm explos18.pbm explos18.ppm explos19.pbm explos19.ppm explos20.pbm
+ explos20.ppm explos21.pbm explos21.ppm explos22.pbm explos22.ppm explos23.pbm
+ explos23.ppm explos24.pbm explos24.ppm explos25.pbm explos25.ppm explos26.pbm
+ explos26.ppm explos27.pbm explos27.ppm explos28.pbm explos28.ppm explos29.pbm
+ explos29.ppm explos30.pbm explos30.ppm mineex00.pbm mineex00.ppm mineex01.pbm
+ mineex01.ppm mineex02.pbm mineex02.ppm mineex03.pbm mineex03.ppm mineex04.pbm
+ mineex04.ppm mineex05.pbm mineex05.ppm mineex06.pbm mineex06.ppm mineex07.pbm
+ mineex07.ppm mineex08.pbm mineex08.ppm mineex09.pbm mineex09.ppm mineex10.pbm
+ mineex10.ppm mineex11.pbm mineex11.ppm mineex12.pbm mineex12.ppm mineex13.pbm
+ mineex13.ppm mineex14.pbm mineex14.ppm mineex15.pbm mineex15.ppm mineex16.pbm
+ mineex16.ppm mineex17.pbm mineex17.ppm
+ DESTINATION ${DATA_INSTALL_DIR}/kspaceduel/sprites/explosion
+)
diff --git a/kspaceduel/sprites/playerinfo/CMakeLists.txt b/kspaceduel/sprites/playerinfo/CMakeLists.txt
new file mode 100644
index 00000000..447c354d
--- /dev/null
+++ b/kspaceduel/sprites/playerinfo/CMakeLists.txt
@@ -0,0 +1,6 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES energy.pnm mine.pnm ship10.pnm ship11.pnm ship12.pnm ship13.pnm
+ ship20.pnm ship21.pnm ship22.pnm ship23.pnm win.pnm
+ DESTINATION ${DATA_INSTALL_DIR}/kspaceduel/sprites/playerinfo
+)
diff --git a/kspaceduel/sprites/powerups/CMakeLists.txt b/kspaceduel/sprites/powerups/CMakeLists.txt
new file mode 100644
index 00000000..53f1e33a
--- /dev/null
+++ b/kspaceduel/sprites/powerups/CMakeLists.txt
@@ -0,0 +1,6 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES pbullet.pbm pbullet.ppm penergy.pbm penergy.ppm pmine.pbm
+ pmine.ppm pshield.pbm pshield.ppm
+ DESTINATION ${DATA_INSTALL_DIR}/kspaceduel/sprites/powerups
+)
diff --git a/kspaceduel/sprites/ship1/CMakeLists.txt b/kspaceduel/sprites/ship1/CMakeLists.txt
new file mode 100644
index 00000000..3dc57332
--- /dev/null
+++ b/kspaceduel/sprites/ship1/CMakeLists.txt
@@ -0,0 +1,24 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES bullet.pbm bullet.ppm mine0.pbm mine0.ppm mine1.pbm mine1.ppm
+ ship00.pbm ship00.ppm ship01.pbm ship01.ppm ship02.pbm ship02.ppm ship03.pbm
+ ship03.ppm ship04.pbm ship04.ppm ship05.pbm ship05.ppm ship06.pbm ship06.ppm
+ ship07.pbm ship07.ppm ship08.pbm ship08.ppm ship09.pbm ship09.ppm ship10.pbm
+ ship10.ppm ship11.pbm ship11.ppm ship12.pbm ship12.ppm ship13.pbm ship13.ppm
+ ship14.pbm ship14.ppm ship15.pbm ship15.ppm ship16.pbm ship16.ppm ship17.pbm
+ ship17.ppm ship18.pbm ship18.ppm ship19.pbm ship19.ppm ship20.pbm ship20.ppm
+ ship21.pbm ship21.ppm ship22.pbm ship22.ppm ship23.pbm ship23.ppm ship24.pbm
+ ship24.ppm ship25.pbm ship25.ppm ship26.pbm ship26.ppm ship27.pbm ship27.ppm
+ ship28.pbm ship28.ppm ship29.pbm ship29.ppm ship30.pbm ship30.ppm ship31.pbm
+ ship31.ppm ship32.pbm ship32.ppm ship33.pbm ship33.ppm ship34.pbm ship34.ppm
+ ship35.pbm ship35.ppm ship36.pbm ship36.ppm ship37.pbm ship37.ppm ship38.pbm
+ ship38.ppm ship39.pbm ship39.ppm ship40.pbm ship40.ppm ship41.pbm ship41.ppm
+ ship42.pbm ship42.ppm ship43.pbm ship43.ppm ship44.pbm ship44.ppm ship45.pbm
+ ship45.ppm ship46.pbm ship46.ppm ship47.pbm ship47.ppm ship48.pbm ship48.ppm
+ ship49.pbm ship49.ppm ship50.pbm ship50.ppm ship51.pbm ship51.ppm ship52.pbm
+ ship52.ppm ship53.pbm ship53.ppm ship54.pbm ship54.ppm ship55.pbm ship55.ppm
+ ship56.pbm ship56.ppm ship57.pbm ship57.ppm ship58.pbm ship58.ppm ship59.pbm
+ ship59.ppm ship60.pbm ship60.ppm ship61.pbm ship61.ppm ship62.pbm ship62.ppm
+ ship63.pbm ship63.ppm ship64.pbm ship64.ppm
+ DESTINATION ${DATA_INSTALL_DIR}/kspaceduel/sprites/ship1
+)
diff --git a/kspaceduel/sprites/ship2/CMakeLists.txt b/kspaceduel/sprites/ship2/CMakeLists.txt
new file mode 100644
index 00000000..3b53e4a9
--- /dev/null
+++ b/kspaceduel/sprites/ship2/CMakeLists.txt
@@ -0,0 +1,24 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES bullet.pbm bullet.ppm mine0.pbm mine0.ppm mine1.pbm mine1.ppm
+ ship00.pbm ship00.ppm ship01.pbm ship01.ppm ship02.pbm ship02.ppm ship03.pbm
+ ship03.ppm ship04.pbm ship04.ppm ship05.pbm ship05.ppm ship06.pbm ship06.ppm
+ ship07.pbm ship07.ppm ship08.pbm ship08.ppm ship09.pbm ship09.ppm ship10.pbm
+ ship10.ppm ship11.pbm ship11.ppm ship12.pbm ship12.ppm ship13.pbm ship13.ppm
+ ship14.pbm ship14.ppm ship15.pbm ship15.ppm ship16.pbm ship16.ppm ship17.pbm
+ ship17.ppm ship18.pbm ship18.ppm ship19.pbm ship19.ppm ship20.pbm ship20.ppm
+ ship21.pbm ship21.ppm ship22.pbm ship22.ppm ship23.pbm ship23.ppm ship24.pbm
+ ship24.ppm ship25.pbm ship25.ppm ship26.pbm ship26.ppm ship27.pbm ship27.ppm
+ ship28.pbm ship28.ppm ship29.pbm ship29.ppm ship30.pbm ship30.ppm ship31.pbm
+ ship31.ppm ship32.pbm ship32.ppm ship33.pbm ship33.ppm ship34.pbm ship34.ppm
+ ship35.pbm ship35.ppm ship36.pbm ship36.ppm ship37.pbm ship37.ppm ship38.pbm
+ ship38.ppm ship39.pbm ship39.ppm ship40.pbm ship40.ppm ship41.pbm ship41.ppm
+ ship42.pbm ship42.ppm ship43.pbm ship43.ppm ship44.pbm ship44.ppm ship45.pbm
+ ship45.ppm ship46.pbm ship46.ppm ship47.pbm ship47.ppm ship48.pbm ship48.ppm
+ ship49.pbm ship49.ppm ship50.pbm ship50.ppm ship51.pbm ship51.ppm ship52.pbm
+ ship52.ppm ship53.pbm ship53.ppm ship54.pbm ship54.ppm ship55.pbm ship55.ppm
+ ship56.pbm ship56.ppm ship57.pbm ship57.ppm ship58.pbm ship58.ppm ship59.pbm
+ ship59.ppm ship60.pbm ship60.ppm ship61.pbm ship61.ppm ship62.pbm ship62.ppm
+ ship63.pbm ship63.ppm ship64.pbm ship64.ppm
+ DESTINATION ${DATA_INSTALL_DIR}/kspaceduel/sprites/ship2
+)
diff --git a/kspaceduel/sprites/sun/CMakeLists.txt b/kspaceduel/sprites/sun/CMakeLists.txt
new file mode 100644
index 00000000..7cffe1b6
--- /dev/null
+++ b/kspaceduel/sprites/sun/CMakeLists.txt
@@ -0,0 +1,5 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES sun.ppm sun.pbm
+ DESTINATION ${DATA_INSTALL_DIR}/kspaceduel/sprites/sun
+)
diff --git a/ktron/CMakeLists.txt b/ktron/CMakeLists.txt
new file mode 100644
index 00000000..e5ea84e2
--- /dev/null
+++ b/ktron/CMakeLists.txt
@@ -0,0 +1,41 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( pics )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### ktron (executable) ########################
+
+tde_add_executable( ktron AUTOMOC
+ SOURCES ai.ui appearance.ui general.ui tron.cpp player.cpp ktron.cpp main.cpp
+ settings.kcfgc
+ LINK tdecore-shared tdeui-shared tdeio-shared tdeio-shared tdegames-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES ktron.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES ktron.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)
+
+install( FILES ktronui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/ktron
+)
diff --git a/ktron/pics/CMakeLists.txt b/ktron/pics/CMakeLists.txt
new file mode 100644
index 00000000..510accfe
--- /dev/null
+++ b/ktron/pics/CMakeLists.txt
@@ -0,0 +1,4 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+tde_install_icons( )
+
diff --git a/ktuberling/CMakeLists.txt b/ktuberling/CMakeLists.txt
new file mode 100644
index 00000000..d8136023
--- /dev/null
+++ b/ktuberling/CMakeLists.txt
@@ -0,0 +1,49 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( museum )
+add_subdirectory( sounds )
+add_subdirectory( pics )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### ktuberling (executable) ###################
+
+tde_add_executable( ktuberling AUTOMOC
+ SOURCES action.cpp main.cpp toplevel.cpp playground.cpp todraw.cpp
+ soundfactory.cpp
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared
+ tdeprint-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( ktuberling )
+
+
+##### other data ################################
+
+install( FILES x-tuberling.desktop
+ DESTINATION ${MIME_INSTALL_DIR}/application
+)
+
+install( FILES ktuberling.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES ktuberlingui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/ktuberling
+)
diff --git a/ktuberling/museum/CMakeLists.txt b/ktuberling/museum/CMakeLists.txt
new file mode 100644
index 00000000..47a4de6d
--- /dev/null
+++ b/ktuberling/museum/CMakeLists.txt
@@ -0,0 +1,9 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES businessman.tuberling cool.tuberling cyclop.tuberling
+ dali.tuberling einstein.tuberling fly.tuberling grandpa.tuberling
+ happy.tuberling idiot.tuberling miss.tuberling mouse.tuberling
+ picasso.tuberling serious.tuberling crazy.tuberling hippie.tuberling
+ sea.tuberling
+ DESTINATION ${DATA_INSTALL_DIR}/ktuberling/museum
+)
diff --git a/ktuberling/pics/CMakeLists.txt b/ktuberling/pics/CMakeLists.txt
new file mode 100644
index 00000000..56db4a89
--- /dev/null
+++ b/ktuberling/pics/CMakeLists.txt
@@ -0,0 +1,6 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES penguin-game.png penguin-mask.png potato-game.png
+ potato-mask.png aquarium-game.png aquarium-mask.png layout.xml
+ DESTINATION ${DATA_INSTALL_DIR}/ktuberling/pics
+)
diff --git a/ktuberling/sounds/CMakeLists.txt b/ktuberling/sounds/CMakeLists.txt
new file mode 100644
index 00000000..510b9f3c
--- /dev/null
+++ b/ktuberling/sounds/CMakeLists.txt
@@ -0,0 +1,7 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES badge.wav bow.wav cigar.wav ear.wav earring.wav eye.wav
+ eyebrow.wav hat.wav moustache.wav mouth.wav nose.wav spectacles.wav
+ sunglasses.wav tuberling.wav watch.wav
+ DESTINATION ${DATA_INSTALL_DIR}/ktuberling/sounds/en
+)
diff --git a/libksirtet/CMakeLists.txt b/libksirtet/CMakeLists.txt
new file mode 100644
index 00000000..330666ba
--- /dev/null
+++ b/libksirtet/CMakeLists.txt
@@ -0,0 +1,5 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( base )
+add_subdirectory( lib )
+add_subdirectory( common )
diff --git a/libksirtet/base/CMakeLists.txt b/libksirtet/base/CMakeLists.txt
new file mode 100644
index 00000000..869578b2
--- /dev/null
+++ b/libksirtet/base/CMakeLists.txt
@@ -0,0 +1,23 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/highscore
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### ksirtetbase (static) ######################
+
+tde_add_library( ksirtetbase STATIC_PIC AUTOMOC
+ SOURCES kzoommainwindow.cpp main.cpp field.cpp piece.cpp highscores.cpp
+ factory.cpp gtetris.cpp board.cpp settings.cpp inter.cpp baseprefs.kcfgc
+)
diff --git a/libksirtet/common/CMakeLists.txt b/libksirtet/common/CMakeLists.txt
new file mode 100644
index 00000000..a094ea8b
--- /dev/null
+++ b/libksirtet/common/CMakeLists.txt
@@ -0,0 +1,36 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/libksirtet
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libksirtet
+ ${CMAKE_SOURCE_DIR}/libksirtet/base
+ ${CMAKE_SOURCE_DIR}/libtdegames/highscore
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### ksirtetcommon (static) ####################
+
+tde_add_library( ksirtetcommon STATIC_PIC AUTOMOC
+ SOURCES types.cpp factory.cpp misc_ui.cpp highscores.cpp board.cpp ai.cpp
+ field.cpp settings.cpp inter.cpp main.cpp commonprefs.kcfgc
+ LINK tdegames-shared ksirtetmultiplayers-static ksirtetbase-static
+)
diff --git a/libksirtet/lib/CMakeLists.txt b/libksirtet/lib/CMakeLists.txt
new file mode 100644
index 00000000..c9bfe754
--- /dev/null
+++ b/libksirtet/lib/CMakeLists.txt
@@ -0,0 +1,34 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### ksirtetmultiplayers (static) ##############
+
+tde_moc( MOC_SOURCES mp_board.h )
+
+tde_add_library( ksirtetmultiplayers STATIC_PIC AUTOMOC
+ SOURCES miscui.cpp types.cpp defines.cpp socket.cpp smanager.cpp pline.cpp
+ wizard.cpp meeting.cpp keys.cpp mp_interface.cpp internal.cpp
+ mp_simple_types.cpp mp_simple_board.cpp mp_simple_interface.cpp
+ ${MOC_SOURCES}
+)
diff --git a/libtdegames/CMakeLists.txt b/libtdegames/CMakeLists.txt
new file mode 100644
index 00000000..5e79dc39
--- /dev/null
+++ b/libtdegames/CMakeLists.txt
@@ -0,0 +1,56 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+project( libtdegames )
+
+add_subdirectory( carddecks )
+add_subdirectory( highscore )
+add_subdirectory( kgame )
+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}
+)
+
+
+##### tdegames (shared) #########################
+
+tde_add_library( tdegames SHARED AUTOMOC
+ SOURCES kcarddialog.cpp kstdgameaction.cpp kgamemisc.cpp kchatbase.cpp
+ kchat.cpp kchatdialog.cpp kgameprogress.cpp kcanvasrootpixmap.cpp
+ kgamelcd.cpp
+ VERSION 3.0.2
+ EMBED khighscore-static kgame-static kgamedialogs-static
+ LINK tdecore-shared tdeui-shared tdednssd-shared tdeio-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ kgamemisc.h kcarddialog.h kstdgameaction.h kchatbase.h kchat.h
+ kchatdialog.h kgameprogress.h kcanvasrootpixmap.h kgamelcd.h kgrid2d.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}
+)
+
+
+##### install import cmake modules ###############
+
+tde_install_export( )
diff --git a/libtdegames/carddecks/CMakeLists.txt b/libtdegames/carddecks/CMakeLists.txt
new file mode 100644
index 00000000..102d0391
--- /dev/null
+++ b/libtdegames/carddecks/CMakeLists.txt
@@ -0,0 +1,17 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( DIRECTORY cards-aisleriot cards-dondorf-whist-b
+ cards-gdkcard-bonded cards-hard-a-port cards-penguins
+ cards-spaced cards-xskat-french cards-default decks
+ cards-konqi-modern cards-warwick cards-xskat-german
+ DESTINATION ${DATA_INSTALL_DIR}/carddecks
+)
diff --git a/libtdegames/highscore/CMakeLists.txt b/libtdegames/highscore/CMakeLists.txt
new file mode 100644
index 00000000..bc2a0ce4
--- /dev/null
+++ b/libtdegames/highscore/CMakeLists.txt
@@ -0,0 +1,40 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### khighscore (static) #######################
+
+tde_add_library( khighscore STATIC_PIC AUTOMOC
+ SOURCES tdeconfigrawbackend.cpp tdefilelock.cpp khighscore.cpp
+ kscoredialog.cpp kexthighscore_item.cpp kexthighscore_internal.cpp
+ kexthighscore_tab.cpp kexthighscore_gui.cpp kexthighscore.cpp
+)
+
+
+##### headers ###################################
+
+install( FILES khighscore.h kscoredialog.h kexthighscore_item.h
+ kexthighscore.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}
+)
diff --git a/libtdegames/kgame/CMakeLists.txt b/libtdegames/kgame/CMakeLists.txt
new file mode 100644
index 00000000..d15f8bf7
--- /dev/null
+++ b/libtdegames/kgame/CMakeLists.txt
@@ -0,0 +1,48 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( dialogs )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kgame (static) ############################
+
+tde_add_library( kgame STATIC_PIC AUTOMOC
+ SOURCES kgame.cpp kplayer.cpp kgamenetwork.cpp kgameproperty.cpp
+ kgamemessage.cpp kgameio.cpp kgameprocess.cpp kgamechat.cpp
+ kgamepropertyhandler.cpp kgameerror.cpp kgamesequence.cpp
+ kmessageio.cpp kmessageserver.cpp kmessageclient.cpp
+
+)
+
+
+##### headers ###################################
+
+install( FILES
+ kgame.h kplayer.h kgamenetwork.h kgameproperty.h kgamemessage.h
+ kgameio.h kgameprocess.h kgamepropertyarray.h
+ kgamepropertylist.h kgamechat.h kgamepropertyhandler.h
+ kgameerror.h kgamesequence.h kgameversion.h
+ kmessageio.h kmessageserver.h kmessageclient.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kgame
+)
diff --git a/libtdegames/kgame/dialogs/CMakeLists.txt b/libtdegames/kgame/dialogs/CMakeLists.txt
new file mode 100644
index 00000000..17bbefd4
--- /dev/null
+++ b/libtdegames/kgame/dialogs/CMakeLists.txt
@@ -0,0 +1,30 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/kgame
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kgamedialogs (static) #####################
+
+tde_add_library( kgamedialogs STATIC_PIC AUTOMOC
+ SOURCES kgamedialog.cpp kgameconnectdialog.cpp kgameerrordialog.cpp
+ kgamedebugdialog.cpp kgamedialogconfig.cpp
+)
+
+
+##### headers ###################################
+install( FILES kgamedialog.h kgameconnectdialog.h kgameerrordialog.h
+ kgamedebugdialog.h kgamedialogconfig.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kgame
+)
diff --git a/libtdegames/pics/CMakeLists.txt b/libtdegames/pics/CMakeLists.txt
new file mode 100644
index 00000000..45e7c022
--- /dev/null
+++ b/libtdegames/pics/CMakeLists.txt
@@ -0,0 +1,9 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+tde_install_icons( action-roll action-highscore action-endturn )
+
+
+##### other data ################################
+install( FILES star.png
+ DESTINATION ${DATA_INSTALL_DIR}/tdegames/pics
+)
diff --git a/lskat/CMakeLists.txt b/lskat/CMakeLists.txt
new file mode 100644
index 00000000..ac533468
--- /dev/null
+++ b/lskat/CMakeLists.txt
@@ -0,0 +1,16 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( lskat )
+add_subdirectory( grafix )
+add_subdirectory( lskatproc )
+
+##### icons #####################################
+
+tde_install_icons( lskat )
+
+
+##### other data ################################
+
+install( FILES lskat.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
diff --git a/lskat/grafix/CMakeLists.txt b/lskat/grafix/CMakeLists.txt
new file mode 100644
index 00000000..5ce6d96a
--- /dev/null
+++ b/lskat/grafix/CMakeLists.txt
@@ -0,0 +1,6 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES background.png deck1.png deck2.png deck3.png deck4.png t1.png
+ t2.png t3.png t4.png t5.png tback.png type1.png type2.png type3.png
+ DESTINATION ${DATA_INSTALL_DIR}/lskat/grafix
+)
diff --git a/lskat/lskat/CMakeLists.txt b/lskat/lskat/CMakeLists.txt
new file mode 100644
index 00000000..81ec42e7
--- /dev/null
+++ b/lskat/lskat/CMakeLists.txt
@@ -0,0 +1,34 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### lskat (executable) ########################
+
+tde_add_executable( lskat AUTOMOC
+ SOURCES msgdlg.cpp networkdlg.cpp namedlg.cpp KRemoteConnect.cpp KRSocket.cpp
+ TDEProcessConnect.cpp KMessageEntry.cpp KInteractiveConnect.cpp
+ KInputChildProcess.cpp KEMessage.cpp KEInput.cpp KConnectEntry.cpp
+ KChildConnect.cpp lskatview.cpp lskatdoc.cpp lskat.cpp main.cpp
+ networkdlgbase.ui
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared tdednssd-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES lskatui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/lskat
+)
diff --git a/lskat/lskat/KRSocket.cpp b/lskat/lskat/KRSocket.cpp
index 9b904ac3..a508989b 100644
--- a/lskat/lskat/KRSocket.cpp
+++ b/lskat/lskat/KRSocket.cpp
@@ -188,7 +188,7 @@ bool KRServerSocket::init( const char *_path,int optname,int value,int level )
// Heni - 05042000
if (optname>0)
{
- kde_socklen_t len=sizeof(value);
+ socklen_t len=sizeof(value);
if (-1==setsockopt(sock,level,optname,(char*)&value,len ))
{
kdWarning() << "Could not set socket options." << endl;
@@ -251,7 +251,7 @@ bool KRServerSocket::init( unsigned short int _port,int optname,int value,int le
// Heni - 05042000
if (optname>0)
{
- kde_socklen_t len=sizeof(value);
+ socklen_t len=sizeof(value);
if (-1==setsockopt(sock,level,optname,(char*)&value,len ))
{
kdWarning() << "Could not set socket options." << endl;
@@ -308,7 +308,7 @@ unsigned short int KRServerSocket::port()
if ( domain != PF_INET )
return false;
- ksockaddr_in name; kde_socklen_t len = sizeof(name);
+ ksockaddr_in name; socklen_t len = sizeof(name);
getsockname(sock, (struct sockaddr *) &name, &len);
return ntohs(get_sin_port(name));
}
@@ -318,7 +318,7 @@ unsigned long KRServerSocket::ipv4_addr()
if ( domain != PF_INET )
return 0;
- sockaddr_in name; kde_socklen_t len = sizeof(name);
+ sockaddr_in name; socklen_t len = sizeof(name);
getsockname(sock, (struct sockaddr *) &name, &len);
if (name.sin_family == AF_INET) // It's IPv4
return ntohl(name.sin_addr.s_addr);
@@ -337,7 +337,7 @@ void KRServerSocket::slotAccept( int )
ksockaddr_in clientname;
int new_sock;
- kde_socklen_t size = sizeof(clientname);
+ socklen_t size = sizeof(clientname);
if ((new_sock = accept (sock, (struct sockaddr *) &clientname, &size)) < 0)
{
@@ -352,7 +352,7 @@ void KRServerSocket::slotAccept( int )
struct sockaddr_un clientname;
int new_sock;
- kde_socklen_t size = sizeof(clientname);
+ socklen_t size = sizeof(clientname);
if ((new_sock = accept (sock, (struct sockaddr *) &clientname, &size)) < 0)
{
diff --git a/lskat/lskatproc/CMakeLists.txt b/lskat/lskatproc/CMakeLists.txt
new file mode 100644
index 00000000..5c9bb6a1
--- /dev/null
+++ b/lskat/lskatproc/CMakeLists.txt
@@ -0,0 +1,23 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### lskatproc (executable) ####################
+
+tde_add_executable( lskatproc AUTOMOC
+ SOURCES lskatproc.cpp KChildConnect.cpp KInputChildProcess.cpp KEMessage.cpp
+ KMessageEntry.cpp main.cpp
+ LINK tdecore-shared tdeui-shared tdeio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/lskat/lskatproc/docs/CMakeLists.txt b/lskat/lskatproc/docs/CMakeLists.txt
new file mode 100644
index 00000000..89a876b0
--- /dev/null
+++ b/lskat/lskatproc/docs/CMakeLists.txt
@@ -0,0 +1 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
diff --git a/lskat/lskatproc/docs/en/CMakeLists.txt b/lskat/lskatproc/docs/en/CMakeLists.txt
new file mode 100644
index 00000000..89a876b0
--- /dev/null
+++ b/lskat/lskatproc/docs/en/CMakeLists.txt
@@ -0,0 +1 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
diff --git a/twin4/CMakeLists.txt b/twin4/CMakeLists.txt
new file mode 100644
index 00000000..64dd715c
--- /dev/null
+++ b/twin4/CMakeLists.txt
@@ -0,0 +1,15 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( twin4 )
+add_subdirectory( grafix )
+
+##### icons #####################################
+
+tde_install_icons( twin4 )
+
+
+##### other data ################################
+
+install( FILES twin4.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
diff --git a/twin4/grafix/CMakeLists.txt b/twin4/grafix/CMakeLists.txt
new file mode 100644
index 00000000..2a679df4
--- /dev/null
+++ b/twin4/grafix/CMakeLists.txt
@@ -0,0 +1,15 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( DIRECTORY default
+ DESTINATION ${DATA_INSTALL_DIR}/twin4/grafix
+)
+
diff --git a/twin4/twin4/CMakeLists.txt b/twin4/twin4/CMakeLists.txt
new file mode 100644
index 00000000..cb991878
--- /dev/null
+++ b/twin4/twin4/CMakeLists.txt
@@ -0,0 +1,46 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/kgame
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### twin4 (executable) ########################
+
+tde_add_executable( twin4 AUTOMOC
+ SOURCES main.cpp twin4.cpp twin4view.cpp twin4doc.cpp twin4player.cpp
+ kspritecache.cpp scorewidget.cpp prefs.kcfgc settings.ui statistics.ui
+ statuswidget.ui
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### twin4proc (executable) ####################
+
+tde_add_executable( twin4proc AUTOMOC
+ SOURCES twin4proc.cpp
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES twin4ui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/twin4
+)
+
+install( FILES twin4.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)