added macro test
This commit is contained in:
parent
216c985f72
commit
d38b48fcae
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue