remotecontrolledcar example: Move executables into single example project
This allows building of all the example executables at once. Task-number: QTBUG-111366 Pick-to: 6.5 Change-Id: I1fa372ec9725bfeb1f123305aa7324b7820eb593 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
f4f49523ad
commit
5cd7900d4f
@ -10,5 +10,5 @@ if(QT_FEATURE_process)
|
||||
endif()
|
||||
if(TARGET Qt6::Widgets)
|
||||
qt_internal_add_example(chat)
|
||||
add_subdirectory(remotecontrolledcar)
|
||||
qt_internal_add_example(remotecontrolledcar)
|
||||
endif()
|
||||
|
@ -1,2 +1,12 @@
|
||||
qt_internal_add_example(car)
|
||||
qt_internal_add_example(controller)
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
project(remotecontrolledcar LANGUAGES CXX)
|
||||
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core DBus Gui Widgets)
|
||||
|
||||
qt_standard_project_setup()
|
||||
|
||||
add_subdirectory(car)
|
||||
add_subdirectory(controller)
|
||||
|
@ -1,9 +1,6 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
project(car LANGUAGES CXX)
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||
@ -12,10 +9,6 @@ endif()
|
||||
|
||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/car")
|
||||
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core DBus Gui Widgets)
|
||||
|
||||
qt_standard_project_setup()
|
||||
|
||||
set(car_SRCS)
|
||||
qt_add_dbus_adaptor(car_SRCS
|
||||
car.xml
|
||||
|
@ -1,9 +1,6 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
project(controller LANGUAGES CXX)
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||
@ -12,10 +9,6 @@ endif()
|
||||
|
||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/controller")
|
||||
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core DBus Gui Widgets)
|
||||
|
||||
qt_standard_project_setup()
|
||||
|
||||
set(controller_SRCS)
|
||||
qt_add_dbus_interface(controller_SRCS
|
||||
car.xml
|
||||
|
Loading…
x
Reference in New Issue
Block a user