HEX.cmake.in 881 B

1234567891011121314151617181920
  1. cmake_minimum_required(VERSION 4.2...4.3)
  2. include ("${RunCMake_SOURCE_DIR}/check_errors.cmake")
  3. unset (errors)
  4. string(HEX "The quick brown fox jumps over the lazy dog." reference)
  5. set(output "$<STRING:HEX,The quick brown fox jumps over the lazy dog.>")
  6. if (NOT output STREQUAL reference)
  7. list (APPEND errors "<STRING:HEX,The quick brown fox jumps over the lazy dog.> returns bad data: ${output}")
  8. endif()
  9. string(HEX "Ash nazg durbatulûk. Ash nazg gimbatul. Ash nazg thrakatulûk. Agh burzum-ishi krimpatul" reference)
  10. set(output "$<STRING:HEX,Ash nazg durbatulûk. Ash nazg gimbatul. Ash nazg thrakatulûk. Agh burzum-ishi krimpatul>")
  11. if (NOT output STREQUAL reference)
  12. list (APPEND errors "<STRING:HEX,Ash nazg durbatulûk. Ash nazg gimbatul. Ash nazg thrakatulûk. Agh burzum-ishi krimpatul> returns bad data: ${output}")
  13. endif()
  14. check_errors("STRING:HEX" ${errors})