CMakeLists.txt 821 B

1234567891011121314151617181920212223242526272829303132
  1. # ArduinoJson - https://arduinojson.org
  2. # Copyright © 2014-2025, Benoit BLANCHON
  3. # MIT License
  4. macro(add_failing_build source_file)
  5. get_filename_component(target ${source_file} NAME_WE)
  6. add_executable(${target} ${source_file})
  7. set_target_properties(${target}
  8. PROPERTIES
  9. EXCLUDE_FROM_ALL TRUE
  10. EXCLUDE_FROM_DEFAULT_BUILD TRUE
  11. )
  12. add_test(
  13. NAME ${target}
  14. COMMAND ${CMAKE_COMMAND} --build . --target ${target} --config $<CONFIGURATION>
  15. WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
  16. )
  17. set_tests_properties(${target}
  18. PROPERTIES
  19. WILL_FAIL TRUE
  20. LABELS "WillFail"
  21. )
  22. endmacro()
  23. add_failing_build(Issue978.cpp)
  24. add_failing_build(read_long_long.cpp)
  25. add_failing_build(write_long_long.cpp)
  26. add_failing_build(variant_as_char.cpp)
  27. add_failing_build(assign_char.cpp)
  28. add_failing_build(deserialize_object.cpp)