-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathCMakeLists.txt
36 lines (28 loc) · 859 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
cmake_minimum_required(VERSION 3.16)
project(openfortivpn-webview VERSION 1.0.0 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets WebEngineWidgets)
qt_standard_project_setup()
if(${Qt6_VERSION} VERSION_GREATER_EQUAL 6.7)
list(APPEND WEB_AUTH_SOURCES webauthdialog.cpp webauthdialog.h webauthdialog.ui)
endif()
qt_add_executable(openfortivpn-webview
main.cpp
mainwindow.cpp mainwindow.h
${WEB_AUTH_SOURCES}
)
target_compile_definitions(openfortivpn-webview PRIVATE
QT_DEPRECATED_WARNINGS
QT_DISABLE_DEPRECATED_BEFORE=0x060000
)
set_target_properties(openfortivpn-webview PROPERTIES
WIN32_EXECUTABLE ON
MACOSX_BUNDLE ON
)
target_link_libraries(openfortivpn-webview PRIVATE
Qt::Core
Qt::Gui
Qt::WebEngineWidgets
Qt::Widgets
)