From ece9abdc38cb8c4cc35fb350e481cc62ef8f71d9 Mon Sep 17 00:00:00 2001 From: samelian Date: Sat, 17 Sep 2011 12:42:29 +0000 Subject: [kdenetwork/krdc] added cmake support git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1254087 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- krdc/CMakeLists.txt | 65 +++++++++++++++++++++++++++++++++++++++++++++++++ krdc/rdp/CMakeLists.txt | 24 ++++++++++++++++++ krdc/vnc/CMakeLists.txt | 27 ++++++++++++++++++++ 3 files changed, 116 insertions(+) create mode 100644 krdc/CMakeLists.txt create mode 100644 krdc/rdp/CMakeLists.txt create mode 100644 krdc/vnc/CMakeLists.txt (limited to 'krdc') diff --git a/krdc/CMakeLists.txt b/krdc/CMakeLists.txt new file mode 100644 index 00000000..c307684a --- /dev/null +++ b/krdc/CMakeLists.txt @@ -0,0 +1,65 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( vnc ) +add_subdirectory( rdp ) + + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +tde_install_icons( krdc ) + +install( FILES + pointcursor.png pointcursormask.png pinup.png pindown.png + iconify.png close.png + DESTINATION ${DATA_INSTALL_DIR}/krdc/pics ) + +install( FILES + _rfb._tcp + DESTINATION ${DATA_INSTALL_DIR}/zeroconf ) + +install( FILES + krdc.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} ) + +install( FILES + smb2rdc.desktop + DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus ) + +install( FILES + vnc.protocol rdp.protocol + DESTINATION ${SERVICES_INSTALL_DIR} ) + + +##### krdc (executable) ######################### + +tde_add_executable( krdc AUTOMOC + SOURCES + main.cpp krdc.cpp vidmode.cpp kfullscreenpanel.cpp hostprofiles.ui + maindialogbase.ui keycapturewidget.ui kservicelocator.cpp + keycapturedialog.cpp kremoteview.cpp smartptr.cpp hostpreferences.cpp + preferencesdialog.cpp maindialogwidget.cpp maindialog.cpp + LINK vnc-static rdp-static kdeui-shared kdnssd-shared kwalletclient-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/krdc/rdp/CMakeLists.txt b/krdc/rdp/CMakeLists.txt new file mode 100644 index 00000000..4cda14bc --- /dev/null +++ b/krdc/rdp/CMakeLists.txt @@ -0,0 +1,24 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/.. + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + + +##### rdp (static) ############################## + +tde_add_library( rdp STATIC_PIC AUTOMOC + SOURCES krdpview.cpp rdphostpref.cpp rdpprefs.ui +) diff --git a/krdc/vnc/CMakeLists.txt b/krdc/vnc/CMakeLists.txt new file mode 100644 index 00000000..60f1c8f1 --- /dev/null +++ b/krdc/vnc/CMakeLists.txt @@ -0,0 +1,27 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/.. + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + + +##### vnc (static) ############################## + +tde_add_library( vnc STATIC_PIC AUTOMOC + SOURCES + kvncview.cpp threads.cpp colour.c d3des.c desktop.c rfbproto.c sockets.c + vncauth.c vncprefs.ui vnchostpref.cpp +) -- cgit v1.2.1