-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
77 lines (71 loc) · 2.21 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
CMAKE_MINIMUM_REQUIRED(VERSION 3.2)
project(AppImageUpdater)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
set(QAPPLICATION_CLASS QApplication CACHE STRING "Inheritance class for SingleApplication")
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
find_package(LibtorrentRasterbar)
find_package(QAppImageUpdate)
find_package(libappimage)
find_package(Qt5Gui)
find_package(Qt5Qml)
find_package(Qt5QuickControls2)
# Include Directories.
include_directories(${CMAKE_BINARY_DIR})
if(APPIMAGE_UPDATER_VERSION)
add_definitions(-DAPPIMAGE_UPDATER_VERSION="${APPIMAGE_UPDATER_VERSION}")
endif()
if(APPIMAGE_UPDATER_COMMIT)
add_definitions(-DAPPIMAGE_UPDATER_COMMIT="${APPIMAGE_UPDATER_COMMIT}")
endif()
if(APPIMAGE_UPDATER_BUILD_NO)
add_definitions(-DAPPIMAGE_UPDATER_BUILD_NO="${APPIMAGE_UPDATER_BUILD_NO}")
endif()
if(APPIMAGE_UPDATER_BUILD_TIME)
add_definitions(-DAPPIMAGE_UPDATER_BUILD_TIME="${APPIMAGE_UPDATER_BUILD_TIME}")
endif()
add_executable(AppImageUpdater main.cc
global.hpp
AppImageUpdaterStandalone.hpp
AppImageUpdaterStandalone.cc
AuthorizationDialog.hpp
AuthorizationDialog.cc
Updater_p.hpp
Updater_p.cc
Updater.hpp
Updater.cc
SeedManager_p.hpp
SeedManager_p.cc
SeedManager.hpp
SeedManager.cc
AppImageImageProvider.hpp
AppImageImageProvider.cc
DropItemParser.hpp
DropItemParser.cc
BuildConstants.hpp
BuildConstants.cc
SettingsManager.hpp
SettingsManager.cc
SystemTray.hpp
SystemTray.cc
Executer_p.hpp
Executer_p.cc
Executer.hpp
Executer.cc
Helpers.hpp
Helpers.cc
app_resources/resources.qrc
qml/qml.qrc)
target_link_libraries(AppImageUpdater PUBLIC
Qt5::Gui
Qt5::Qml
Qt5::QuickControls2
util)
target_link_libraries(AppImageUpdater PRIVATE QAppImageUpdate)
target_link_libraries(AppImageUpdater PRIVATE libappimage)
target_link_libraries(AppImageUpdater PRIVATE LibtorrentRasterbar::torrent-rasterbar)