-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
40 lines (31 loc) · 987 Bytes
/
CMakeLists.txt
File metadata and controls
40 lines (31 loc) · 987 Bytes
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
cmake_minimum_required(VERSION 3.16)
project(SmartPersonalDashboard VERSION 0.1 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 REQUIRED COMPONENTS Quick Core)
qt_standard_project_setup(REQUIRES 6.8)
qt_add_executable(appSmartPersonalDashboard
main.cpp
Backend/metricsservice.cpp
)
qt_add_qml_module(appSmartPersonalDashboard
URI SmartPersonalDashboard
VERSION 1.0
QML_FILES
Main.qml
UI/HomeComponent.qml
UI/RightComponent.qml
UI/LeftComponent.qml
UI/CenterComponent.qml
)
# Include Backend directory
target_include_directories(appSmartPersonalDashboard PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/Backend)
# Link required Qt modules
target_link_libraries(appSmartPersonalDashboard
PRIVATE Qt6::Quick Qt6::Core
)
include(GNUInstallDirs)
install(TARGETS appSmartPersonalDashboard
BUNDLE DESTINATION .
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)