From e63abd2a122a21623e0c623b94f4719149c1eca7 Mon Sep 17 00:00:00 2001 From: Dominik Holland Date: Fri, 28 May 2021 09:50:06 +0200 Subject: cmake: Fix building the climate_widget example Change-Id: I3d8093a810ac00338c6db20883f6262461e3de82 Reviewed-by: Robert Griebl --- examples/ivivehiclefunctions/climate_widget/CMakeLists.txt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'examples') diff --git a/examples/ivivehiclefunctions/climate_widget/CMakeLists.txt b/examples/ivivehiclefunctions/climate_widget/CMakeLists.txt index 0e1e124..472237a 100644 --- a/examples/ivivehiclefunctions/climate_widget/CMakeLists.txt +++ b/examples/ivivehiclefunctions/climate_widget/CMakeLists.txt @@ -17,6 +17,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/ivivehiclefunctions/climate_widge find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS IviCore) find_package(Qt6 COMPONENTS IviVehicleFunctions) @@ -31,16 +32,11 @@ set_target_properties(climate_widget PROPERTIES target_link_libraries(climate_widget PUBLIC Qt::Core Qt::Gui + Qt::Widgets Qt::IviCore Qt::IviVehicleFunctions ) -if((QT_MAJOR_VERSION GREATER 4)) - target_link_libraries(climate_widget PUBLIC - Qt::Widgets - ) -endif() - install(TARGETS climate_widget RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" -- cgit v1.2.1