From f3c29ecbab2fa9fd05f38a99b0d7ade68673be72 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Sat, 7 Jun 2025 11:23:11 +0200 Subject: 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 --- test cases/common/14 configure file/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test cases/common/14 configure file/CMakeLists.txt (limited to 'test cases/common') 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") -- cgit v1.2.3