mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-14 18:35:16 +01:00
26 lines
477 B
CMake
26 lines
477 B
CMake
|
cmake_minimum_required(VERSION 2.6)
|
||
|
|
||
|
set(QXT-SOURCES
|
||
|
qxtglobal.cpp
|
||
|
qxtglobalshortcut.cpp
|
||
|
)
|
||
|
|
||
|
set(QXT-MOC-HEADERS
|
||
|
qxtglobalshortcut.h
|
||
|
)
|
||
|
|
||
|
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)
|
||
|
|
||
|
QT4_WRAP_CPP(QXT-SOURCES-MOC ${QXT-MOC-HEADERS})
|
||
|
|
||
|
ADD_LIBRARY(qxt
|
||
|
${QXT-SOURCES}
|
||
|
${QXT-SOURCES-MOC}
|
||
|
)
|