diff options
Diffstat (limited to 'Tests/ComplexOneConfig/VarTests.cmake')
-rw-r--r-- | Tests/ComplexOneConfig/VarTests.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/ComplexOneConfig/VarTests.cmake b/Tests/ComplexOneConfig/VarTests.cmake index d9804a2..477fab9 100644 --- a/Tests/ComplexOneConfig/VarTests.cmake +++ b/Tests/ComplexOneConfig/VarTests.cmake @@ -97,6 +97,8 @@ ENDIF (EXISTS ${Complex_SOURCE_DIR}/roquefort.txt) SET (SNUM1_VAR "1") SET (SNUM2_VAR "2") +SET (SNUM3_VAR "1") + IF (SNUM1_VAR LESS SNUM2_VAR) ADD_DEFINITIONS(-DSHOULD_BE_DEFINED_LESS) @@ -116,6 +118,18 @@ ELSE (SNUM2_VAR GREATER SNUM1_VAR) ADD_DEFINITIONS(-DSHOULD_NOT_BE_DEFINED_GREATER) ENDIF (SNUM2_VAR GREATER SNUM1_VAR) +IF (SNUM2_VAR EQUAL SNUM1_VAR) + ADD_DEFINITIONS(-DSHOULD_NOT_BE_DEFINED_EQUAL) +ELSE (SNUM2_VAR EQUAL SNUM1_VAR) + ADD_DEFINITIONS(-DSHOULD_BE_DEFINED_EQUAL) +ENDIF (SNUM2_VAR EQUAL SNUM1_VAR) + +IF (SNUM3_VAR EQUAL SNUM1_VAR) + ADD_DEFINITIONS(-DSHOULD_BE_DEFINED_EQUAL) +ELSE (SNUM3_VAR EQUAL SNUM1_VAR) + ADD_DEFINITIONS(-DSHOULD_NOT_BE_DEFINED_EQUAL) +ENDIF (SNUM3_VAR EQUAL SNUM1_VAR) + IF (SNUM1_VAR GREATER SNUM2_VAR) ADD_DEFINITIONS(-DSHOULD_NOT_BE_DEFINED_GREATER2) ELSE (SNUM1_VAR GREATER SNUM2_VAR) |