mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 02:42:52 +00:00

other changes such as syncing properties, updating some of the URLs, adding missing feature information, removing of redundant checks and variables and indentation were done in the process while testing if the changes work as intended. replacing find_package() with macro_optional_find_package() was also done where applicable however it's usage is questionable due to the CMake `CMAKE_DISABLE_FIND_PACKAGE_<PACKAGE>` option. there is a lot to be done, mostly updating package properties so I am thinking of either providing a package properties file (like the MacroLibrary) which sets properties for packages globablly or setting package properties from the CMake modules shipped with kdelibs. the first solution may override properties for packages if other projects define them however a check to ensure that is not done should suffice. the second solution will cover only DESCRIPTION and URL meaning PURPOSE and TYPE will still have to be specified in the build systems. Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
43 lines
1.2 KiB
CMake
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 0.9)
|
|
set_package_properties(TelepathyQt4 PROPERTIES
|
|
DESCRIPTION "Telepathy Qt Bindings"
|
|
URL "http://telepathy.freedesktop.org"
|
|
PURPOSE "Needed to build Telepathy Tubes support"
|
|
)
|
|
|
|
macro_optional_find_package(KTp)
|
|
set_package_properties(KTp PROPERTIES
|
|
DESCRIPTION "KDE Telepathy"
|
|
URL "https://projects.kde.org/projects/extragear/network/telepathy"
|
|
PURPOSE "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)
|
|
|