[gspell/wip/cmake] cmake: generate pkg-config *.pc file from *.pc.in



commit 69b3187942a1cb6c2f37ec9dd7508a17eb8e1eaf
Author: Sébastien Wilmet <swilmet informatique-libre be>
Date:   Tue Aug 16 16:00:00 2022 +0200

    cmake: generate pkg-config *.pc file from *.pc.in

 CMakeLists.txt | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ca40194..6d1a7dd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,3 +17,10 @@ set (GETTEXT_PACKAGE "gspell-${GSPELL_API_VERSION}")
 configure_file (
   "${PROJECT_SOURCE_DIR}/config.h.in"
   "${PROJECT_BINARY_DIR}/config.h")
+
+configure_file (
+  "${PROJECT_SOURCE_DIR}/gspell.pc.in"
+  "${PROJECT_BINARY_DIR}/gspell-${GSPELL_API_VERSION}.pc"
+  @ONLY)
+install (FILES "${PROJECT_BINARY_DIR}/gspell-${GSPELL_API_VERSION}.pc"
+  DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]