Skip to content

Commit 44dc76b

Browse files
2 parents aedbaec + 04aa622 commit 44dc76b

File tree

7 files changed

+28
-1
lines changed

7 files changed

+28
-1
lines changed

demo/demo.pro

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ RESOURCES += demo.qrc
3434

3535
LIBS += -L$${ADS_OUT_ROOT}/lib
3636

37+
3738
# Dependency: AdvancedDockingSystem (shared)
3839
CONFIG(debug, debug|release){
3940
win32 {
@@ -50,5 +51,10 @@ else{
5051
LIBS += -lqtadvanceddocking
5152
}
5253

54+
unix:!macx {
55+
LIBS += -lxcb
56+
QT += x11extras
57+
}
58+
5359
INCLUDEPATH += ../src
5460
DEPENDPATH += ../src

examples/centralwidget/centralwidget.pro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ else{
4545
LIBS += -lqtadvanceddocking
4646
}
4747

48+
unix:!macx {
49+
LIBS += -lxcb
50+
QT += x11extras
51+
}
52+
4853
INCLUDEPATH += ../../src
4954
DEPENDPATH += ../../src
5055

examples/deleteonclose/deleteonclose.pro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ else{
3434
LIBS += -lqtadvanceddocking
3535
}
3636

37+
unix:!macx {
38+
LIBS += -lxcb
39+
QT += x11extras
40+
}
41+
3742
INCLUDEPATH += ../../src
3843
DEPENDPATH += ../../src
3944

examples/sidebar/sidebar.pro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ else{
4242
LIBS += -lqtadvanceddocking
4343
}
4444

45+
unix:!macx {
46+
LIBS += -lxcb
47+
QT += x11extras
48+
}
49+
4550
INCLUDEPATH += ../../src
4651
DEPENDPATH += ../../src
4752

examples/simple/simple.pro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ else{
4242
LIBS += -lqtadvanceddocking
4343
}
4444

45+
unix:!macx {
46+
LIBS += -lxcb
47+
QT += x11extras
48+
}
49+
4550
INCLUDEPATH += ../../src
4651
DEPENDPATH += ../../src
4752

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ endif()
6262
target_link_libraries(qtadvanceddocking PUBLIC Qt5::Core Qt5::Gui Qt5::Widgets)
6363
if(UNIX AND NOT APPLE)
6464
target_link_libraries(qtadvanceddocking PUBLIC Qt5::X11Extras)
65-
target_link_libraries("${MODULE}" xcb)
65+
target_link_libraries(qtadvanceddocking PRIVATE xcb)
6666
endif()
6767
set_target_properties(qtadvanceddocking PROPERTIES
6868
AUTOMOC ON

src/src.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ unix:!macx {
7373
HEADERS += linux/FloatingWidgetTitleBar.h
7474
SOURCES += linux/FloatingWidgetTitleBar.cpp
7575
QT += x11extras
76+
LIBS += -lxcb
7677
}
7778

7879
isEmpty(PREFIX){

0 commit comments

Comments
 (0)