Add a pkg-config file to the project.

I ended up having to edit CMakeLists.txt a bit to get it to work out.
So I modified the versioning in version.h to utilize the new variable I made.
No functionality is changed, just worked on the build system.
This commit is contained in:
2021-06-24 16:09:43 -07:00
parent 7e1e076cbe
commit 1ae3523fe2
5 changed files with 60 additions and 30 deletions

9
pc/frnetlib.pc.cmake.in Normal file
View File

@@ -0,0 +1,9 @@
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
Name: frnetlib
Description: Frnetlib, is a cross-platform, small and fast networking library written in C++.
URL: https://github.com/Cloaked9000/frnetlib
Version: @FRNETLIB_VERSION_MAJOR@.@FRNETLIB_VERSION_MINOR@.@FRNETLIB_VERSION_PATCH@
Libs: -L${libdir} @FRNETLIB_LIBFLAGS@
Cflags: -I${includedir}