Does a libkcardgame-dev package exist?

I have a hobby project and would like to make use of kpat’s libkcardgame, but I could not find a dev package for it. Does one exist?

If not, what is the “proper” kde-builder way to use a library from another project?

Do I merely add_directory to point to kpat’s libkcardgame folder? or a target_include_directory perhaps? what’s the right way to specify that path of kpat without resorting to the full path on disk? something in the style the following?
${var_name}/src/kpat/src/libkcardgame

1 Like

If it is an app specific library it is unlikely that packagers have created a “dev” package as it is only needed during the build of that specific app.

Whether you can easily use it when you build locally depends on how the primary app is using it.

It might be possible to “install” kpat and then use the install prefix as CMAKE_PREFIX_PATH in your build.
If the library has been intended to be shared it might have installed necessary cmake files to be found.

It would still great a bit of an issue for traditional Linux packaging, less of an issue if you build and publish a Flatpak or Snap yourself.

In any case it might make sense to get in contact with the library author(s).
They might be open to moving it to libkdegames and make it an “official” library.

2 Likes