summaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2025-06-07 11:23:11 +0200
committerJussi Pakkanen <jussi.pakkanen@mailbox.org>2025-06-08 23:51:31 +0300
commitf3c29ecbab2fa9fd05f38a99b0d7ade68673be72 (patch)
treec2a3a8d66bae49d16e464441a70c9b50fc117ad6 /test cases
parentc8432df30edea96557db871d67c731537654afbf (diff)
downloadmeson-f3c29ecbab2fa9fd05f38a99b0d7ade68673be72.tar.gz
add unittest for cmake preprocessing
it uses the existing 14 configure file test case to configure config 7 and 10 with cmake and meson and then compares the relevant output to see if they are equal
Diffstat (limited to 'test cases')
-rw-r--r--test cases/common/14 configure file/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/test cases/common/14 configure file/CMakeLists.txt b/test cases/common/14 configure file/CMakeLists.txt
new file mode 100644
index 000000000..6a894b0f8
--- /dev/null
+++ b/test cases/common/14 configure file/CMakeLists.txt
@@ -0,0 +1,10 @@
+cmake_minimum_required(VERSION 3.12)
+
+project("configure file test" LANGUAGES C)
+
+set("var1" "foo")
+set("var2" "bar")
+configure_file("config7.h.in" "config7.h")
+
+set("var" "foo")
+configure_file("config10.h.in" "config10.h")