Skip to content

Commit

Permalink
Use Qt GUI modules only if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
kleag committed May 2, 2024
1 parent ca25c5f commit 18efc1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ else()
endif()

include(${CMAKE_SOURCE_DIR}/manageQt.cmake)
addQtModules(Core Gui Qml Quick Test Xml Widgets Concurrent)
addQtModules(Core Test Xml Concurrent)
message("\n\n\n{Qt_LIBRARIES}=${Qt_LIBRARIES} ")

# Search Qt optional components
Expand Down Expand Up @@ -492,6 +492,7 @@ if (WITH_GUI)
if (Qt${QT_VERSION_MAJOR}Core_FOUND)
if (Qt${QT_VERSION_MAJOR}Core_VERSION VERSION_GREATER 5.5.0)
message("Build with lima_gui")
addQtModules(Gui Qml Quick Widgets)
add_subdirectory(lima_gui)
else()
message("Minimum supported Qt version for lima_gui is 5.5.0. You have Qt ${QtCore_VERSION}. lima_gui will no be built.")
Expand Down

0 comments on commit 18efc1e

Please sign in to comment.