Use newer cmake syntax for XCB dependencies
This commit is contained in:
parent
e95de33465
commit
286300ad35
@ -1,10 +1,5 @@
|
||||
if(HAVE_X11 AND XCB_XCB_FOUND AND XCB_COMPOSITE_FOUND AND XCB_DAMAGE_FOUND)
|
||||
add_definitions(-DHAVE_XCB_COMPOSITE=1)
|
||||
include_directories(
|
||||
${XCB_XCB_INCLUDE_DIR}
|
||||
${XCB_DAMAGE_INCLUDE_DIR}
|
||||
${XCB_COMPOSITE_INCLUDE_DIR}
|
||||
)
|
||||
else()
|
||||
add_definitions(-DHAVE_XCB_COMPOSITE=0)
|
||||
endif()
|
||||
@ -45,13 +40,13 @@ target_link_libraries(corebindingsplugin
|
||||
)
|
||||
|
||||
if(HAVE_X11)
|
||||
target_link_libraries(corebindingsplugin ${X11_LIBRARIES} ${XCB_XCB_LIBRARY} )
|
||||
target_link_libraries(corebindingsplugin ${X11_LIBRARIES} XCB::XCB )
|
||||
target_link_libraries(corebindingsplugin Qt5::X11Extras)
|
||||
|
||||
if(XCB_COMPOSITE_FOUND AND XCB_DAMAGE_FOUND)
|
||||
target_link_libraries(corebindingsplugin
|
||||
${XCB_DAMAGE_LIBRARY}
|
||||
${XCB_COMPOSITE_LIBRARY}
|
||||
XCB::DAMAGE
|
||||
XCB::COMPOSITE
|
||||
)
|
||||
endif()
|
||||
|
||||
|
@ -99,7 +99,7 @@ add_library(KF5Plasma ${Plasma_LIB_SRCS})
|
||||
add_library(KF5::Plasma ALIAS KF5Plasma)
|
||||
|
||||
if(HAVE_X11)
|
||||
set(PLASMA_EXTRA_LIBS ${PLASMA_EXTRA_LIBS} Qt5::X11Extras ${X11_LIBRARIES} ${XCB_XCB_LIBRARY})
|
||||
set(PLASMA_EXTRA_LIBS ${PLASMA_EXTRA_LIBS} Qt5::X11Extras ${X11_LIBRARIES} XCB::XCB)
|
||||
endif()
|
||||
|
||||
if(DL_LIBRARY)
|
||||
|
@ -1,16 +1,10 @@
|
||||
if(HAVE_X11 AND XCB_XCB_FOUND AND XCB_COMPOSITE_FOUND AND XCB_DAMAGE_FOUND)
|
||||
add_definitions(-DHAVE_XCB_COMPOSITE=1)
|
||||
include_directories(
|
||||
${XCB_XCB_INCLUDE_DIR}
|
||||
${XCB_DAMAGE_INCLUDE_DIR}
|
||||
${XCB_COMPOSITE_INCLUDE_DIR}
|
||||
)
|
||||
else()
|
||||
add_definitions(-DHAVE_XCB_COMPOSITE=0)
|
||||
endif()
|
||||
if(HAVE_X11 AND XCB_XCB_FOUND AND XCB_SHAPE_FOUND)
|
||||
add_definitions(-DHAVE_XCB_SHAPE=1)
|
||||
include_directories(${XCB_SHAPE_INCLUDE_DIR})
|
||||
else()
|
||||
add_definitions(-DHAVE_XCB_SHAPE=0)
|
||||
endif()
|
||||
@ -58,19 +52,19 @@ if(HAVE_X11)
|
||||
PRIVATE
|
||||
Qt5::X11Extras
|
||||
${X11_LIBRARIES}
|
||||
${XCB_XCB_LIBRARY}
|
||||
XCB::XCB
|
||||
)
|
||||
|
||||
if(XCB_COMPOSITE_FOUND AND XCB_DAMAGE_FOUND)
|
||||
target_link_libraries(KF5PlasmaQuick
|
||||
PRIVATE
|
||||
${XCB_DAMAGE_LIBRARY}
|
||||
${XCB_COMPOSITE_LIBRARY}
|
||||
XCB::DAMAGE
|
||||
XCB::COMPOSITE
|
||||
)
|
||||
endif()
|
||||
|
||||
if(XCB_SHAPE_FOUND)
|
||||
target_link_libraries(KF5PlasmaQuick PRIVATE ${XCB_SHAPE_LIBRARY})
|
||||
target_link_libraries(KF5PlasmaQuick PRIVATE XCB::SHAPE)
|
||||
endif()
|
||||
|
||||
if(HAVE_GLX)
|
||||
|
Loading…
x
Reference in New Issue
Block a user