Initial cmake conversion

pull/1/head
Alexander Golubev 9 years ago committed by Slávek Banko
parent 133cc7035d
commit c70db62d36

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