CMakeLists.txt 757 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # ArduinoJson - arduinojson.org
  2. # Copyright Benoit Blanchon 2014-2020
  3. # MIT License
  4. add_executable(MiscTests
  5. conflicts.cpp
  6. FloatParts.cpp
  7. Readers.cpp
  8. StringAdapters.cpp
  9. StringWriter.cpp
  10. TypeTraits.cpp
  11. unsigned_char.cpp
  12. Utf8.cpp
  13. version.cpp
  14. )
  15. target_link_libraries(MiscTests catch)
  16. set_target_properties(MiscTests PROPERTIES UNITY_BUILD OFF)
  17. add_test(Misc MiscTests)
  18. add_executable(Issue978
  19. Issue978.cpp
  20. )
  21. set_target_properties(Issue978
  22. PROPERTIES
  23. EXCLUDE_FROM_ALL TRUE
  24. EXCLUDE_FROM_DEFAULT_BUILD TRUE
  25. )
  26. add_test(
  27. NAME
  28. Issue978
  29. COMMAND
  30. ${CMAKE_COMMAND} --build . --target Issue978 --config $<CONFIGURATION>
  31. WORKING_DIRECTORY
  32. ${CMAKE_BINARY_DIR}
  33. )
  34. set_tests_properties(Issue978
  35. PROPERTIES
  36. WILL_FAIL TRUE)