summaryrefslogtreecommitdiffstats
path: root/kbattleship
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2016-02-25 06:23:55 +0300
committerSlávek Banko <slavek.banko@axis.cz>2016-03-14 23:04:46 +0100
commit22eaaf46994712a7ea19be99d49c5ceb889470bd (patch)
tree6813293435ece498f1d90a99adfa5e9a49c875fe /kbattleship
parentfa5d2dca53e1046fe38ac7cf0210d45ad5cc5107 (diff)
downloadtdegames-22eaaf46994712a7ea19be99d49c5ceb889470bd.tar.gz
tdegames-22eaaf46994712a7ea19be99d49c5ceb889470bd.zip
Initial cmake conversion
(cherry picked from commit c70db62d3671e524d23ac974d296eb218159b000)
Diffstat (limited to 'kbattleship')
-rw-r--r--kbattleship/CMakeLists.txt3
-rw-r--r--kbattleship/kbattleship/CMakeLists.txt59
-rw-r--r--kbattleship/kbattleship/dialogs/CMakeLists.txt30
-rw-r--r--kbattleship/kbattleship/pictures/CMakeLists.txt13
-rw-r--r--kbattleship/kbattleship/sounds/CMakeLists.txt6
5 files changed, 111 insertions, 0 deletions
diff --git a/kbattleship/CMakeLists.txt b/kbattleship/CMakeLists.txt
new file mode 100644
index 00000000..db254495
--- /dev/null
+++ b/kbattleship/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( kbattleship )
diff --git a/kbattleship/kbattleship/CMakeLists.txt b/kbattleship/kbattleship/CMakeLists.txt
new file mode 100644
index 00000000..5e140a16
--- /dev/null
+++ b/kbattleship/kbattleship/CMakeLists.txt
@@ -0,0 +1,59 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( dialogs )
+add_subdirectory( pictures )
+add_subdirectory( sounds )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${CMAKE_SOURCE_DIR}/libtdegames/highscore
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kbattleship (executable) ##################
+
+tde_add_executable( kbattleship AUTOMOC
+ SOURCES kbaiplayer.cpp kbstrategy.cpp kbverticalstepstrategy.cpp
+ kbdestroyshipstrategy.cpp kbhorizontalstepstrategy.cpp
+ kbrandomshotstrategy.cpp kbdiagonalwrapstrategy.cpp kmessage.cpp
+ kbattleshipserver.cpp kbattleshipclient.cpp kbattleshipview.cpp
+ kgridwidget.cpp kbattlefield.cpp kchatwidget.cpp kserverdialog.cpp
+ kclientdialog.cpp kstatdialog.cpp kbdiagonalshotstrategy.cpp
+ konnectionhandling.cpp kship.cpp kshiplist.cpp kbchooserstrategy.cpp
+ kbattleship.cpp main.cpp
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared
+ tdednssd-shared kbattleshipdialogs-static
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+install( FILES kbattleshipui.rc eventsrc
+ DESTINATION ${DATA_INSTALL_DIR}/kbattleship
+)
+
+install( FILES kbattleship.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES _kbattleship._tcp
+ DESTINATION ${DATA_INSTALL_DIR}/zeroconf
+)
diff --git a/kbattleship/kbattleship/dialogs/CMakeLists.txt b/kbattleship/kbattleship/dialogs/CMakeLists.txt
new file mode 100644
index 00000000..26215d96
--- /dev/null
+++ b/kbattleship/kbattleship/dialogs/CMakeLists.txt
@@ -0,0 +1,30 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kbattleshipdialogs (static) ###############
+
+tde_add_library( kbattleshipdialogs STATIC_PIC AUTOMOC
+ SOURCES connectDlg.ui serverDlg.ui chatDlg.ui statDlg.ui infoDlg.ui
+ LINK tdecore-shared tdeui-shared tdeio-shared tdeui-shared
+)
diff --git a/kbattleship/kbattleship/pictures/CMakeLists.txt b/kbattleship/kbattleship/pictures/CMakeLists.txt
new file mode 100644
index 00000000..5bb60870
--- /dev/null
+++ b/kbattleship/kbattleship/pictures/CMakeLists.txt
@@ -0,0 +1,13 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+tde_install_icons( kbattleship )
+
+
+##### other data ################################
+install( FILES sea.png water.png hit.png death.png border.png ship1-1.png
+ ship2-1.png ship2-2.png ship3-1.png ship3-2.png ship3-3.png ship4-1.png
+ ship4-2.png ship4-3.png ship4-4.png ship1-1-r.png ship2-1-r.png ship2-2-r.png
+ ship3-1-r.png ship3-2-r.png ship3-3-r.png ship4-1-r.png ship4-2-r.png
+ ship4-3-r.png ship4-4-r.png
+ DESTINATION ${DATA_INSTALL_DIR}/kbattleship/pictures
+)
diff --git a/kbattleship/kbattleship/sounds/CMakeLists.txt b/kbattleship/kbattleship/sounds/CMakeLists.txt
new file mode 100644
index 00000000..156bc502
--- /dev/null
+++ b/kbattleship/kbattleship/sounds/CMakeLists.txt
@@ -0,0 +1,6 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES ship-player-shoot-water.ogg ship-player1-shoot.ogg
+ ship-player2-shoot.ogg ship-sink.ogg
+ DESTINATION ${DATA_INSTALL_DIR}/kbattleship/sounds
+)