add an example to embed a server in a Qt GUI app

This commit is contained in:
Chunting Gu
2021-01-22 11:34:17 +08:00
parent c3643277b2
commit 233aa5910c
7 changed files with 132 additions and 4 deletions
+11
View File
@@ -0,0 +1,11 @@
project(qt_app_server)
find_package(Qt5 CONFIG REQUIRED Core Gui Widgets)
set(CMAKE_AUTOMOC ON)
file(GLOB SRCS *.cpp *.h)
add_executable(qt_app_server ${SRCS})
target_link_libraries(qt_app_server Qt5::Core Qt5::Gui Qt5::Widgets ${EXAMPLE_LIBS})