-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
44 lines (34 loc) · 963 Bytes
/
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
project(halio)
cmake_minimum_required(VERSION 3.0)
set(REQUIRED_QT_VERSION "5.7.0")
find_package (ECM 5.10.0 REQUIRED NO_MODULE)
set (CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
include(KDEInstallDirs)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(ECMInstallIcons)
include(ECMAddAppIcon)
if (CMAKE_SYSTEM_NAME STREQUAL "Android")
find_package(Qt5AndroidExtras ${REQUIRED_QT_VERSION} REQUIRED)
set(halio_EXTRA_LIBS
Qt5::AndroidExtras
Qt5::QuickControls2
Qt5::Charts
)
endif()
find_package(Qt5 ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE COMPONENTS
Core
Quick
Test
Gui
Svg
QuickControls2
Charts
)
set(halio_SRCS
main.cpp
)
qt5_add_resources(RESOURCES resources.qrc)
add_executable(halio ${halio_SRCS} ${RESOURCES})
target_link_libraries(halio Qt5::Core Qt5::Qml Qt5::Quick Qt5::Svg ${halio_EXTRA_LIBS})
install(TARGETS halio ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})