CMakeLists.txt 918 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # ArduinoJson - https://arduinojson.org
  2. # Copyright © 2014-2025, Benoit BLANCHON
  3. # MIT License
  4. add_executable(MiscTests
  5. arithmeticCompare.cpp
  6. conflicts.cpp
  7. issue1967.cpp
  8. issue2129.cpp
  9. issue2166.cpp
  10. JsonString.cpp
  11. NoArduinoHeader.cpp
  12. printable.cpp
  13. Readers.cpp
  14. StringAdapters.cpp
  15. StringWriter.cpp
  16. TypeTraits.cpp
  17. unsigned_char.cpp
  18. Utf16.cpp
  19. Utf8.cpp
  20. version.cpp
  21. )
  22. set_target_properties(MiscTests PROPERTIES UNITY_BUILD OFF)
  23. add_test(Misc MiscTests)
  24. set_tests_properties(Misc
  25. PROPERTIES
  26. LABELS "Catch"
  27. )
  28. add_executable(Issue2181
  29. issue2181.cpp # Cannot be linked with other tests
  30. )
  31. set_target_properties(Issue2181 PROPERTIES UNITY_BUILD OFF)
  32. add_test(Issue2181 Issue2181)
  33. set_tests_properties(Issue2181
  34. PROPERTIES
  35. LABELS "Catch"
  36. )
  37. if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  38. target_compile_options(Issue2181
  39. PRIVATE
  40. -Wno-keyword-macro # keyword is hidden by macro definition
  41. )
  42. endif()