summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_qtscxml_module/CMakeLists.txt
blob: 384c2b9163f95e71bdf48f2143dd4fb2a7393e04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

cmake_minimum_required(VERSION 3.16)

project(test_qtscxml_module)

find_package(Qt6Scxml REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)

add_executable(mainapp main.cpp)

qt6_add_statecharts(mainapp
    ../../compiled/connection.scxml

    # unused, just for testing whether it's possible to pass multiple files
    ../../compiled/topmachine.scxml
)

target_link_libraries(mainapp Qt::Scxml)