Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lack of pkg-config, CMake Find Module, or CMake Package Config files #21

Open
Nopey opened this issue Nov 8, 2017 · 2 comments
Open
Assignees

Comments

@Nopey
Copy link

Nopey commented Nov 8, 2017

There is no slikenet.pc FindSlikeNet.cmake or SlikeNetConfig.cmake file, leaving the users of this library to use subproject, manually copy the library binary, or other wacky tactics just to get the library into their project.

FindSlikeNet.cmake is different from SlikeNetConfig.cmake in that config is installed on the user's machine, where as Find can be installed or bundled into the dependant project.
pkg-config is different because it is a step towards having SLikeNet packaged and available in the end user's package manager (be it apt, rpm, brew, or cygwin.
There are more subtle differences between them (okay, maybe not so subtle)

Is there some way of including the library that I have missed?

p.s. If SLikeNet ends up on a package manager, it should be the shared library/DLL. Perhaps the static build/LibStatic should be a simple CMake Option?

Quick Links:

pkg-config
https://www.freedesktop.org/wiki/Software/pkg-config/
https://people.freedesktop.org/~dbn/pkg-config-guide.html#writing
CMake Find Modules
https://www.vtk.org/Wiki/CMake:How_To_Find_Libraries#Writing_find_modules
CMake Package Config
https://cmake.org/cmake/help/git-master/manual/cmake-packages.7.html#creating-packages

@Luke1410 Luke1410 self-assigned this Nov 12, 2017
@Luke1410
Copy link
Member

Luke1410 commented Nov 12, 2017

Thanks for bringing this up. It certainly is already on our radar.
Assigned internal case number SLNET-132 to the get these added. Atm this is scheduled for 0.2.0.

@OvermindDL1
Copy link

Adding a metadata file for https://hunter.sh/ (A pure CMake dependency management system) would also make it substantially easier to use in CMake projects in general (while not adding a cmake requirement for this project either if not wanted).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants