2014-12-27 19:00:04 +00:00
|
|
|
project(krdc)
|
|
|
|
|
2020-02-10 23:43:40 +00:00
|
|
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
2022-10-03 20:32:24 +03:00
|
|
|
include(GenerateExportHeader)
|
|
|
|
include(FeatureSummary)
|
|
|
|
|
2023-06-17 18:39:16 +03:00
|
|
|
find_package(KDELibs4 4.23.0 REQUIRED)
|
|
|
|
|
2020-02-10 23:43:40 +00:00
|
|
|
include_directories(${KDE4_INCLUDES})
|
|
|
|
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
|
|
|
endif()
|
|
|
|
|
2022-10-02 13:35:46 +03:00
|
|
|
kde4_optional_find_package(LibVNCServer 0.9.8)
|
2020-02-20 23:33:47 +02:00
|
|
|
set_package_properties(LibVNCServer PROPERTIES
|
|
|
|
DESCRIPTION "VNC server / client library"
|
|
|
|
URL "http://libvncserver.sourceforge.net/"
|
|
|
|
PURPOSE "Needed to build VNC client support in KRDC"
|
2020-02-10 23:43:40 +00:00
|
|
|
)
|
2014-12-27 19:00:04 +00:00
|
|
|
|
2021-03-26 21:58:25 +02:00
|
|
|
# v1.0.2 required
|
|
|
|
find_program(FREERDP_EXECUTABLE xfreerdp)
|
|
|
|
add_feature_info(xfreerdp
|
|
|
|
FREERDP_EXECUTABLE
|
|
|
|
"A free Remote Desktop Protocol (RDP) Implementation"
|
|
|
|
)
|
|
|
|
|
2014-12-27 19:00:04 +00:00
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/core/
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/core/
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_subdirectory(core)
|
2023-06-29 01:20:38 +03:00
|
|
|
# add_subdirectory(konsole)
|
2014-12-27 19:00:04 +00:00
|
|
|
add_subdirectory(vnc)
|
|
|
|
add_subdirectory(rdp)
|
2023-06-10 19:40:14 +03:00
|
|
|
|
|
|
|
if(ENABLE_TESTING)
|
|
|
|
add_subdirectory(test)
|
|
|
|
endif()
|
2014-12-27 19:00:04 +00:00
|
|
|
|
2020-02-10 23:43:40 +00:00
|
|
|
add_definitions(
|
|
|
|
-DKDE_DEFAULT_DEBUG_AREA=5010
|
|
|
|
-DBUILD_ZEROCONF
|
|
|
|
)
|
2014-12-27 19:00:04 +00:00
|
|
|
|
|
|
|
set(krdc_SRCS
|
|
|
|
config/hostpreferenceslist.cpp
|
|
|
|
config/preferencesdialog.cpp
|
|
|
|
floatingtoolbar.cpp
|
|
|
|
bookmarkmanager.cpp
|
|
|
|
connectiondelegate.cpp
|
|
|
|
remotedesktopsmodel.cpp
|
|
|
|
systemtrayicon.cpp
|
|
|
|
tabbedviewwidget.cpp
|
|
|
|
mainwindow.cpp
|
|
|
|
main.cpp
|
|
|
|
)
|
|
|
|
|
2015-09-02 02:13:50 +03:00
|
|
|
add_executable(krdc ${krdc_SRCS})
|
2014-12-27 19:00:04 +00:00
|
|
|
|
|
|
|
target_link_libraries(krdc
|
2023-06-17 23:28:51 +03:00
|
|
|
KDE4::kfile
|
|
|
|
KDE4::kio
|
|
|
|
KDE4::knotifyconfig
|
|
|
|
KDE4::kcmutils
|
2014-12-27 19:00:04 +00:00
|
|
|
krdccore
|
|
|
|
)
|
|
|
|
|
2023-06-17 23:28:51 +03:00
|
|
|
target_link_libraries(krdc KDE4::kdnssd)
|
2014-12-27 19:00:04 +00:00
|
|
|
|
2023-06-17 18:39:16 +03:00
|
|
|
install(TARGETS krdc DESTINATION ${KDE4_BIN_INSTALL_DIR})
|
2020-02-08 18:39:41 +00:00
|
|
|
install(FILES krdcui.rc DESTINATION ${KDE4_DATA_INSTALL_DIR}/krdc)
|
|
|
|
install(PROGRAMS krdc.desktop DESTINATION ${KDE4_XDG_APPS_INSTALL_DIR})
|
|
|
|
install(FILES pointcursor.png pointcursormask.png DESTINATION ${KDE4_DATA_INSTALL_DIR}/krdc/pics)
|
2022-10-03 20:32:24 +03:00
|
|
|
|
|
|
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
2023-06-17 19:30:26 +03:00
|
|
|
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
2022-10-03 20:32:24 +03:00
|
|
|
endif()
|