CMakeLists.txt 441 B

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