diff options
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/Complex/CMakeLists.txt | 12 | ||||
-rw-r--r-- | Tests/ComplexOneConfig/CMakeLists.txt | 12 | ||||
-rw-r--r-- | Tests/ComplexRelativePaths/CMakeLists.txt | 12 |
3 files changed, 33 insertions, 3 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 # 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 # diff --git a/Tests/ComplexRelativePaths/CMakeLists.txt b/Tests/ComplexRelativePaths/CMakeLists.txt index 068b47e..4b05d07 100644 --- a/Tests/ComplexRelativePaths/CMakeLists.txt +++ b/Tests/ComplexRelativePaths/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 # |