[kdenetwork/krdc] added cmake support

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1254087 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
samelian 13 years ago
parent a7d8c5aa21
commit ece9abdc38

@ -101,6 +101,7 @@ option( BUILD_KNEWSTICKER "Build knewsticker" ${BUILD_ALL} )
option( BUILD_KOPETE "Build kopete" ${BUILD_ALL} ) option( BUILD_KOPETE "Build kopete" ${BUILD_ALL} )
option( BUILD_KPF "Build kpf" ${BUILD_ALL} ) option( BUILD_KPF "Build kpf" ${BUILD_ALL} )
option( BUILD_KPPP "Build kppp" ${BUILD_ALL} ) option( BUILD_KPPP "Build kppp" ${BUILD_ALL} )
option( BUILD_KRDC "Build krdc" ${BUILD_ALL} )
option( BUILD_LIBRSS "Build librss" ${BUILD_ALL} ) option( BUILD_LIBRSS "Build librss" ${BUILD_ALL} )
@ -133,6 +134,7 @@ tde_conditional_add_subdirectory( BUILD_KNEWSTICKER knewsticker )
tde_conditional_add_subdirectory( BUILD_KOPETE kopete ) tde_conditional_add_subdirectory( BUILD_KOPETE kopete )
tde_conditional_add_subdirectory( BUILD_KPF kpf ) tde_conditional_add_subdirectory( BUILD_KPF kpf )
tde_conditional_add_subdirectory( BUILD_KPPP kppp ) tde_conditional_add_subdirectory( BUILD_KPPP kppp )
tde_conditional_add_subdirectory( BUILD_KRDC krdc )
tde_conditional_add_subdirectory( BUILD_LIBRSS librss ) tde_conditional_add_subdirectory( BUILD_LIBRSS librss )

@ -1,3 +1,6 @@
// krdp
#define VERSION "@VERSION@"
// NOTE: // NOTE:
// this definition is safe for modern Linux systems // this definition is safe for modern Linux systems
// for other OSes can be necessary to check // for other OSes can be necessary to check

@ -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}
)

@ -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
)

@ -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
)
Loading…
Cancel
Save