Commit 274bf5c7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix linking against qt6

parent eb0bf049
Pipeline #177068 passed with stage
in 1 minute and 19 seconds
......@@ -73,9 +73,15 @@ target_link_libraries(knotesprivate
KF5::IconThemes
PRIVATE
KF5::PimCommon
KF5::KCMUtils Grantlee5::Templates KF5::NewStuff KF5::WindowSystem Qt${QT_MAJOR_VERSION}::PrintSupport KF5::TextWidgets KF5::I18n notesharedprivate KF5::AkonadiSearchPIM KF5::AkonadiNotes KF5::PimTextEdit KF5::AkonadiWidgets KF5::GrantleeTheme
KF5::KCMUtils KF5::NewStuff KF5::WindowSystem Qt${QT_MAJOR_VERSION}::PrintSupport KF5::TextWidgets KF5::I18n notesharedprivate KF5::AkonadiSearchPIM KF5::AkonadiNotes KF5::PimTextEdit KF5::AkonadiWidgets KF5::GrantleeTheme
)
if (QT_MAJOR_VERSION STREQUAL "5")
target_link_libraries(knotesprivate PRIVATE Grantlee5::Templates)
else()
target_link_libraries(knotesprivate PRIVATE KF6TextTemplate::Templates)
endif()
set_target_properties(knotesprivate
PROPERTIES VERSION ${KDEPIM_LIB_VERSION} SOVERSION ${KDEPIM_LIB_SOVERSION}
)
......
......@@ -8,5 +8,10 @@ set( knotes_knotesgrantleeprint_source knotesgrantleeprinttest.cpp )
add_executable( knotesgrantleeprinttest ${knotes_knotesgrantleeprint_source})
add_test(NAME knotesgrantleeprinttest COMMAND knotesgrantleeprinttest)
ecm_mark_as_test(knotesgrantleeprinttest)
target_link_libraries( knotesgrantleeprinttest Qt${QT_MAJOR_VERSION}::Test Qt${QT_MAJOR_VERSION}::Gui KF5::AkonadiCore knotesprivate KF5::Mime KF5::AkonadiNotes Grantlee5::Templates KF5::GrantleeTheme)
target_link_libraries( knotesgrantleeprinttest Qt${QT_MAJOR_VERSION}::Test Qt${QT_MAJOR_VERSION}::Gui KF5::AkonadiCore knotesprivate KF5::Mime KF5::AkonadiNotes KF5::GrantleeTheme)
if (QT_MAJOR_VERSION STREQUAL "5")
target_link_libraries(knotesgrantleeprinttest Grantlee5::Templates)
else()
target_link_libraries(knotesgrantleeprinttest KF6TextTemplate::Templates)
endif()
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