diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2019-09-17 14:12:29 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2019-09-26 19:39:39 +0000 |
commit | 5fe75751ed90354eb0968f528974592003c65460 (patch) | |
tree | 34289c653ea7f8c0d891aee0ca6a4be1427bc04d /cmake | |
parent | b5daa31da99fbe872b4df047f37da17ae2c119c9 (diff) |
Port QtScxml to CMake
Change-Id: I227f18b6a9825b6974eab6ba9feaf62bd0934133
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtRepoSetup.cmake | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/QtRepoSetup.cmake b/cmake/QtRepoSetup.cmake new file mode 100644 index 0000000..25ddbc1 --- /dev/null +++ b/cmake/QtRepoSetup.cmake @@ -0,0 +1,12 @@ +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() + + qt_parse_all_arguments(arg "add_qt_statecharts" "" "" "FILES" ${ARGN}) + + qt6_add_statecharts(${target} ${arg_FILES}) +endfunction() |