-
Notifications
You must be signed in to change notification settings - Fork 18
/
CMakeLists.txt
53 lines (45 loc) · 1.17 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
cmake_minimum_required(VERSION 3.0)
project(ZJUConnectForWindows)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt6 COMPONENTS
Core
Gui
Widgets
Network
Svg
Core5Compat
REQUIRED
)
enable_language("RC")
add_executable(ZJUConnectForWindows WIN32
main.cpp
mainwindow.cpp
l2tpmode.cpp
webloginmode.cpp
zjuconnectmode.cpp
zjuconnectcontroller/zjuconnectcontroller.cpp
portforwardingwindow/portforwardingwindow.cpp
settingwindow/settingwindow.cpp
networkdetector/networkdetector.cpp
utils/utils.cpp
resource.qrc
${CMAKE_CURRENT_SOURCE_DIR}/resource/icon.rc
)
add_subdirectory(QrCodeGenerator)
set(QAPPLICATION_CLASS QApplication CACHE STRING "Inheritance class for SingleApplication")
add_subdirectory(singleapplication)
target_link_libraries(ZJUConnectForWindows
Qt::Core
Qt::Gui
Qt::Widgets
Qt::Network
Qt::Svg
Qt::Core5Compat
SingleApplication::SingleApplication
QrCodeGenerator
wininet
rasapi32
)