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:
9
pc/frnetlib.pc.cmake.in
Normal file
9
pc/frnetlib.pc.cmake.in
Normal 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}
|
||||
Reference in New Issue
Block a user