[gspell/wip/cmake] cmake: generate config.h from config.h.in



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

    cmake: generate config.h from config.h.in

 CMakeLists.txt | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fb09c88..ca40194 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,3 +11,9 @@ pkg_check_modules (DEPS REQUIRED
   gtk+-3.0>=3.20
   enchant-2>=2.1.3
   icu-uc)
+
+set (GSPELL_API_VERSION 1)
+set (GETTEXT_PACKAGE "gspell-${GSPELL_API_VERSION}")
+configure_file (
+  "${PROJECT_SOURCE_DIR}/config.h.in"
+  "${PROJECT_BINARY_DIR}/config.h")


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