2021-03-29 17:14:01 +02:00
|
|
|
# ArduinoJson - https://arduinojson.org
|
2021-01-25 09:14:15 +01:00
|
|
|
# Copyright Benoit Blanchon 2014-2021
|
2017-04-18 18:22:24 +02:00
|
|
|
# MIT License
|
|
|
|
|
2021-12-31 17:49:22 +01:00
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED OFF)
|
|
|
|
|
2017-04-18 18:22:24 +02:00
|
|
|
add_library(catch
|
|
|
|
catch.hpp
|
|
|
|
catch.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(catch
|
|
|
|
PUBLIC
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
2019-03-01 11:41:47 +01:00
|
|
|
|
|
|
|
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
|
|
|
# prevent "xxx will change in GCC x.x" with arm-linux-gnueabihf-gcc
|
|
|
|
target_compile_options(catch PRIVATE -Wno-psabi)
|
|
|
|
endif()
|