CMakeLists.txt 396 B

123456789101112131415161718192021
  1. # ArduinoJson - https://arduinojson.org
  2. # Copyright Benoit Blanchon 2014-2021
  3. # MIT License
  4. set(CMAKE_CXX_STANDARD 17)
  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(MINGW)
  15. # prevent "too many sections (32837)" with MinGW
  16. target_compile_options(catch PRIVATE -Wa,-mbig-obj)
  17. endif()