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:06 +0100
commitc70db62d3671e524d23ac974d296eb218159b000 (patch)
tree08d8ed5d0c7c170a7940bcbb80989b99ead98447 /kenolaba
parent133cc7035dbdcaf812d8370f729530fa60547f92 (diff)
downloadtdegames-c70db62d3671e524d23ac974d296eb218159b000.tar.gz
tdegames-c70db62d3671e524d23ac974d296eb218159b000.zip
Initial cmake conversion
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
+)