CMakeLists.txt 562 B

1234567891011121314151617181920212223242526272829303132333435
  1. # ArduinoJson - https://arduinojson.org
  2. # Copyright © 2014-2025, Benoit BLANCHON
  3. # MIT License
  4. if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
  5. add_compile_options(
  6. -w
  7. )
  8. endif()
  9. if(MSVC)
  10. add_compile_options(
  11. /wd4996
  12. )
  13. endif()
  14. add_executable(DeprecatedTests
  15. add.cpp
  16. BasicJsonDocument.cpp
  17. containsKey.cpp
  18. createNestedArray.cpp
  19. createNestedObject.cpp
  20. DynamicJsonDocument.cpp
  21. macros.cpp
  22. memoryUsage.cpp
  23. shallowCopy.cpp
  24. StaticJsonDocument.cpp
  25. )
  26. add_test(Deprecated DeprecatedTests)
  27. set_tests_properties(Deprecated
  28. PROPERTIES
  29. LABELS "Catch"
  30. )