Skip to content

do not hard code KF5 everywhere

Gilles Caulier requested to merge cgilles/libksane:master into master

handle Qt6 or Qt5 dependency to switch prefix automatically to KF6 or KF5. This patch made the rules to configure and install libksane exactly as all other KDE framework components. libksane still compatible with Qt5 and generate a component for KF5. libksane is now compatible with Qt6 a,d generate a component for KF6.

This patch was tested with digiKam as client application. The detection of libksane is done as other KDE framework components: https://invent.kde.org/graphics/digikam/-/blob/master/core/cmake/rules/RulesKDEFramework.cmake?ref_type=heads#L49

To link with libksane, the rules are the same than other KDe framework components (here the digital scanner import plugin): https://invent.kde.org/graphics/digikam/-/blob/master/core/dplugins/generic/import/dscanner/CMakeLists.txt?ref_type=heads#L28

Merge request reports