unneeded module dependencies removed
This commit is contained in:
parent
8ddcbd75cb
commit
98521ca5eb
|
@ -12,8 +12,8 @@ include(${CMAKE_SOURCE_DIR}/features/qskconfig.cmake)
|
|||
|
||||
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core)
|
||||
if(QT_VERSION_MAJOR VERSION_EQUAL "5")
|
||||
find_package(Qt5 5.15 REQUIRED COMPONENTS Core Gui OpenGL Quick Svg Widgets)
|
||||
find_package(Qt5 5.15 OPTIONAL_COMPONENTS QuickWidgets WebEngine WebEngineCore)
|
||||
find_package(Qt5 5.15 REQUIRED COMPONENTS Core Gui OpenGL Quick )
|
||||
find_package(Qt5 5.15 OPTIONAL_COMPONENTS Svg )
|
||||
message(WARNING "using QSkinny's 'qt_add_executable()'")
|
||||
function(qt_add_executable)
|
||||
add_executable(${ARGV})
|
||||
|
@ -23,8 +23,8 @@ if(QT_VERSION_MAJOR VERSION_EQUAL "5")
|
|||
add_library(${ARGV})
|
||||
endfunction(qt_add_library)
|
||||
elseif(QT_VERSION_MAJOR VERSION_EQUAL "6")
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core Gui OpenGL Quick QuickWidgets Svg Widgets)
|
||||
find_package(Qt6 OPTIONAL_COMPONENTS QuickWidgets WebEngineCore WebEngineQuick)
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core Gui OpenGL Quick )
|
||||
find_package(Qt6 OPTIONAL_COMPONENTS Svg)
|
||||
else()
|
||||
message(FATAL_ERROR "Couldn't find any Qt version!")
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue