summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-05-12 17:00:58 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-05-12 17:10:56 +0200
commit64086151e455a71c9c3ab494c55133bbcb7878f4 (patch)
tree44a2ba6ad9b941c3c37074901b5d75411b3b6ce2 /examples
parent7e33da9915f4f68381d24fb859aa621cbe9ca6fd (diff)
downloadqtwebsockets-64086151e455a71c9c3ab494c55133bbcb7878f4.tar.gz
Avoid exe name conflict
We have other examples using a 'chatserver' executable Change-Id: Ibcea3ccbf4ce6b14753acbc04a743670468344ca Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/websockets/simplechat/CMakeLists.txt10
-rw-r--r--examples/websockets/simplechat/simplechat.pro2
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/websockets/simplechat/CMakeLists.txt b/examples/websockets/simplechat/CMakeLists.txt
index 349d70e..5a19270 100644
--- a/examples/websockets/simplechat/CMakeLists.txt
+++ b/examples/websockets/simplechat/CMakeLists.txt
@@ -1,7 +1,7 @@
# Generated from simplechat.pro.
cmake_minimum_required(VERSION 3.14)
-project(chatserver LANGUAGES CXX)
+project(simplechatserver LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
@@ -17,19 +17,19 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/websockets/simplechat")
find_package(Qt6 COMPONENTS WebSockets)
-qt_add_executable(chatserver
+qt_add_executable(simplechatserver
chatserver.cpp chatserver.h
main.cpp
)
-set_target_properties(chatserver PROPERTIES
+set_target_properties(simplechatserver PROPERTIES
WIN32_EXECUTABLE FALSE
MACOSX_BUNDLE FALSE
)
-target_link_libraries(chatserver PUBLIC
+target_link_libraries(simplechatserver PUBLIC
Qt::WebSockets
)
-install(TARGETS chatserver
+install(TARGETS simplechatserver
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
diff --git a/examples/websockets/simplechat/simplechat.pro b/examples/websockets/simplechat/simplechat.pro
index 235ccc0..3c18709 100644
--- a/examples/websockets/simplechat/simplechat.pro
+++ b/examples/websockets/simplechat/simplechat.pro
@@ -1,6 +1,6 @@
QT = websockets
-TARGET = chatserver
+TARGET = simplechatserver
CONFIG += console
CONFIG -= app_bundle