Skip to content

Commit

Permalink
added QT_ADD_STATEMACHINE cmake option
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkorsukov committed Oct 17, 2024
1 parent 2ac0683 commit 1d81f31
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ if (MUE_COMPILE_MACOS_PRECOMPILED_DEPS_PATH)
endif()

set(QT_MIN_VERSION "6.2.4")
set(QT_ADD_STATEMACHINE ON)
if (MUSE_MODULE_NETWORK_WEBSOCKET)
set(QT_ADD_WEBSOCKET ON)
endif()
Expand Down
15 changes: 9 additions & 6 deletions buildscripts/cmake/FindQt6.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ set(_components
LinguistTools

Core5Compat

# Note: only used in ExampleView class.
# When that class is removed, don't forget to remove this dependency.
StateMachine
)

if (NOT OS_IS_WASM)
Expand All @@ -46,9 +42,16 @@ if (OS_IS_LIN)
)
endif()

if (QT_ADD_STATEMACHINE)
set(_components ${_components}
# Note: only used in ExampleView class.
# When that class is removed, don't forget to remove this dependency.
StateMachine
)
endif()

if (QT_ADD_WEBSOCKET)
set(_components
${_components}
set(_components ${_components}
WebSockets
)
endif()
Expand Down

0 comments on commit 1d81f31

Please sign in to comment.