From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- .../subprojects/cmMod/include/cmMod.hpp | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 meson/test cases/cmake/10 header only/subprojects/cmMod/include/cmMod.hpp (limited to 'meson/test cases/cmake/10 header only/subprojects/cmMod/include/cmMod.hpp') diff --git a/meson/test cases/cmake/10 header only/subprojects/cmMod/include/cmMod.hpp b/meson/test cases/cmake/10 header only/subprojects/cmMod/include/cmMod.hpp new file mode 100644 index 000000000..fe0104013 --- /dev/null +++ b/meson/test cases/cmake/10 header only/subprojects/cmMod/include/cmMod.hpp @@ -0,0 +1,24 @@ +#pragma once + +#include + +#ifndef CMAKE_FLAG_MUST_BE_PRESENT +#error "The flag CMAKE_FLAG_MUST_BE_PRESENT was not set" +#endif + +#define xstr(s) str(s) +#define str(s) #s + +class cmModClass { + private: + std::string str; + public: + cmModClass(std::string foo) { + str = foo + " World "; + str += CMAKE_COMPILER_DEFINE_STR; + str += ' '; + str += xstr(MESON_MAGIC_FLAG); + } + + inline std::string getStr() const { return str; } +}; -- cgit 1.2.3-korg