QtWaylandClient contains QtXkbCommonSupport includes
This commit is contained in:
parent
2e9f0d27ad
commit
9eb24ca5c1
2 changed files with 26 additions and 0 deletions
25
external/qt/CMakeLists.txt
vendored
25
external/qt/CMakeLists.txt
vendored
|
|
@ -57,6 +57,15 @@ if (DESKTOP_APP_USE_PACKAGED)
|
|||
)
|
||||
endif()
|
||||
|
||||
if (Qt5XkbCommonSupport_FOUND)
|
||||
target_link_libraries(external_qt INTERFACE Qt5::XkbCommonSupport)
|
||||
|
||||
target_include_directories(external_qt
|
||||
INTERFACE
|
||||
${Qt5XkbCommonSupport_PRIVATE_INCLUDE_DIRS}
|
||||
)
|
||||
endif()
|
||||
|
||||
if (Qt5WaylandClient_FOUND)
|
||||
target_link_libraries(external_qt INTERFACE Qt5::WaylandClient)
|
||||
|
||||
|
|
@ -97,6 +106,15 @@ else()
|
|||
)
|
||||
endif()
|
||||
|
||||
if (Qt5XkbCommonSupport_FOUND)
|
||||
target_include_directories(external_qt SYSTEM
|
||||
INTERFACE
|
||||
${qt_loc}/include/QtXkbCommonSupport
|
||||
${qt_loc}/include/QtXkbCommonSupport/${qt_version}
|
||||
${qt_loc}/include/QtXkbCommonSupport/${qt_version}/QtXkbCommonSupport
|
||||
)
|
||||
endif()
|
||||
|
||||
if (LINUX)
|
||||
target_include_directories(external_qt SYSTEM
|
||||
INTERFACE
|
||||
|
|
@ -129,6 +147,13 @@ else()
|
|||
)
|
||||
endif()
|
||||
|
||||
if (Qt5XkbCommonSupport_FOUND)
|
||||
target_compile_definitions(external_qt
|
||||
INTERFACE
|
||||
QT_XKBCOMMON_SUPPORT_LIB
|
||||
)
|
||||
endif()
|
||||
|
||||
if (LINUX)
|
||||
target_compile_definitions(external_qt
|
||||
INTERFACE
|
||||
|
|
|
|||
1
external/qt/package.cmake
vendored
1
external/qt/package.cmake
vendored
|
|
@ -25,6 +25,7 @@ find_package(Qt5Gui COMPONENTS QWebpPlugin REQUIRED)
|
|||
|
||||
if (LINUX)
|
||||
find_package(Qt5 COMPONENTS WaylandClient REQUIRED)
|
||||
find_package(Qt5 COMPONENTS XkbCommonSupport)
|
||||
|
||||
if (NOT DESKTOP_APP_USE_PACKAGED)
|
||||
find_package(Qt5 COMPONENTS Svg X11Extras REQUIRED)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue