mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-23 15:27:30 +02:00
27 lines
421 B
CMake
27 lines
421 B
CMake
![]() |
# ArduinoJson - https://arduinojson.org
|
||
|
# Copyright © 2014-2023, Benoit BLANCHON
|
||
|
# MIT License
|
||
|
|
||
|
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
|
||
|
add_compile_options(
|
||
|
-Wno-deprecated-declarations
|
||
|
)
|
||
|
endif()
|
||
|
|
||
|
if(MSVC)
|
||
|
add_compile_options(
|
||
|
/wd4996
|
||
|
)
|
||
|
endif()
|
||
|
|
||
|
add_executable(DeprecatedTests
|
||
|
StaticJsonDocument.cpp
|
||
|
)
|
||
|
|
||
|
add_test(Deprecated DeprecatedTests)
|
||
|
|
||
|
set_tests_properties(Deprecated
|
||
|
PROPERTIES
|
||
|
LABELS "Catch"
|
||
|
)
|