Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
19
Task/Integer-comparison/CMake/integer-comparison.cmake
Normal file
19
Task/Integer-comparison/CMake/integer-comparison.cmake
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Define A and B as integers. For example:
|
||||
# cmake -DA=3 -DB=5 -P compare.cmake
|
||||
|
||||
# The comparisons can take variable names, or they can take numbers.
|
||||
# So these act all the same:
|
||||
# A LESS B
|
||||
# ${A} LESS ${B}
|
||||
# A LESS ${B}
|
||||
# ${A} LESS B
|
||||
|
||||
if(A LESS B)
|
||||
message(STATUS "${A} is less than ${B}")
|
||||
endif()
|
||||
if(A EQUAL B)
|
||||
message(STATUS "${A} is equal to ${B}")
|
||||
endif()
|
||||
if(A GREATER B)
|
||||
message(STATUS "${A} is greater than ${B}")
|
||||
endif()
|
||||
Loading…
Add table
Add a link
Reference in a new issue