C

Message Proxy: Testing Qt Safe Renderer Messaging Interface

# Generated from messageproxy.pro.

cmake_minimum_required(VERSION 3.16)
project(messageproxy LANGUAGES CXX)
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS Core Network SafeRenderer SafeEventSender)

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")
endif()

set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}")

qt_add_executable(messageproxy WIN32 MACOSX_BUNDLE
    main.cpp
    server.cpp server.h
)
target_link_libraries(messageproxy PUBLIC
    Qt::Core
    Qt::Network
    Qt::SafeRenderer
    Qt::SafeEventSender
)

install(TARGETS messageproxy
    RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
    BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
    LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)