summaryrefslogtreecommitdiffstats
path: root/kenolaba
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 /kenolaba
parentfa5d2dca53e1046fe38ac7cf0210d45ad5cc5107 (diff)
downloadtdegames-22eaaf46994712a7ea19be99d49c5ceb889470bd.tar.gz
tdegames-22eaaf46994712a7ea19be99d49c5ceb889470bd.zip
Initial cmake conversion
(cherry picked from commit c70db62d3671e524d23ac974d296eb218159b000)
Diffstat (limited to 'kenolaba')
-rw-r--r--kenolaba/CMakeLists.txt42
-rw-r--r--kenolaba/Network.cpp2
-rw-r--r--kenolaba/bitmaps/CMakeLists.txt1
-rw-r--r--kenolaba/toolbar/CMakeLists.txt7
4 files changed, 51 insertions, 1 deletions
diff --git a/kenolaba/CMakeLists.txt b/kenolaba/CMakeLists.txt
new file mode 100644
index 00000000..e5398246
--- /dev/null
+++ b/kenolaba/CMakeLists.txt
@@ -0,0 +1,42 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( toolbar )
+add_subdirectory( bitmaps )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kenolaba (executable) #####################
+
+tde_add_executable( kenolaba AUTOMOC
+ SOURCES Board.cpp Move.cpp BoardWidget.cpp AbTop.cpp kenolaba.cpp Spy.cpp
+ Ball.cpp Network.cpp EvalDlg.ui EvalDlgImpl.cpp EvalScheme.cpp
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( kenolaba )
+
+
+##### other data ################################
+install( FILES kenolabaui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kenolaba
+)
+
+install( FILES kenolaba.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
diff --git a/kenolaba/Network.cpp b/kenolaba/Network.cpp
index 0f031e99..9be7c0c0 100644
--- a/kenolaba/Network.cpp
+++ b/kenolaba/Network.cpp
@@ -89,7 +89,7 @@ void Network::gotConnection()
static char tmp[1024];
int len=0;
struct sockaddr_in sin;
- kde_socklen_t sz = sizeof (sin);
+ socklen_t sz = sizeof (sin);
// printf("GotConnection: ");
int s = accept(fd,(struct sockaddr *)&sin, &sz);
diff --git a/kenolaba/bitmaps/CMakeLists.txt b/kenolaba/bitmaps/CMakeLists.txt
new file mode 100644
index 00000000..89a876b0
--- /dev/null
+++ b/kenolaba/bitmaps/CMakeLists.txt
@@ -0,0 +1 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
diff --git a/kenolaba/toolbar/CMakeLists.txt b/kenolaba/toolbar/CMakeLists.txt
new file mode 100644
index 00000000..13bed4ee
--- /dev/null
+++ b/kenolaba/toolbar/CMakeLists.txt
@@ -0,0 +1,7 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES new.xpm stop.xpm edit.xpm hint.xpm undo.xpm redball.xpm
+ yellowball.xpm noball.xpm warning.xpm ok.xpm spy0.xpm spy1.xpm spy2.xpm
+ spy3.xpm network.xpm
+ DESTINATION ${DATA_INSTALL_DIR}/kenolaba/pics
+)