CMakeLists.txt 686 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # ArduinoJson - arduinojson.org
  2. # Copyright Benoit Blanchon 2014-2019
  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. version.cpp
  13. )
  14. target_link_libraries(MiscTests catch)
  15. add_test(Misc MiscTests)
  16. add_executable(Issue978
  17. Issue978.cpp
  18. )
  19. set_target_properties(Issue978
  20. PROPERTIES
  21. EXCLUDE_FROM_ALL TRUE
  22. EXCLUDE_FROM_DEFAULT_BUILD TRUE
  23. )
  24. add_test(
  25. NAME
  26. Issue978
  27. COMMAND
  28. ${CMAKE_COMMAND} --build . --target Issue978 --config $<CONFIGURATION>
  29. WORKING_DIRECTORY
  30. ${CMAKE_BINARY_DIR}
  31. )
  32. set_tests_properties(Issue978
  33. PROPERTIES
  34. WILL_FAIL TRUE)