Поддержка Qt6
This commit is contained in:
parent
2246f06397
commit
56e29e35c0
@ -3,7 +3,7 @@ include_guard(GLOBAL)
|
|||||||
macro(myx_find_required_packages)
|
macro(myx_find_required_packages)
|
||||||
set(options)
|
set(options)
|
||||||
set(oneValueArgs)
|
set(oneValueArgs)
|
||||||
set(multiValueArgs PACKAGES Boost Qt5 Qt5Private)
|
set(multiValueArgs PACKAGES Boost Qt5 Qt5Private Qt6 Qt6Private)
|
||||||
cmake_parse_arguments(ARG "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
cmake_parse_arguments(ARG "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
||||||
|
|
||||||
foreach(iter ${ARG_PACKAGES})
|
foreach(iter ${ARG_PACKAGES})
|
||||||
@ -24,6 +24,16 @@ macro(myx_find_required_packages)
|
|||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(ARG_Qt6)
|
||||||
|
find_package(Qt6 COMPONENTS ${ARG_Qt6} REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(ARG_Qt6Private)
|
||||||
|
foreach(iter ${ARG_Qt6Private})
|
||||||
|
find_package("Qt6${iter}" COMPONENTS Private REQUIRED)
|
||||||
|
endforeach()
|
||||||
|
endif()
|
||||||
|
|
||||||
foreach(__iter IN LISTS oneValueArgs multiValueArgs)
|
foreach(__iter IN LISTS oneValueArgs multiValueArgs)
|
||||||
unset(ARG_${__iter})
|
unset(ARG_${__iter})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user