-
Notifications
You must be signed in to change notification settings - Fork 17
/
CMakeLists.txt
92 lines (77 loc) · 2.25 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
85
86
87
88
89
90
91
92
cmake_minimum_required(VERSION 3.11)
project(sailfishos-chum-gui
LANGUAGES CXX
VERSION ${CHUMGUI_VERSION}
)
set(GITHUB_TOKEN "unset" CACHE STRING "GitHub access token for GraphQL queries")
set(GITLAB_TOKEN "unset" CACHE STRING "GitLab access site-token pair(s) for GraphQL queries")
set(FORGEJO_TOKEN "unset" CACHE STRING "Forgejo (and Gitea) access site-token pair(s) for API queries")
set(SAILFISHOS_TARGET_VERSION 0 CACHE STRING "Target Sailfish OS version")
include(FindPkgConfig)
find_package(Qt5
COMPONENTS Quick DBus LinguistTools
REQUIRED
)
find_package(packagekitqt5 REQUIRED)
find_package(yaml-cpp REQUIRED)
pkg_search_module(sailfishapp
REQUIRED
IMPORTED_TARGET
sailfishapp
)
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
configure_file(QtCreatorDeployment.txt.in QtCreatorDeployment.txt)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
add_subdirectory(src)
add_subdirectory(icons)
add_subdirectory(translations)
install(DIRECTORY qml
DESTINATION share/${PROJECT_NAME}
)
install(DIRECTORY mapplauncherd
DESTINATION share
)
install(FILES ${PROJECT_NAME}.desktop
DESTINATION share/applications
)
install(FILES icons/sailfishos-chum-gui.svg
DESTINATION share/${PROJECT_NAME}/icons
)
file(GLOB RPM_FILES rpm/*)
add_custom_target(distfiles SOURCES
qml/sailfishos-chum-gui.qml
qml/cover/CoverPage.qml
qml/pages/AboutPage.qml
qml/pages/CategoriesPage.qml
qml/pages/IssuePage.qml
qml/pages/IssuesListPage.qml
qml/pages/MainPage.qml
qml/pages/MessagePage.qml
qml/pages/PackagePage.qml
qml/pages/PackagesListPage.qml
qml/pages/ReleasePage.qml
qml/pages/ReleasesListPage.qml
qml/pages/ScreenshotPage.qml
qml/pages/SettingsPage.qml
qml/components/AppInformation.qml
qml/components/AppSummary.qml
qml/components/ChumDetailItem.qml
qml/components/FancyPageHeader.qml
qml/components/ImageLabel.qml
qml/components/LabelMarkdown.qml
qml/components/MainPageButton.qml
qml/components/MarkdownParser.qml
qml/components/MoreButton.qml
qml/components/PackagesListItem.qml
qml/components/ScreenshotsBox.qml
qml/components/TextFieldDesc.qml
mapplauncherd/privileges.d/${PROJECT_NAME}
LICENSE
README.md
${PROJECT_NAME}.desktop
${RPM_FILES}
${TS_FILES}
)