summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeCommands/target_compile_definitions/consumer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CMakeCommands/target_compile_definitions/consumer.cpp')
-rw-r--r--Tests/CMakeCommands/target_compile_definitions/consumer.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/Tests/CMakeCommands/target_compile_definitions/consumer.cpp b/Tests/CMakeCommands/target_compile_definitions/consumer.cpp
new file mode 100644
index 0000000..e3788dd
--- /dev/null
+++ b/Tests/CMakeCommands/target_compile_definitions/consumer.cpp
@@ -0,0 +1,18 @@
+
+#ifdef MY_PRIVATE_DEFINE
+#error Unexpected MY_PRIVATE_DEFINE
+#endif
+
+#ifndef MY_PUBLIC_DEFINE
+#error Expected MY_PUBLIC_DEFINE
+#endif
+
+#ifndef MY_INTERFACE_DEFINE
+#error Expected MY_INTERFACE_DEFINE
+#endif
+
+#ifndef MY_IMPORTEDINTERFACE_DEFINE
+#error Expected MY_IMPORTEDINTERFACE_DEFINE
+#endif
+
+int main() { return 0; }