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:
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user