summaryrefslogtreecommitdiffstats
path: root/Tests/Complex/VarTests.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Complex/VarTests.txt')
-rw-r--r--Tests/Complex/VarTests.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/Complex/VarTests.txt b/Tests/Complex/VarTests.txt
new file mode 100644
index 0000000..0ff9953
--- /dev/null
+++ b/Tests/Complex/VarTests.txt
@@ -0,0 +1,11 @@
+
+SET (ZERO_VAR 0)
+IF(ZERO_VAR)
+ADD_DEFINITIONS(-DSHOULD_NOT_BE_DEFINED)
+ELSE(ZERO_VAR)
+ADD_DEFINITIONS(-DSHOULD_BE_DEFINED)
+ENDIF(ZERO_VAR)
+
+SET(ONE_VAR 1)
+
+SET(STRING_VAR "CMake is great" CACHE STRING "test a cache variable")