summaryrefslogtreecommitdiffstats
path: root/Tests/Complex
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-08-13 19:47:19 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-08-13 19:47:19 (GMT)
commitd38b48fcae83de52819ce6ed98355485f858a9f0 (patch)
treedb90b383f67f8dde9a6649a35349caf1f560c3de /Tests/Complex
parent216c985f7213d784bcff15797badceff659a35d3 (diff)
downloadCMake-d38b48fcae83de52819ce6ed98355485f858a9f0.zip
CMake-d38b48fcae83de52819ce6ed98355485f858a9f0.tar.gz
CMake-d38b48fcae83de52819ce6ed98355485f858a9f0.tar.bz2
added macro test
Diffstat (limited to 'Tests/Complex')
-rw-r--r--Tests/Complex/CMakeLists.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/Tests/Complex/CMakeLists.txt b/Tests/Complex/CMakeLists.txt
index 068b47e..4b05d07 100644
--- a/Tests/Complex/CMakeLists.txt
+++ b/Tests/Complex/CMakeLists.txt
@@ -3,8 +3,18 @@
#
PROJECT (Complex)
+#
+# Define a macro
+#
+MACRO(ASSERT value msg)
+ IF (NOT ${value})
+ MESSAGE ("Assertion failure:" ${msg} )
+ ENDIF (NOT ${value})
+ENDMACRO(ASSERT)
+
+# invoke the macro
+ASSERT(Complex_BINARY_DIR "The PROJECT command is broken")
-
#
# Use the ansi CXX compile flag for building cmake
#