3 add_subdirectory(config)
6 ${CMAKE_CURRENT_SOURCE_DIR}/rdp/
7 ${CMAKE_CURRENT_SOURCE_DIR}/vnc/
8 ${CMAKE_CURRENT_SOURCE_DIR}/zeroconf/
12 set(HAVE_RDESKTOP true) # TODO: implement cmake check?
16 add_definitions(-DBUILD_RDP)
18 rdp/rdphostpreferences.cpp
22 kde4_add_ui_files(krdc_rdp_SRCS
28 add_definitions(-DBUILD_ZEROCONF)
29 set(krdc_zeroconf_SRCS
30 zeroconf/zeroconfpage.cpp
34 if(LIBVNCSERVER_FOUND)
35 add_definitions(-DBUILD_VNC)
37 include_directories(${LIBVNCCLIENT_INCLUDE_DIR})
40 vnc/vnchostpreferences.cpp
41 vnc/vncclientthread.cpp
45 kde4_add_ui_files(krdc_vnc_SRCS
48 endif(LIBVNCSERVER_FOUND)
50 set(krdc_SRCS ${krdc_zeroconf_SRCS} ${krdc_rdp_SRCS} ${krdc_vnc_SRCS}
52 config/hostpreferenceslist.cpp
53 config/preferencesdialog.cpp
56 remotedesktopsitem.cpp
57 remotedesktopsmodel.cpp
64 kde4_add_ui_files(krdc_SRCS
68 kde4_add_kcfg_files(krdc_SRCS config/settings.kcfgc)
70 kde4_add_executable(krdc ${krdc_SRCS})
72 target_link_libraries(krdc ${KDE4_KFILE_LIBS} ${KDE4_KNOTIFYCONFIG_LIBS})
74 if(LIBVNCSERVER_FOUND)
75 target_link_libraries(krdc ${LIBVNCCLIENT_LIBRARIES})
78 target_link_libraries(krdc ${JPEG_LIBRARIES})
80 endif(LIBVNCSERVER_FOUND)
83 target_link_libraries(krdc ${KDE4_KDNSSD_LIBS})
86 install(TARGETS krdc DESTINATION ${BIN_INSTALL_DIR})
87 install(FILES krdcui.rc DESTINATION ${DATA_INSTALL_DIR}/krdc)
88 install(FILES krdc.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
89 install(FILES vnc.protocol rdp.protocol DESTINATION ${SERVICES_INSTALL_DIR})
90 install(FILES smb2rdc.desktop DESTINATION ${SERVICES_INSTALL_DIR}/ServiceMenus)
91 install(FILES pointcursor.png pointcursormask.png DESTINATION ${DATA_INSTALL_DIR}/krdc/pics)