diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-09-17 12:42:29 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-09-17 12:42:29 +0000 |
commit | ece9abdc38cb8c4cc35fb350e481cc62ef8f71d9 (patch) | |
tree | 0ac6f9c1bac04354c30c7ad29450b62f6d206d10 /krdc | |
parent | a7d8c5aa21a1470dbab6f4d8c31292e402d8bdf0 (diff) | |
download | tdenetwork-ece9abdc38cb8c4cc35fb350e481cc62ef8f71d9.tar.gz tdenetwork-ece9abdc38cb8c4cc35fb350e481cc62ef8f71d9.zip |
[kdenetwork/krdc] added cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1254087 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krdc')
-rw-r--r-- | krdc/CMakeLists.txt | 65 | ||||
-rw-r--r-- | krdc/rdp/CMakeLists.txt | 24 | ||||
-rw-r--r-- | krdc/vnc/CMakeLists.txt | 27 |
3 files changed, 116 insertions, 0 deletions
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 +) |