-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
84 lines (67 loc) · 2.63 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
79
80
81
82
83
84
# Copyright (C) 2014 Moonlight Desktop Environment Team
# Authors:
# Alexis López Zubieta
# This file is part of the Moonlight Desktop Environment
#
# Moonlight Desktop Environment is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Moonlight Desktop Environment is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Moonlight Desktop Environment. If not, see <http://www.gnu.org/licenses/>.
#
project(moonlightde.model.themeManager)
## --------------------------------------------------------------
## Sources
## --------------------------------------------------------------
file(GLOB ${PROJECT_NAME}_SOURCES c++/*.cpp)
file(GLOB ${PROJECT_NAME}_UIS ui/*.ui)
file(GLOB ${PROJECT_NAME}_RESOURCES res/*)
## --------------------------------------------------------------
## Dependencies
## -------------------------------- ------------------------------
## Qt
find_package(Qt5Core REQUIRED)
find_package(Qt5Gui REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5DBus REQUIRED)
find_package(Qt5X11Extras REQUIRED)
## CppMicroServices
find_package(CppMicroServices NO_MODULE REQUIRED)
include_directories(${CppMicroServices_INCLUDE_DIRS})
## LXQT -- depends on QT5XDG
find_package(LXQT-QT5 REQUIRED )
include(${LXQT_USE_FILE})
## Inter-module dependencies
set(${PROJECT_NAME}_DEPENDS )
## --------------------------------------------------------------
## Preprocessing
## --------------------------------------------------------------
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include_directories(${CMAKE_BINARY_DIR})
QT5_WRAP_UI(${PROJEC_NAME}_UI_HEADERS ${${PROJECT_NAME}_UIS})
QT5_ADD_RESOURCES(${PROJEC_NAME}_QRC_SOURCES ${${PROJEC_NAME}_RESOURCES})
## --------------------------------------------------------------
## Build
## --------------------------------------------------------------
set (${PROJECT_NAME}_SOURCES
${${PROJECT_NAME}_SOURCES}
${${PROJEC_NAME}_UI_HEADERS}
${${PROJEC_NAME}_QRC_SOURCES}
)
MoonLightDE_CreateModule(${PROJECT_NAME} ${${PROJECT_NAME}_SOURCES})
target_link_libraries(moonlightDE-${PROJECT_NAME}
${LXQT_LIBRARIES}
Qt5::Core
Qt5::Widgets
Qt5::Gui
Qt5::DBus
Qt5::X11Extras
)