aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMike Taves <mwtoews@gmail.com>2021-02-26 00:45:42 +1300
committerGitHub <noreply@github.com>2021-02-26 00:45:42 +1300
commit3d22f6f0a7f3919d7ed6ac4ebb09d233f5fc65c2 (patch)
tree2b6d5d873a85a297b206e60aa92ea80e46994118 /CMakeLists.txt
parent1a518773616fb001483c175e8dfab00c06e83c89 (diff)
downloadPROJ-3d22f6f0a7f3919d7ed6ac4ebb09d233f5fc65c2.tar.gz
PROJ-3d22f6f0a7f3919d7ed6ac4ebb09d233f5fc65c2.zip
CMake: add support for pkg-config (#2547)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
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()