First of all you need to add
X-KPackage-Dependencies=
to your metadata.desktop. Lets take a look at this example