summaryrefslogtreecommitdiff
path: root/Tests/VSResource/test.rc
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/VSResource/test.rc')
-rw-r--r--Tests/VSResource/test.rc17
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/VSResource/test.rc b/Tests/VSResource/test.rc
new file mode 100644
index 0000000..4ce4b53
--- /dev/null
+++ b/Tests/VSResource/test.rc
@@ -0,0 +1,17 @@
+#ifdef CMAKE_RCDEFINE
+
+// This line can compile with either an unquoted or a quoted string
+1025 TEXTFILE CMAKE_RCDEFINE
+
+#ifndef CMAKE_RCDEFINE_NO_QUOTED_STRINGS
+// This block can only be compiled if CMAKE_RCDEFINE preprocesses
+// to a double quoted string
+STRINGTABLE
+BEGIN
+ 1026 CMAKE_RCDEFINE
+END
+#endif
+
+#else
+#error "resource compiler did not get defines from command line!"
+#endif