diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-10-16 16:48:42 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-12-10 18:23:08 +0100 |
commit | 8c66fb463ce3091015b17ffb1418c574f1ebef85 (patch) | |
tree | e536c243abc16636fd292c54cf0e58e85aaabcae /examples/websockets | |
parent | 6aef347a11f773daa8481b16d393431fb7372f24 (diff) | |
download | qtwebsockets-8c66fb463ce3091015b17ffb1418c574f1ebef85.tar.gz |
CMake: Regenerate examples to use qt_add_executable
Task-number: QTBUG-87661
Change-Id: Ia908301554d7cecc73528ed21252299df1fc86fe
Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
Diffstat (limited to 'examples/websockets')
7 files changed, 7 insertions, 7 deletions
diff --git a/examples/websockets/echoclient/CMakeLists.txt b/examples/websockets/echoclient/CMakeLists.txt index 0f451cf..b87dd0a 100644 --- a/examples/websockets/echoclient/CMakeLists.txt +++ b/examples/websockets/echoclient/CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/websockets/echoclient") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS WebSockets) -add_executable(echoclient +qt_add_executable(echoclient echoclient.cpp echoclient.h main.cpp ) diff --git a/examples/websockets/echoserver/CMakeLists.txt b/examples/websockets/echoserver/CMakeLists.txt index 7877364..892303f 100644 --- a/examples/websockets/echoserver/CMakeLists.txt +++ b/examples/websockets/echoserver/CMakeLists.txt @@ -17,7 +17,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/websockets/echoserver") find_package(Qt6 COMPONENTS WebSockets) -add_executable(echoserver +qt_add_executable(echoserver echoserver.cpp echoserver.h main.cpp ) diff --git a/examples/websockets/qmlwebsocketclient/CMakeLists.txt b/examples/websockets/qmlwebsocketclient/CMakeLists.txt index 73da980..a920c4a 100644 --- a/examples/websockets/qmlwebsocketclient/CMakeLists.txt +++ b/examples/websockets/qmlwebsocketclient/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS WebSockets) -add_executable(qmlwebsocketclient +qt_add_executable(qmlwebsocketclient main.cpp ) target_link_libraries(qmlwebsocketclient PUBLIC diff --git a/examples/websockets/qmlwebsocketserver/CMakeLists.txt b/examples/websockets/qmlwebsocketserver/CMakeLists.txt index cd6fec7..665e931 100644 --- a/examples/websockets/qmlwebsocketserver/CMakeLists.txt +++ b/examples/websockets/qmlwebsocketserver/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS WebSockets) -add_executable(qmlwebsocketserver +qt_add_executable(qmlwebsocketserver main.cpp ) target_link_libraries(qmlwebsocketserver PUBLIC diff --git a/examples/websockets/simplechat/CMakeLists.txt b/examples/websockets/simplechat/CMakeLists.txt index 82c2fea..6b67fd6 100644 --- a/examples/websockets/simplechat/CMakeLists.txt +++ b/examples/websockets/simplechat/CMakeLists.txt @@ -17,7 +17,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/websockets/simplechat") find_package(Qt6 COMPONENTS WebSockets) -add_executable(chatserver +qt_add_executable(chatserver chatserver.cpp chatserver.h main.cpp ) diff --git a/examples/websockets/sslechoclient/CMakeLists.txt b/examples/websockets/sslechoclient/CMakeLists.txt index b1269f2..0e56e90 100644 --- a/examples/websockets/sslechoclient/CMakeLists.txt +++ b/examples/websockets/sslechoclient/CMakeLists.txt @@ -17,7 +17,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/websockets/sslechoclient") find_package(Qt6 COMPONENTS WebSockets) -add_executable(sslechoclient +qt_add_executable(sslechoclient main.cpp sslechoclient.cpp sslechoclient.h ) diff --git a/examples/websockets/sslechoserver/CMakeLists.txt b/examples/websockets/sslechoserver/CMakeLists.txt index 8f71e97..097768c 100644 --- a/examples/websockets/sslechoserver/CMakeLists.txt +++ b/examples/websockets/sslechoserver/CMakeLists.txt @@ -17,7 +17,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/websockets/sslechoserver") find_package(Qt6 COMPONENTS WebSockets) -add_executable(sslechoserver +qt_add_executable(sslechoserver main.cpp sslechoserver.cpp sslechoserver.h ) |