build: add missing qt module deps

This commit is contained in:
outfoxxed 2024-02-04 23:03:44 -08:00
parent c0d6e63f6c
commit ae5363a351
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -19,7 +19,7 @@ if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug) set(CMAKE_BUILD_TYPE Debug)
endif() endif()
find_package(Qt6 REQUIRED COMPONENTS Qml QuickControls2) find_package(Qt6 REQUIRED COMPONENTS Gui Qml Quick QuickControls2)
if (LAYERSHELL) if (LAYERSHELL)
find_package(LayerShellQt REQUIRED) find_package(LayerShellQt REQUIRED)
@ -45,7 +45,7 @@ qt_add_qml_module(qtshell URI QtShell)
# qml type registration requires this # qml type registration requires this
target_include_directories(qtshell PRIVATE src/cpp) target_include_directories(qtshell PRIVATE src/cpp)
target_link_libraries(qtshell PRIVATE Qt6::Qml Qt6::QuickControls2) target_link_libraries(qtshell PRIVATE Qt6::Gui Qt6::Qml Qt6::Quick Qt6::QuickControls2)
if (LAYERSHELL) if (LAYERSHELL)
target_link_libraries(qtshell PRIVATE LayerShellQtInterface) target_link_libraries(qtshell PRIVATE LayerShellQtInterface)