diff options
Diffstat (limited to 'examples/statemachine/CMakeLists.txt')
-rw-r--r-- | examples/statemachine/CMakeLists.txt | 12 |
1 files changed, 6 insertions, 6 deletions
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() |