mirror of
https://invent.kde.org/network/krfb
synced 2024-07-03 00:18:36 +00:00
Fix CMakeLists
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1056635
This commit is contained in:
parent
35b6b28c0a
commit
e8fd5fe0c7
|
@ -1,5 +1,22 @@
|
||||||
project(krfb)
|
project(krfb)
|
||||||
|
|
||||||
|
if(NOT INSIDE_KDENETWORK)
|
||||||
|
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/../cmake/modules ${CMAKE_MODULE_PATH})
|
||||||
|
find_package(KDE4 REQUIRED)
|
||||||
|
|
||||||
|
include(KDE4Defaults)
|
||||||
|
include(MacroLibrary)
|
||||||
|
|
||||||
|
include(CheckSymbolExists)
|
||||||
|
find_package(LibVNCServer)
|
||||||
|
macro_optional_find_package(LibVNCServer)
|
||||||
|
|
||||||
|
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)
|
||||||
|
|
||||||
check_symbol_exists(rfbInitServer "rfb/rfb.h" HAVE_LIBVNCSERVER)
|
check_symbol_exists(rfbInitServer "rfb/rfb.h" HAVE_LIBVNCSERVER)
|
||||||
macro_bool_to_01(X11_Xdamage_FOUND HAVE_XDAMAGE)
|
macro_bool_to_01(X11_Xdamage_FOUND HAVE_XDAMAGE)
|
||||||
macro_bool_to_01(X11_XShm_FOUND HAVE_XSHM)
|
macro_bool_to_01(X11_XShm_FOUND HAVE_XSHM)
|
||||||
|
@ -34,6 +51,7 @@ target_link_libraries (krfbprivate
|
||||||
${QT_QTCORE_LIBRARY}
|
${QT_QTCORE_LIBRARY}
|
||||||
${QT_QTGUI_LIBRARY}
|
${QT_QTGUI_LIBRARY}
|
||||||
${X11_X11_LIB}
|
${X11_X11_LIB}
|
||||||
|
${LIBVNCSERVER_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties (krfbprivate PROPERTIES
|
set_target_properties (krfbprivate PROPERTIES
|
||||||
|
|
Loading…
Reference in New Issue
Block a user