-
Notifications
You must be signed in to change notification settings - Fork 11
/
CMakeLists.txt
51 lines (42 loc) · 1.12 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
cmake_minimum_required(VERSION 3.5)
set(PROJECT_NAME Dock)
project(${PROJECT_NAME})
set(CMAKE_INSTALL_PREFIX "/System/Dock.app")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(QT Core Widgets Quick QuickControls2 X11Extras DBus)
find_package(Qt5 REQUIRED ${QT})
find_package(KF5WindowSystem REQUIRED)
set(SRCS
src/applicationitem.h
src/applicationmodel.cpp
src/docksettings.cpp
src/iconthemeimageprovider.cpp
src/main.cpp
src/mainwindow.cpp
src/systemappmonitor.cpp
src/systemappitem.cpp
src/processprovider.cpp
src/popuptips.cpp
src/trashmanager.cpp
src/utils.cpp
src/xwindowinterface.cpp
)
set(RESOURCES
resources.qrc
)
add_executable(${PROJECT_NAME} ${SRCS} ${DBUS_SRCS} ${RESOURCES})
target_link_libraries(${PROJECT_NAME}
Qt5::Core
Qt5::Widgets
Qt5::Quick
Qt5::QuickControls2
Qt5::X11Extras
Qt5::DBus
KF5::WindowSystem
)
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX})