CMakeLists.txt 497 B

12345678910111213141516171819202122232425
  1. # ArduinoJson - https://arduinojson.org
  2. # Copyright © 2014-2024, Benoit BLANCHON
  3. # MIT License
  4. add_executable(ResourceManagerTests
  5. allocVariant.cpp
  6. clear.cpp
  7. saveString.cpp
  8. shrinkToFit.cpp
  9. size.cpp
  10. StringBuilder.cpp
  11. swap.cpp
  12. )
  13. add_compile_definitions(ResourceManagerTests
  14. ARDUINOJSON_SLOT_ID_SIZE=1 # require less RAM for overflow tests
  15. ARDUINOJSON_POOL_CAPACITY=16
  16. )
  17. add_test(ResourceManager ResourceManagerTests)
  18. set_tests_properties(ResourceManager
  19. PROPERTIES
  20. LABELS "Catch"
  21. )