mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 15:10:06 +00:00
Add wayland client libraries conditionally
This commit is contained in:
parent
b90deae897
commit
4ad3e92730
1 changed files with 10 additions and 0 deletions
|
|
@ -688,6 +688,16 @@ if (MSVC)
|
|||
else()
|
||||
target_compile_options(scwx-qt PRIVATE "$<$<CONFIG:Release>:-g>")
|
||||
target_compile_options(supercell-wx PRIVATE "$<$<CONFIG:Release>:-g>")
|
||||
|
||||
# Add wayland client packages
|
||||
find_package(QT NAMES Qt6
|
||||
COMPONENTS WaylandClient
|
||||
REQUIRED)
|
||||
|
||||
find_package(Qt${QT_VERSION_MAJOR}
|
||||
COMPONENTS WaylandClient
|
||||
REQUIRED)
|
||||
target_link_libraries(scwx-qt PUBLIC Qt${QT_VERSION_MAJOR}::WaylandClient)
|
||||
endif()
|
||||
|
||||
target_link_libraries(scwx-qt PUBLIC Qt${QT_VERSION_MAJOR}::Widgets
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue