forked from OtterBrowser/otter-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
153 lines (139 loc) · 4.77 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
cmake_minimum_required(VERSION 2.8.11)
project(otter-browser)
set(MAJOR_VERSION "0")
set(MINOR_VERSION "2")
set(PATCH_VERSION "01-dev")
if (EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
include(InstallRequiredSystemLibraries)
set(CPACK_SET_DESTDIR "on")
set(CPACK_PACKAGING_INSTALL_PREFIX "/usr")
set(CPACK_GENERATOR "DEB")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Web browser controlled by the user, not vice-versa")
set(CPACK_PACKAGE_VENDOR "Vendor")
set(CPACK_PACKAGE_CONTACT "Michal Dutkiewicz")
set(CPACK_PACKAGE_VERSION_MAJOR "${MAJOR_VERSION}")
set(CPACK_PACKAGE_VERSION_MINOR "${MINOR_VERSION}")
set(CPACK_PACKAGE_VERSION_PATCH "${PATCH_VERSION}")
set(CPACK_PACKAGE_NAME "otter-browser")
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}_${MAJOR_VERSION}.${MINOR_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}")
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}_${MAJOR_VERSION}.${MINOR_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt5 (>=5:5.2.0)")
set(CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
set(CPACK_DEBIAN_PACKAGE_SECTION "net")
set(CPACK_DEBIAN_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR})
set(CPACK_COMPONENTS_ALL Libraries ApplicationData)
include(CPack)
endif (EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
find_package(Qt5Core REQUIRED)
find_package(Qt5Network REQUIRED)
find_package(Qt5PrintSupport REQUIRED)
find_package(Qt5Sql REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5WebKit REQUIRED)
find_package(Qt5WebKitWidgets REQUIRED)
set(otter_src
src/main.cpp
src/core/ActionsManager.cpp
src/core/AddressCompletionModel.cpp
src/core/Application.cpp
src/core/BookmarksManager.cpp
src/core/CookieJar.cpp
src/core/FileSystemCompleterModel.cpp
src/core/HistoryManager.cpp
src/core/LocalListingNetworkReply.cpp
src/core/NetworkAccessManager.cpp
src/core/NetworkCache.cpp
src/core/NetworkProxyFactory.cpp
src/core/SearchesManager.cpp
src/core/SearchSuggester.cpp
src/core/SessionsManager.cpp
src/core/SettingsManager.cpp
src/core/TransfersManager.cpp
src/core/Utils.cpp
src/core/WebBackend.cpp
src/core/WebBackendsManager.cpp
src/core/WindowsManager.cpp
src/ui/AddressWidget.cpp
src/ui/AuthenticationDialog.cpp
src/ui/BookmarkPropertiesDialog.cpp
src/ui/ClearHistoryDialog.cpp
src/ui/ContentsDialog.cpp
src/ui/ContentsWidget.cpp
src/ui/ItemDelegate.cpp
src/ui/MainWindow.cpp
src/ui/OptionDelegate.cpp
src/ui/OptionWidget.cpp
src/ui/PreferencesDialog.cpp
src/ui/PreviewWidget.cpp
src/ui/SaveSessionDialog.cpp
src/ui/SearchDelegate.cpp
src/ui/SearchPropertiesDialog.cpp
src/ui/SearchWidget.cpp
src/ui/SessionsManagerDialog.cpp
src/ui/StatusBarWidget.cpp
src/ui/TabBarDockWidget.cpp
src/ui/TabBarWidget.cpp
src/ui/TableViewWidget.cpp
src/ui/TextLabelWidget.cpp
src/ui/WebWidget.cpp
src/ui/Window.cpp
src/ui/preferences/BlockedContentDialog.cpp
src/ui/preferences/ShortcutDelegate.cpp
src/modules/backends/web/qtwebkit/QtWebKitWebBackend.cpp
src/modules/backends/web/qtwebkit/QtWebKitWebPage.cpp
src/modules/backends/web/qtwebkit/QtWebKitWebWidget.cpp
src/modules/windows/bookmarks/BookmarksContentsWidget.cpp
src/modules/windows/cache/CacheContentsWidget.cpp
src/modules/windows/configuration/ConfigurationContentsWidget.cpp
src/modules/windows/cookies/CookiesContentsWidget.cpp
src/modules/windows/history/HistoryContentsWidget.cpp
src/modules/windows/transfers/ProgressBarDelegate.cpp
src/modules/windows/transfers/TransfersContentsWidget.cpp
src/modules/windows/web/ImagePropertiesDialog.cpp
src/modules/windows/web/ProgressBarWidget.cpp
src/modules/windows/web/WebContentsWidget.cpp
)
qt5_add_resources(otter_res
resources/resources.qrc
)
qt5_wrap_ui(otter_ui
src/ui/AuthenticationDialog.ui
src/ui/BookmarkPropertiesDialog.ui
src/ui/ClearHistoryDialog.ui
src/ui/MainWindow.ui
src/ui/PreferencesDialog.ui
src/ui/SaveSessionDialog.ui
src/ui/SearchPropertiesDialog.ui
src/ui/SessionsManagerDialog.ui
src/ui/Window.ui
src/ui/preferences/BlockedContentDialog.ui
src/modules/windows/bookmarks/BookmarksContentsWidget.ui
src/modules/windows/cache/CacheContentsWidget.ui
src/modules/windows/configuration/ConfigurationContentsWidget.ui
src/modules/windows/cookies/CookiesContentsWidget.ui
src/modules/windows/history/HistoryContentsWidget.ui
src/modules/windows/transfers/TransfersContentsWidget.ui
src/modules/windows/web/ImagePropertiesDialog.ui
src/modules/windows/web/WebContentsWidget.ui
)
add_executable(otter-browser
${otter_ui}
${otter_res}
${otter_src}
)
IF(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
qt5_use_modules(otter-browser
WinExtras
)
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
target_link_libraries(otter-browser
Qt5::Core
Qt5::Network
Qt5::PrintSupport
Qt5::Sql
Qt5::Widgets
Qt5::WebKitWidgets
)
install(TARGETS otter-browser DESTINATION bin)