mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	* Added `serializeJson()` and `serializeJsonPretty()` * Added `measureJson()` and `measureJsonPretty()` * Removed `printTo()` and `prettyPrintTo()` * Removed `measureLength()` and `measurePrettyLength()`
		
			
				
	
	
		
			78 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			78 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			CMake
		
	
	
	
	
	
| # ArduinoJson - arduinojson.org
 | |
| # Copyright Benoit Blanchon 2014-2018
 | |
| # MIT License
 | |
| 
 | |
| if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
 | |
| 	add_compile_options(
 | |
| 		-pedantic
 | |
| 		-Wall
 | |
| 		-Wcast-align
 | |
| 		-Wcast-qual
 | |
| 		-Wconversion
 | |
| 		-Wctor-dtor-privacy
 | |
| 		-Wdisabled-optimization
 | |
| 		-Werror
 | |
| 		-Wextra
 | |
| 		-Wformat=2
 | |
| 		-Winit-self
 | |
| 		-Wmissing-include-dirs
 | |
| 		-Wnon-virtual-dtor
 | |
| 		-Wold-style-cast
 | |
| 		-Woverloaded-virtual
 | |
| 		-Wparentheses
 | |
| 		-Wredundant-decls
 | |
| 		-Wshadow
 | |
| 		-Wsign-promo
 | |
| 		-Wstrict-aliasing
 | |
| 		-Wstrict-overflow=5
 | |
| 		-Wundef
 | |
| 	)
 | |
| 
 | |
| 	if(NOT MINGW)
 | |
| 		add_compile_options(
 | |
| 			-std=c++98
 | |
| 		)
 | |
| 	endif()
 | |
| endif()
 | |
| 
 | |
| if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
 | |
| 	add_compile_options(
 | |
| 		-Wstrict-null-sentinel
 | |
| 	)
 | |
| 
 | |
| 	if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.5)
 | |
| 		add_compile_options(-Wlogical-op) # the flag exists in 4.4 but is buggy
 | |
| 	endif()
 | |
| 
 | |
| 	if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.6)
 | |
| 		add_compile_options(-Wnoexcept)
 | |
| 	endif()
 | |
| endif()
 | |
| 
 | |
| if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
 | |
| 	add_compile_options(
 | |
| 		-Wc++11-compat
 | |
| 		-Wdeprecated-register
 | |
| 	)
 | |
| endif()
 | |
| 
 | |
| if(MSVC)
 | |
| 	add_definitions(-D_CRT_SECURE_NO_WARNINGS)
 | |
| 	add_compile_options(
 | |
| 		/W4 # Set warning level
 | |
| 		/WX # Treats all compiler warnings as errors.
 | |
| 	)
 | |
| endif()
 | |
| 
 | |
| add_subdirectory(DynamicJsonBuffer)
 | |
| add_subdirectory(IntegrationTests)
 | |
| add_subdirectory(JsonArray)
 | |
| add_subdirectory(JsonObject)
 | |
| add_subdirectory(JsonParser)
 | |
| add_subdirectory(JsonSerializer)
 | |
| add_subdirectory(JsonVariant)
 | |
| add_subdirectory(JsonWriter)
 | |
| add_subdirectory(Misc)
 | |
| add_subdirectory(Polyfills)
 | |
| add_subdirectory(StaticJsonBuffer)
 |