diff options
Diffstat (limited to 'examples/websockets/sslechoserver/CMakeLists.txt')
-rw-r--r-- | examples/websockets/sslechoserver/CMakeLists.txt | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/examples/websockets/sslechoserver/CMakeLists.txt b/examples/websockets/sslechoserver/CMakeLists.txt index 8f71e97..7288373 100644 --- a/examples/websockets/sslechoserver/CMakeLists.txt +++ b/examples/websockets/sslechoserver/CMakeLists.txt @@ -1,31 +1,33 @@ -# Generated from sslechoserver.pro. +# Copyright (C) 2022 The Qt Company Ltd. +# SPDX-License-Identifier: BSD-3-Clause -cmake_minimum_required(VERSION 3.14) +cmake_minimum_required(VERSION 3.16) project(sslechoserver LANGUAGES CXX) -set(CMAKE_INCLUDE_CURRENT_DIR ON) - set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") + set(INSTALL_EXAMPLESDIR "examples") endif() set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/websockets/sslechoserver") -find_package(Qt6 COMPONENTS WebSockets) +find_package(Qt6 REQUIRED COMPONENTS WebSockets) -add_executable(sslechoserver +qt_add_executable(sslechoserver main.cpp sslechoserver.cpp sslechoserver.h ) + +set_target_properties(sslechoserver PROPERTIES + WIN32_EXECUTABLE FALSE + MACOSX_BUNDLE FALSE +) + target_link_libraries(sslechoserver PUBLIC Qt::WebSockets ) - # Resources: set(securesocketclient_resource_files "localhost.cert" |