forked from shownb/FBrowser
-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
51 lines (41 loc) · 1.11 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
cmake_minimum_required(VERSION 3.5)
project(FBrowser LANGUAGES CXX)
file(GLOB source_files *.c *.cpp *.qrc)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
set(FULLBROWSER OFF CACHE BOOL "Full Featured Browser Support")
configure_file(config.h.in config.h)
find_package(Qt5 REQUIRED COMPONENTS Core Gui WebEngineWidgets)
add_definitions (-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
if (FULLBROWSER)
set(PROJECT_SOURCES
browser.cpp browser.h
browserwindow.cpp browserwindow.h
certificateerrordialog.ui
downloadmanagerwidget.cpp downloadmanagerwidget.h downloadmanagerwidget.ui
downloadwidget.cpp downloadwidget.h downloadwidget.ui
main.cpp
passworddialog.ui
tabwidget.cpp tabwidget.h
webpage.cpp webpage.h
webpopupwindow.cpp webpopupwindow.h
webview.cpp webview.h
data/simplebrowser.qrc
)
else()
set(PROJECT_SOURCES
main.cpp
mainwindow.cpp
mainwindow.h
)
endif()
add_executable(FBrowser
${PROJECT_SOURCES}
)
target_link_libraries(FBrowser PUBLIC
Qt::Core
Qt::Gui
Qt::WebEngineWidgets
)