Mercurial > trustbridge
comparison ui/CMakeLists.txt @ 107:5b9af103a355
Allow developers to overwrite the hardcoded xkb-common libname
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 21 Mar 2014 15:48:27 +0000 |
parents | 112228bd7e4b |
children | 39c42b5a5693 |
comparison
equal
deleted
inserted
replaced
106:37198bd07182 | 107:5b9af103a355 |
---|---|
33 # See: https://bugreports.qt-project.org/browse/QTBUG-35918 | 33 # See: https://bugreports.qt-project.org/browse/QTBUG-35918 |
34 # XCB_EXTRA_LIBS should be gotten automatically. | 34 # XCB_EXTRA_LIBS should be gotten automatically. |
35 # The following list is taken from the .pri file | 35 # The following list is taken from the .pri file |
36 get_target_property(_loc Qt5::Widgets LOCATION) | 36 get_target_property(_loc Qt5::Widgets LOCATION) |
37 get_filename_component(_qtpath ${_loc} PATH) | 37 get_filename_component(_qtpath ${_loc} PATH) |
38 | |
39 if(NOT XKBCOMMON_LIB) | |
40 # Hack on a hack to overwrite the xkbcommon libname. | |
41 set(XKBCOMMON_LIB -lxkbcommon) | |
42 endif | |
43 | |
38 set(XCB_EXTRA_LIBS | 44 set(XCB_EXTRA_LIBS |
39 -L${_qtpath} | 45 -L${_qtpath} |
40 -lX11 -lX11-xcb -lXi -lxcb-render-util -lXrender -lSM -lICE -lxcb-render -ldbus-1 | 46 -lX11 -lX11-xcb -lXi -lxcb-render-util -lXrender -lSM -lICE -lxcb-render -ldbus-1 |
41 -lxcb -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr | 47 -lxcb -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr |
42 -lxkbcommon -lxcb-shape -lxcb-keysyms -lQt5PlatformSupport | 48 ${XKBCOMMON_LIB} -lxcb-shape -lxcb-keysyms -lQt5PlatformSupport |
43 -lfreetype -lQt5DBus -lQt5Gui -ljpeg -lpng -lQt5Core | 49 -lfreetype -lQt5DBus -lQt5Gui -ljpeg -lpng -lQt5Core |
44 -lz -lm -ldl -lrt -lpthread) | 50 -lz -lm -ldl -lrt -lpthread) |
45 | 51 |
46 set(EXTRA_STATIC_LIBS -lz -lpthread -ldl -lpng -ljpeg | 52 set(EXTRA_STATIC_LIBS -lz -lpthread -ldl -lpng -ljpeg |
47 Qt5::QXcbIntegrationPlugin ${XCB_EXTRA_LIBS}) | 53 Qt5::QXcbIntegrationPlugin ${XCB_EXTRA_LIBS}) |