Limit building local KDev::Tests library for KF5 only when kdevplatform library has been found
This fixes a CI build error in case kdevplatform development package was not installed
CCMAIL:cfeck@kde.org CCBUG:415849