mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Added CMakeLists.txt
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -4,3 +4,4 @@ | |||||||
| Debug | Debug | ||||||
| ipch | ipch | ||||||
| *.opensdf | *.opensdf | ||||||
|  | /cmake | ||||||
|   | |||||||
							
								
								
									
										19
									
								
								CMakeLists.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								CMakeLists.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | |||||||
|  | cmake_minimum_required(VERSION 2.8.4) | ||||||
|  | project(ArduinoJson) | ||||||
|  |  | ||||||
|  | file(GLOB_RECURSE SRCS_FILES srcs/*.cpp) | ||||||
|  | file(GLOB TESTS_FILES tests/*.cpp) | ||||||
|  |  | ||||||
|  | add_library(ArduinoJson ${SRCS_FILES}) | ||||||
|  |  | ||||||
|  | include_directories( | ||||||
|  |     srcs | ||||||
|  |     third-party/gtest-1.7.0 | ||||||
|  |     third-party/gtest-1.7.0/include) | ||||||
|  |  | ||||||
|  | add_executable(ArduinoJsonTests  | ||||||
|  |     ${TESTS_FILES} | ||||||
|  |     third-party/gtest-1.7.0/src/gtest-all.cc | ||||||
|  |     third-party/gtest-1.7.0/src/gtest_main.cc) | ||||||
|  |  | ||||||
|  | target_link_libraries(ArduinoJsonTests ArduinoJson) | ||||||
		Reference in New Issue
	
	Block a user