-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
53 lines (42 loc) · 1.19 KB
/
CMakeLists.txt
File metadata and controls
53 lines (42 loc) · 1.19 KB
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.19)
project(Game_Remote_Server LANGUAGES CXX)
find_package(Qt6 6.5 REQUIRED COMPONENTS Core Widgets)
qt_standard_project_setup()
qt_add_executable(Game_Remote_Server
WIN32 MACOSX_BUNDLE
gui/main.cpp
gui/mainwindow.cpp
gui/mainwindow.h
gui/mainwindow.ui
core/src/utils.cpp
core/src/controller_engine.cpp
core/src/discovery_service.cpp
core/src/udp_receiver.cpp
core/src/virtual_gamepad.cpp
core/src/server_main.cpp
core/include/utils.h
core/include/controller_engine.h
core/include/discovery_protocol.h
core/include/discovery_service.h
core/include/gamepad_mapping.h
core/include/protocol.h
core/include/udp_receiver.h
core/include/virtual_gamepad.h
core/include/server_main.h
)
target_link_libraries(Game_Remote_Server
PRIVATE
Qt::Core
Qt::Widgets
)
install(TARGETS Game_Remote_Server
BUNDLE DESTINATION .
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
qt_generate_deploy_app_script(
TARGET Game_Remote_Server
OUTPUT_SCRIPT deploy_script
NO_UNSUPPORTED_PLATFORM_ERROR
)
install(SCRIPT ${deploy_script})