diff options
Diffstat (limited to 'examples/widgets/statemachine')
6 files changed, 133 insertions, 81 deletions
diff --git a/examples/widgets/statemachine/eventtransitions/CMakeLists.txt b/examples/widgets/statemachine/eventtransitions/CMakeLists.txt index 0fc20f59ae..758265686b 100644 --- a/examples/widgets/statemachine/eventtransitions/CMakeLists.txt +++ b/examples/widgets/statemachine/eventtransitions/CMakeLists.txt @@ -1,15 +1,26 @@ # Generated from eventtransitions.pro. -##################################################################### -## eventtransitions Binary: -##################################################################### - -add_qt_executable(eventtransitions - GUI - OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/eventtransitions" - INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/eventtransitions" - SOURCES - main.cpp - LIBRARIES - Qt::Widgets +cmake_minimum_required(VERSION 3.14) +project(eventtransitions LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt5 COMPONENTS Widgets) + +add_executable(eventtransitions WIN32 MACOSX_BUNDLE + main.cpp +) +target_link_libraries(eventtransitions PUBLIC + Qt::Widgets +) + +install(TARGETS eventtransitions + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" ) diff --git a/examples/widgets/statemachine/factorial/CMakeLists.txt b/examples/widgets/statemachine/factorial/CMakeLists.txt index e38995220e..e383225705 100644 --- a/examples/widgets/statemachine/factorial/CMakeLists.txt +++ b/examples/widgets/statemachine/factorial/CMakeLists.txt @@ -1,22 +1,26 @@ # Generated from factorial.pro. -##################################################################### -## factorial Binary: -##################################################################### +cmake_minimum_required(VERSION 3.14) +project(factorial LANGUAGES CXX) -add_qt_executable(factorial - GUI - OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/factorial" - INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/factorial" - SOURCES - main.cpp -) +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") -## Scopes: -##################################################################### +find_package(Qt5 COMPONENTS Core) -#### Keys ignored in scope 2:.:factorial.pro:WIN32: -# CONFIG = "console" +add_executable(factorial + main.cpp +) +target_link_libraries(factorial PUBLIC + Qt::Core +) -#### Keys ignored in scope 3:.:factorial.pro:APPLE_OSX: -# CONFIG = "-app_bundle" +install(TARGETS factorial + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/widgets/statemachine/pingpong/CMakeLists.txt b/examples/widgets/statemachine/pingpong/CMakeLists.txt index b911bd727f..e3745a280d 100644 --- a/examples/widgets/statemachine/pingpong/CMakeLists.txt +++ b/examples/widgets/statemachine/pingpong/CMakeLists.txt @@ -1,22 +1,26 @@ # Generated from pingpong.pro. -##################################################################### -## pingpong Binary: -##################################################################### +cmake_minimum_required(VERSION 3.14) +project(pingpong LANGUAGES CXX) -add_qt_executable(pingpong - GUI - OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/pingpong" - INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/pingpong" - SOURCES - main.cpp -) +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") -## Scopes: -##################################################################### +find_package(Qt5 COMPONENTS Core) -#### Keys ignored in scope 2:.:pingpong.pro:WIN32: -# CONFIG = "console" +add_executable(pingpong + main.cpp +) +target_link_libraries(pingpong PUBLIC + Qt::Core +) -#### Keys ignored in scope 3:.:pingpong.pro:APPLE_OSX: -# CONFIG = "-app_bundle" +install(TARGETS pingpong + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/widgets/statemachine/rogue/CMakeLists.txt b/examples/widgets/statemachine/rogue/CMakeLists.txt index a6a1a473e1..7ce3c5c966 100644 --- a/examples/widgets/statemachine/rogue/CMakeLists.txt +++ b/examples/widgets/statemachine/rogue/CMakeLists.txt @@ -1,17 +1,28 @@ # Generated from rogue.pro. -##################################################################### -## rogue Binary: -##################################################################### +cmake_minimum_required(VERSION 3.14) +project(rogue LANGUAGES CXX) -add_qt_executable(rogue - GUI - OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/rogue" - INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/rogue" - SOURCES - main.cpp - movementtransition.h - window.cpp window.h - LIBRARIES - Qt::Widgets +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt5 COMPONENTS Widgets) + +add_executable(rogue WIN32 MACOSX_BUNDLE + main.cpp + movementtransition.h + window.cpp window.h +) +target_link_libraries(rogue PUBLIC + Qt::Widgets +) + +install(TARGETS rogue + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" ) diff --git a/examples/widgets/statemachine/trafficlight/CMakeLists.txt b/examples/widgets/statemachine/trafficlight/CMakeLists.txt index 52f9fb3c6c..3325c5fe46 100644 --- a/examples/widgets/statemachine/trafficlight/CMakeLists.txt +++ b/examples/widgets/statemachine/trafficlight/CMakeLists.txt @@ -1,15 +1,26 @@ # Generated from trafficlight.pro. -##################################################################### -## trafficlight Binary: -##################################################################### - -add_qt_executable(trafficlight - GUI - OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/trafficlight" - INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/trafficlight" - SOURCES - main.cpp - LIBRARIES - Qt::Widgets +cmake_minimum_required(VERSION 3.14) +project(trafficlight LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt5 COMPONENTS Widgets) + +add_executable(trafficlight WIN32 MACOSX_BUNDLE + main.cpp +) +target_link_libraries(trafficlight PUBLIC + Qt::Widgets +) + +install(TARGETS trafficlight + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" ) diff --git a/examples/widgets/statemachine/twowaybutton/CMakeLists.txt b/examples/widgets/statemachine/twowaybutton/CMakeLists.txt index c5f14b7514..3ea05f9595 100644 --- a/examples/widgets/statemachine/twowaybutton/CMakeLists.txt +++ b/examples/widgets/statemachine/twowaybutton/CMakeLists.txt @@ -1,15 +1,26 @@ # Generated from twowaybutton.pro. -##################################################################### -## twowaybutton Binary: -##################################################################### - -add_qt_executable(twowaybutton - GUI - OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/twowaybutton" - INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/twowaybutton" - SOURCES - main.cpp - LIBRARIES - Qt::Widgets +cmake_minimum_required(VERSION 3.14) +project(twowaybutton LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt5 COMPONENTS Widgets) + +add_executable(twowaybutton WIN32 MACOSX_BUNDLE + main.cpp +) +target_link_libraries(twowaybutton PUBLIC + Qt::Widgets +) + +install(TARGETS twowaybutton + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" ) |