diff options
-rw-r--r-- | examples/CMakeLists.txt | 2 | ||||
-rw-r--r-- | examples/scxml/CMakeLists.txt | 2 | ||||
-rw-r--r-- | examples/statemachine/CMakeLists.txt | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 4d8af6f..0342831 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -5,7 +5,7 @@ qt_examples_build_begin() if(TARGET Qt::Scxml) add_subdirectory(scxml) endif() -if(TARGET Qt::StateMachine AND QT_FEATURE_qeventtransition) +if(TARGET Qt::StateMachine) add_subdirectory(statemachine) endif() diff --git a/examples/scxml/CMakeLists.txt b/examples/scxml/CMakeLists.txt index 49d76b4..29cdff0 100644 --- a/examples/scxml/CMakeLists.txt +++ b/examples/scxml/CMakeLists.txt @@ -16,7 +16,7 @@ if (QT_FEATURE_scxml_ecmascriptdatamodel) endif() endif() -if(TARGET Qt::Qml) +if(TARGET Qt::Qml AND TARGET Qt::Gui) add_subdirectory(calculator-qml) add_subdirectory(trafficlight-qml-static) add_subdirectory(trafficlight-qml-dynamic) diff --git a/examples/statemachine/CMakeLists.txt b/examples/statemachine/CMakeLists.txt index 5ddc90e..e80fa00 100644 --- a/examples/statemachine/CMakeLists.txt +++ b/examples/statemachine/CMakeLists.txt @@ -1,10 +1,10 @@ # Generated from widgets.pro. -if(NOT TARGET Qt::Widgets) - return() -endif() -add_subdirectory(graphicsview) add_subdirectory(statemachine) -if(QT_FEATURE_animation) - add_subdirectory(animation) + +if(TARGET Qt::Widgets) + add_subdirectory(graphicsview) + if(QT_FEATURE_animation) + add_subdirectory(animation) + endif() endif() |