summaryrefslogtreecommitdiffstats
path: root/kbattleship
diff options
context:
space:
mode:
authorAlexander Golubev <[email protected]>2016-02-25 06:23:55 +0300
committerSlávek Banko <[email protected]>2016-03-14 23:04:06 +0100
commitc70db62d3671e524d23ac974d296eb218159b000 (patch)
tree08d8ed5d0c7c170a7940bcbb80989b99ead98447 /kbattleship
parent133cc7035dbdcaf812d8370f729530fa60547f92 (diff)
downloadtdegames-c70db62d3671e524d23ac974d296eb218159b000.tar.gz
tdegames-c70db62d3671e524d23ac974d296eb218159b000.zip
Initial cmake conversion
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
+)