mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-11-02 15:41:37 +01:00
Because a slot id is smaller than a pointer, this change will ultimately allow reducing the slot size.
28 lines
537 B
CMake
28 lines
537 B
CMake
# ArduinoJson - https://arduinojson.org
|
|
# Copyright © 2014-2025, Benoit BLANCHON
|
|
# MIT License
|
|
|
|
add_executable(ResourceManagerTests
|
|
allocVariant.cpp
|
|
clear.cpp
|
|
saveStaticString.cpp
|
|
saveString.cpp
|
|
shrinkToFit.cpp
|
|
size.cpp
|
|
StringBuffer.cpp
|
|
StringBuilder.cpp
|
|
swap.cpp
|
|
)
|
|
|
|
add_compile_definitions(ResourceManagerTests
|
|
ARDUINOJSON_SLOT_ID_SIZE=1 # require less RAM for overflow tests
|
|
ARDUINOJSON_POOL_CAPACITY=16
|
|
)
|
|
|
|
add_test(ResourceManager ResourceManagerTests)
|
|
|
|
set_tests_properties(ResourceManager
|
|
PROPERTIES
|
|
LABELS "Catch"
|
|
)
|