diff options
Diffstat (limited to 'src/plugins')
| -rw-r--r-- | src/plugins/General/hotkey/CMakeLists.txt | 5 | ||||
| -rw-r--r-- | src/plugins/General/hotkey/hotkey.pro | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/plugins/General/hotkey/CMakeLists.txt b/src/plugins/General/hotkey/CMakeLists.txt index eee444f7b..6742dfca9 100644 --- a/src/plugins/General/hotkey/CMakeLists.txt +++ b/src/plugins/General/hotkey/CMakeLists.txt @@ -24,6 +24,9 @@ SET(QT_INCLUDES pkg_check_modules(X11 xf86miscproto x11) +include_directories(${X11_INCLUDE_DIRS}) +link_directories(${X11_LIBRARY_DIRS}) + # libqmmpui & libqmmp include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../) link_directories(${CMAKE_CURRENT_BINARY_DIR}/../../../qmmpui) @@ -67,6 +70,6 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}) IF(X11_FOUND) ADD_LIBRARY(hotkey MODULE ${libhotkey_SRCS} ${libhotkey_MOC_SRCS} ${libhotkey_UIS_H} ${libhotkey_RCC_SRCS}) add_dependencies(hotkey qmmpui) -target_link_libraries(hotkey ${QT_LIBRARIES} -lqmmpui -lqmmp) +target_link_libraries(hotkey ${QT_LIBRARIES} -lqmmpui -lqmmp ${X11_LDFLAGS}) install(TARGETS hotkey DESTINATION ${LIB_DIR}/qmmp/General) ENDIF(X11_FOUND) diff --git a/src/plugins/General/hotkey/hotkey.pro b/src/plugins/General/hotkey/hotkey.pro index 21ef268f3..f7f7376f0 100644 --- a/src/plugins/General/hotkey/hotkey.pro +++ b/src/plugins/General/hotkey/hotkey.pro @@ -3,7 +3,10 @@ include(../../plugins.pri) CONFIG += release \ warn_on \ plugin \ - lib + lib \ + link_pkgconfig + +PKGCONFIG += xf86miscproto x11 TARGET = $$PLUGINS_PREFIX/General/hotkey QMAKE_CLEAN = $$PLUGINS_PREFIX/General/libhotkey.so |
