mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-30 18:17:26 +01:00
36 lines
716 B
CMake
36 lines
716 B
CMake
cmake_minimum_required(VERSION 2.8.11)
|
|
|
|
set(QXT-SOURCES
|
|
qxtglobal.cpp
|
|
qxtglobalshortcut.cpp
|
|
)
|
|
|
|
set(QXT-MOC-HEADERS
|
|
qxtglobalshortcut.h
|
|
)
|
|
|
|
find_package(X11)
|
|
include_directories(${X11_INCLUDE_DIR})
|
|
include_directories(${Qt5Gui_PRIVATE_INCLUDE_DIRS})
|
|
|
|
if(WIN32)
|
|
set(QXT-SOURCES ${QXT-SOURCES} qxtglobalshortcut_win.cpp)
|
|
elseif(APPLE)
|
|
set(QXT-SOURCES ${QXT-SOURCES} qxtglobalshortcut_mac.cpp)
|
|
else(WIN32)
|
|
set(QXT-SOURCES ${QXT-SOURCES} qxtglobalshortcut_x11.cpp)
|
|
endif(WIN32)
|
|
|
|
QT5_WRAP_CPP(QXT-SOURCES-MOC ${QXT-MOC-HEADERS})
|
|
|
|
ADD_LIBRARY(qxt STATIC
|
|
${QXT-SOURCES}
|
|
${QXT-SOURCES-MOC}
|
|
)
|
|
|
|
if(WIN32)
|
|
QT5_USE_MODULES(qxt Core Widgets)
|
|
else(WIN32)
|
|
QT5_USE_MODULES(qxt Core Widgets X11Extras)
|
|
endif(WIN32)
|