diff options
| author | Mike Taves <mwtoews@gmail.com> | 2021-02-26 00:45:42 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-26 00:45:42 +1300 |
| commit | 3d22f6f0a7f3919d7ed6ac4ebb09d233f5fc65c2 (patch) | |
| tree | 2b6d5d873a85a297b206e60aa92ea80e46994118 /CMakeLists.txt | |
| parent | 1a518773616fb001483c175e8dfab00c06e83c89 (diff) | |
| download | PROJ-3d22f6f0a7f3919d7ed6ac4ebb09d233f5fc65c2.tar.gz PROJ-3d22f6f0a7f3919d7ed6ac4ebb09d233f5fc65c2.zip | |
CMake: add support for pkg-config (#2547)
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7658aa8b..1f9cfafc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -282,3 +282,14 @@ endif() set(docfiles COPYING NEWS AUTHORS) install(FILES ${docfiles} DESTINATION "${DOCDIR}") + +################################################################################ +# pkg-config support +################################################################################ +if(UNIX OR MINGW) + configure_proj_pc() + + install(FILES + ${CMAKE_CURRENT_BINARY_DIR}/proj.pc + DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) +endif() |
