refactor: Remove unneeed find_packate calls for Qt Components. Qt is found by Libaraies.cmake and accesable to all items in the src folder

This commit is contained in:
sithlord48
2025-03-05 21:27:50 -05:00
committed by Nick Bolton
parent 495331108b
commit 3a4bf35e22
6 changed files with 3 additions and 6 deletions

View File

@ -21,6 +21,9 @@ macro(configure_libs)
endif()
find_package(Qt6 ${REQUIRED_QT_VERSION} REQUIRED COMPONENTS Core Widgets Network)
if(UNIX AND NOT APPLE)
find_package(Qt6 ${REQUIRED_QT_VERSION} REQUIRED COMPONENTS DBus)
endif()
# Define the location of Qt deployment tool
if(WIN32)

View File

@ -14,8 +14,6 @@ if(WIN32)
add_executable(${target} WIN32 ${target}.cpp ${CMAKE_CURRENT_BINARY_DIR}/${target}.rc)
find_package(Qt6 COMPONENTS Core Network)
target_link_libraries(
${target}
arch

View File

@ -84,7 +84,6 @@ add_library(arch STATIC ${PLATFORM_CODE}
if(UNIX)
target_link_libraries(arch ${CMAKE_DL_LIBS} ${libs})
if(NOT APPLE)
find_package(Qt6 ${REQUIRED_QT_VERSION} REQUIRED COMPONENTS DBus)
target_link_libraries(arch Qt6::DBus)
endif()
endif()

View File

@ -25,7 +25,6 @@ add_library(common INTERFACE
${CMAKE_CURRENT_BINARY_DIR}/constants.h
)
find_package(Qt6 COMPONENTS Core)
target_link_libraries(common INTERFACE Qt6::Core)
if(APPLE)

View File

@ -149,7 +149,6 @@ add_library(${lib_name} STATIC ${PLATFORM_CODE}
ipc/DaemonIpcServer.h
)
find_package(Qt6 COMPONENTS Core Network)
target_link_libraries(${lib_name} PRIVATE Qt6::Core Qt6::Network)
if(WIN32)

View File

@ -184,7 +184,6 @@ if(UNIX)
${libs})
if(NOT APPLE)
find_package(Qt6 ${REQUIRED_QT_VERSION} REQUIRED COMPONENTS DBus)
target_link_libraries(platform Qt6::DBus)
link_wayland_libs()