From c70db62d3671e524d23ac974d296eb218159b000 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Thu, 25 Feb 2016 06:23:55 +0300 Subject: Initial cmake conversion --- kenolaba/CMakeLists.txt | 42 +++++++++++++++++++++++++++++++++++++++++ kenolaba/Network.cpp | 2 +- kenolaba/bitmaps/CMakeLists.txt | 1 + kenolaba/toolbar/CMakeLists.txt | 7 +++++++ 4 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 kenolaba/CMakeLists.txt create mode 100644 kenolaba/bitmaps/CMakeLists.txt create mode 100644 kenolaba/toolbar/CMakeLists.txt (limited to 'kenolaba') 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 +) -- cgit v1.2.3