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