diff options
author | Millian Poquet <millian.poquet@gmail.com> | 2021-02-22 19:23:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-22 10:23:38 -0800 |
commit | 1da6f4f18bdc7f47cd84f58a427835f2b790cb29 (patch) | |
tree | cd36f5c9bf8d2e294f8483a4e5cdeb06a39ab7d2 /CMake | |
parent | b5da526e6d44dfab9b03398af229eebbe835cc1e (diff) | |
download | flatbuffers-1da6f4f18bdc7f47cd84f58a427835f2b790cb29.tar.gz flatbuffers-1da6f4f18bdc7f47cd84f58a427835f2b790cb29.tar.bz2 flatbuffers-1da6f4f18bdc7f47cd84f58a427835f2b790cb29.zip |
[CMake] generate pkg-config flatbuffers.pc file (#6455)
This commit enables CMake to generate a flatbuffers.pc file on install.
pkg-config eases the utilization of software libraries by enabling the
developers of a library to define how the library should be used.
It can be used as a tool by build systems to find and manage dependencies,
this is notably the default Meson behavior and optionally used by CMake.
Diffstat (limited to 'CMake')
-rw-r--r-- | CMake/flatbuffers.pc.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMake/flatbuffers.pc.in b/CMake/flatbuffers.pc.in new file mode 100644 index 00000000..110770ab --- /dev/null +++ b/CMake/flatbuffers.pc.in @@ -0,0 +1,9 @@ +libdir=@CMAKE_INSTALL_FULL_LIBDIR@ +includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ + +Name: FlatBuffers +Description: Memory Efficient Serialization Library +Version: @VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@ + +Libs: -L${libdir} -lflatbuffers +Cflags: -I${includedir} |