Initial cmake conversion

(cherry picked from commit c70db62d36)
r14.0.x
Alexander Golubev 9 years ago committed by Slávek Banko
parent fa5d2dca53
commit 22eaaf4699

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
add_subdirectory( default )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
add_subdirectory( tokens )

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

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

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_auto_add_subdirectories( )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION atlantik )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION kasteroids )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION katomic )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION kbackgammon )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION kbattleship )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION kblackbox )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION kbounce )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION kenolaba )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION kfouleggs )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION kgoldrunner )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION kjumpingcube )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION klickety )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION klines )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION kmahjongg )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION kmines )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION kolf )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION konquest )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION kpat )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION kpoker )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION kreversi )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION ksame )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION kshisen )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION ksirtet )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION ksmiletris )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION ksnake )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION ksokoban )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION kspaceduel )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION ktron )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION ktuberling )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION lskat )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION twin4 )

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

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

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

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

@ -0,0 +1,3 @@
install (FILES
exhaust.png
DESTINATION ${KASTEROID_SPRITES_DIR}/exhaust )

@ -0,0 +1,3 @@
install (FILES
missile.png
DESTINATION ${KASTEROID_SPRITES_DIR}/missile )

@ -0,0 +1,7 @@
install (FILES
brake.png
energy.png
shield.png
shoot.png
teleport.png
DESTINATION ${KASTEROID_SPRITES_DIR}/powerups )

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -0,0 +1,4 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_install_icons( kbackgammon kbackgammon_engine )

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

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

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
add_subdirectory( kbattleship )

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

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

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

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

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

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

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

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

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

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

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

@ -0,0 +1 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer

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

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

@ -0,0 +1,4 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_install_icons( )

@ -0,0 +1,4 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
add_subdirectory( src )
add_subdirectory( gamedata )

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

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

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

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

@ -0,0 +1,4 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_install_icons( )

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

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

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

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

@ -0,0 +1 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer

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

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

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
add_subdirectory( src )

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

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

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

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

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

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

@ -0,0 +1 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer

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

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

@ -0,0 +1,4 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_install_icons( )

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

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

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

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

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

@ -851,4 +851,4 @@ public:
//-------------------------------------------------------------------------//
#include"freecell.moc"
#include "freecell.moc"

@ -163,7 +163,7 @@ public:
//-------------------------------------------------------------------------//
#include"golf.moc"
#include "golf.moc"
//-------------------------------------------------------------------------//

@ -0,0 +1,4 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_install_icons( kpat )

@ -306,7 +306,7 @@ public:
//-------------------------------------------------------------------------//
#include"mod3.moc"
#include "mod3.moc"
//-------------------------------------------------------------------------//

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

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

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

@ -0,0 +1,4 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_install_icons( )

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

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

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

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

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

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

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
add_subdirectory( ksirtet )

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -0,0 +1,4 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_install_icons( )

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -0,0 +1 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer

@ -0,0 +1 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer

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

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

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