diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-08-13 19:47:19 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-08-13 19:47:19 (GMT) |
commit | d38b48fcae83de52819ce6ed98355485f858a9f0 (patch) | |
tree | db90b383f67f8dde9a6649a35349caf1f560c3de /Tests/ComplexOneConfig | |
parent | 216c985f7213d784bcff15797badceff659a35d3 (diff) | |
download | CMake-d38b48fcae83de52819ce6ed98355485f858a9f0.zip CMake-d38b48fcae83de52819ce6ed98355485f858a9f0.tar.gz CMake-d38b48fcae83de52819ce6ed98355485f858a9f0.tar.bz2 |
added macro test
Diffstat (limited to 'Tests/ComplexOneConfig')
-rw-r--r-- | Tests/ComplexOneConfig/CMakeLists.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Tests/ComplexOneConfig/CMakeLists.txt b/Tests/ComplexOneConfig/CMakeLists.txt index 068b47e..4b05d07 100644 --- a/Tests/ComplexOneConfig/CMakeLists.txt +++ b/Tests/ComplexOneConfig/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 # |