Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 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