-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
78 lines (61 loc) · 1.69 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
cmake_minimum_required(VERSION 3.16)
project(waycratedm
VERSION 0.1
LANGUAGES CXX
)
option(DEBUG_MODE "Debug not use sessionlock" OFF)
if(DEBUG_MODE)
add_definitions(-DDEBUG_MODE)
endif()
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX /usr)
endif ()
include(GNUInstallDirs)
find_package(Qt6 COMPONENTS Quick QuickControls2 Concurrent WaylandClient DBus REQUIRED)
find_package(tomlplusplus REQUIRED)
find_package(SessionLockQt REQUIRED)
find_package(PkgConfig REQUIRED)
qt_add_executable(waycratedm
src/main.cpp
asserts/source.qrc
)
target_include_directories(waycratedm PUBLIC
${CMAKE_SOURCE_DIR}/src
)
qt_add_qml_module(waycratedm
URI WayCrateDM
VERSION 1.0
SOURCES
src/CommandLine.h
src/CommandLine.cpp
src/DesktopListModel.h
src/DesktopListModel.cpp
src/DesktopConfigListModel.h
src/DesktopConfigListModel.cpp
src/Settings.h
src/Settings.cpp
QML_FILES
qml/main.qml
qml/TimePanel.qml
qml/MainView.qml
qml/DesktopDialog.qml
qml/SettingsPage.qml
qml/SettingsItemDelegate.qml
)
target_link_libraries(waycratedm
PRIVATE
Qt6::Quick
Qt6::WaylandClient
Qt6::QuickControls2
Qt6::Concurrent
Qt6::DBus
SessionLockQt::Interface)
install(TARGETS waycratedm DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/misc/sysuser/marine.conf DESTINATION ${CMAKE_INSTALL_LIBDIR}/sysusers.d)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/misc/tmpfiles/marine.conf DESTINATION ${CMAKE_INSTALL_LIBDIR}/tmpfiles.d)