CMakeLists.txt 368 B

123456789101112131415161718
  1. # ArduinoJson - arduinojson.org
  2. # Copyright Benoit Blanchon 2014-2019
  3. # MIT License
  4. add_library(catch
  5. catch.hpp
  6. catch.cpp
  7. )
  8. target_include_directories(catch
  9. PUBLIC
  10. ${CMAKE_CURRENT_SOURCE_DIR}
  11. )
  12. if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
  13. # prevent "xxx will change in GCC x.x" with arm-linux-gnueabihf-gcc
  14. target_compile_options(catch PRIVATE -Wno-psabi)
  15. endif()