File: QtRepoSetup.cmake

package info (click to toggle)
qt6-scxml 6.9.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,772 kB
  • sloc: cpp: 28,750; javascript: 330; sh: 95; python: 78; makefile: 26
file content (16 lines) | stat: -rw-r--r-- 510 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

function(add_qt_statecharts target)
    # Don't try to add statecharts when cross compiling, and the target is actually a host target
    # (like a tool).
    qt_is_imported_target("${target}" is_imported)
    if(is_imported)
        return()
    endif()

    cmake_parse_arguments(PARSE_ARGV 1 arg "" "" "FILES")
    _qt_internal_validate_all_args_are_parsed(arg)

    qt6_add_statecharts(${target} ${arg_FILES})
endfunction()