kde-extraapps/krfb/CMakeLists.txt
Ivailo Monev f840649b58 generic: support building projects separately
TODO from https://github.com/fluxer/katana/issues/7.

kget and libktorrent cannot be build separately because libktorrent depends
on boost (or miniboost which is bundled) and kget depends on libktorrent.

syndication include paths were adjusted to build from the top-level
directory since it was used not only by akregator, that is no longer the
case and it should probably be moved to akregator sub-directory but that
will be decided in the future.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-10 23:43:40 +00:00

43 lines
1.2 KiB
CMake

project(krfb)
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
find_package(KDE4 4.19.0 REQUIRED)
include(KDE4Defaults)
include_directories(${KDE4_INCLUDES})
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
endif()
find_package(LibVNCServer REQUIRED)
macro_optional_find_package(TelepathyQt4)
macro_log_feature(TelepathyQt4_FOUND "telepathy-qt"
"Telepathy Qt Bindings"
"http://telepathy.freedesktop.org"
FALSE "0.9" "Needed to build Telepathy Tubes support."
)
macro_optional_find_package(KTp)
macro_log_feature(KTP_FOUND "KTP"
"KDE Telepathy"
"https://projects.kde.org/projects/extragear/network/telepathy"
FALSE "" "Needed to build KDE IM Contacts Display in KRFB."
)
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
)
if(Q_WS_X11)
if(NOT X11_XTest_FOUND)
message(FATAL_ERROR "krfb requires the libXTest (http://xorg.freedesktop.org) to be built")
endif(NOT X11_XTest_FOUND)
endif(Q_WS_X11)
add_subdirectory(krfb)
add_subdirectory(framebuffers)