mirror of
https://invent.kde.org/network/krfb
synced 2024-07-08 12:05:49 +00:00
This is currently required to be able to split off the event processing code in small functions so that it is possible to integrate libvncserver's event loop code with Qt's event loop properly. This is also what vino does; the whole event loop integration idea was taken from there. svn path=/trunk/KDE/kdenetwork/krfb/; revision=1195283
45 lines
1.4 KiB
CMake
45 lines
1.4 KiB
CMake
project(krfb)
|
|
|
|
if(NOT INSIDE_KDENETWORK)
|
|
message("Not building inside KDENetwork, loading KDE CMake Macros.")
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
|
|
|
|
find_package(KDE4 REQUIRED)
|
|
|
|
include(KDE4Defaults)
|
|
include(MacroLibrary)
|
|
|
|
include(CheckSymbolExists)
|
|
find_package(TelepathyQt4)
|
|
|
|
set(CMAKE_REQUIRED_DEFINITIONS ${_KDE_PLATFORM_DEFINITIONS})
|
|
|
|
add_definitions(${QT_DEFINITIONS} ${QT_DBUS_DEFINITIONS} ${KDE4_DEFINITIONS})
|
|
include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
|
|
endif(NOT INSIDE_KDENETWORK)
|
|
|
|
macro_bool_to_01(X11_Xdamage_FOUND HAVE_XDAMAGE)
|
|
macro_bool_to_01(X11_XShm_FOUND HAVE_XSHM)
|
|
|
|
include_directories ("${CMAKE_CURRENT_BINARY_DIR}/krfb"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/krfb"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/krfb/ui"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/libvncserver/"
|
|
"${CMAKE_CURRENT_BINARY_DIR}/libvncserver/"
|
|
)
|
|
|
|
if(Q_WS_X11)
|
|
if(NOT X11_XTest_FOUND)
|
|
macro_log_feature(X11_XTest_FOUND "libXtst" "X11 Testing Resource extension library" "http://xorg.freedesktop.org" FALSE "" "useful for automated testing of X clients.")
|
|
endif(NOT X11_XTest_FOUND)
|
|
endif(Q_WS_X11)
|
|
|
|
add_subdirectory(libvncserver)
|
|
add_subdirectory(krfb)
|
|
add_subdirectory (framebuffers)
|
|
|
|
if (NOT INSIDE_KDENETWORK)
|
|
macro_display_feature_log()
|
|
endif ()
|