9 Commits

Author SHA1 Message Date
Leander Schulten
7cb316f28b Fix pkgconfig file for private dependencies 2023-09-12 12:05:12 -07:00
Nathan Moinvaziri
e15e1462f2 Proper use of GNUInstallDirs cmake module.
Co-authored-by: Tomasz Kłoczko <kloczek@users.noreply.github.com>
2023-04-15 23:05:15 -07:00
Nathan Moinvaziri
85a4ee2864 Added description and homepage url to CMake. 2023-04-15 23:03:31 -07:00
Nathan Moinvaziri
10d06fa43c Modify CMake to call project() early as possible.
Co-authored-by: SpaceIm <SpaceIm@users.noreply.github.com>
2023-04-15 22:55:07 -07:00
Björn Esser
6390942e90 minizip.pc: Ensure variables point to an absolute path.
With commit 503bfd5c179b the CMake _IMPORT_PREFIX has been
changed to relative paths.  This breaks the paths reflected
by the auto-generated pkgconfig file, as pkgconfig expects
those paths to be absolute.

Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-09-01 08:42:38 -07:00
Matthew Krupcale
313b3d0380 pc: use absolute lib directory
INSTALL_LIB_DIR is set to CMAKE_INSTALL_LIB_DIR, and while CMAKE_INSTALL_PREFIX
is prepended during install [1], this is not the case for the pkg-config
file. Thus, use the full absolute path CMAKE_INSTALL_FULL_LIBDIR for generating
the pkg-config file lib directory variables.

[1] https://gitlab.kitware.com/cmake/cmake/-/issues/20250
2021-08-31 13:08:44 -07:00
Nathan Moinvaziri
b671db3f58 Added MZ_PROJECT_SUFFIX option to cmake. #452
Changed library prefix on Windows to lib so VS debugger doesn't conflict with minizip.exe.
Removed _cmd suffix from the minigzip and minizip targets. #451
2020-02-16 11:12:29 -08:00
Tony Theodore
b5ac94fd24
Use Requires: zlib to fix pkg-config ordering of static libs 2018-03-13 20:14:45 +11:00
Nathan Moinvaziri
99fe057281 Fixed headers not showing up in generated projects.
Implement pkgconfig correctly. #185
2017-10-15 22:46:52 -07:00