Adapt to Qt6 name of KDEGames library
GIT_SILENT
This commit is contained in:
parent
07ca98a72b
commit
b2162a2c3d
2 changed files with 11 additions and 2 deletions
|
@ -54,7 +54,11 @@ find_package(KF${KF_MAJOR_VERSION} ${KF_MIN_VERSION} REQUIRED COMPONENTS
|
|||
NewStuff
|
||||
)
|
||||
|
||||
find_package(KF5KDEGames 7.3.0 REQUIRED)
|
||||
if (QT_MAJOR_VERSION STREQUAL "6")
|
||||
find_package(KDEGames6 7.5.0 REQUIRED)
|
||||
else()
|
||||
find_package(KF5KDEGames 7.3.0 REQUIRED)
|
||||
endif()
|
||||
|
||||
find_package(GNUGo QUIET)
|
||||
set_package_properties(GNUGo PROPERTIES
|
||||
|
|
|
@ -57,8 +57,13 @@ kconfig_add_kcfg_files(kigo preferences.kcfgc)
|
|||
file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../data/icons/*-apps-kigo.png")
|
||||
ecm_add_app_icon(kigo ICONS ${ICONS_SRCS})
|
||||
|
||||
if (QT_MAJOR_VERSION STREQUAL "6")
|
||||
target_link_libraries(kigo KDEGames6)
|
||||
else()
|
||||
target_link_libraries(kigo KF5KDEGames)
|
||||
endif()
|
||||
|
||||
target_link_libraries(kigo
|
||||
KF5KDEGames
|
||||
KF${KF_MAJOR_VERSION}::XmlGui
|
||||
KF${KF_MAJOR_VERSION}::KIOWidgets # KUrlRequester
|
||||
KF${KF_MAJOR_VERSION}::TextWidgets # KPluralHandlingSpinBox
|
||||
|
|
Loading…
Add table
Reference in a new issue