Commit c48a0902 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix compile against qt6

parent e36f2e28
......@@ -40,10 +40,10 @@ find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONEN
Svg
)
find_package(Qt5TextToSpeech ${QT_REQUIRED_VERSION} QUIET)
set_package_properties(Qt5TextToSpeech PROPERTIES
find_package(Qt${QT_MAJOR_VERSION}TextToSpeech ${QT_REQUIRED_VERSION} QUIET)
set_package_properties(Qt${QT_MAJOR_VERSION}TextToSpeech PROPERTIES
PURPOSE "Speaking of opponents moves")
if (Qt5TextToSpeech_FOUND)
if (Qt${QT_MAJOR_VERSION}TextToSpeech_FOUND)
add_definitions(-DHAVE_SPEECH)
endif ()
......
......@@ -63,9 +63,9 @@ file(GLOB ICON_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../icons/*-apps-knights.png")
ecm_add_app_icon(knights_SRCS ICONS ${ICON_SRCS})
add_executable(knights ${knights_SRCS})
if (Qt5TextToSpeech_FOUND)
if (Qt${QT_MAJOR_VERSION}TextToSpeech_FOUND)
target_link_libraries(knights
Qt5::TextToSpeech)
Qt${QT_MAJOR_VERSION}::TextToSpeech)
endif()
target_link_libraries(knights
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment