qtgrpc/examples/protobuf/sensors/client/CMakeLists.txt

26 lines
630 B
CMake

# Copyright (C) 2023 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
cmake_minimum_required(VERSION 3.16)
qt_add_executable(protobuf_sensors_client
main.cpp
clientconsole.cpp clientconsole.h
sensorclient.cpp sensorclient.h
clientconsole.ui
)
target_link_libraries(protobuf_sensors_client PRIVATE
Qt6::Core
Qt6::Protobuf
Qt6::Widgets
Qt6::Network
protobuf_sensors
)
install(TARGETS protobuf_sensors_client
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)