migrate to cmake based IDF
This commit is contained in:
		
							parent
							
								
									d26e21502e
								
							
						
					
					
						commit
						befbd369cf
					
				
					 2 changed files with 23 additions and 0 deletions
				
			
		
							
								
								
									
										13
									
								
								CMakeLists.txt
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								CMakeLists.txt
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | ||||||
|  | # The following lines of boilerplate have to be in your project's CMakeLists | ||||||
|  | # in this exact order for cmake to work correctly | ||||||
|  | cmake_minimum_required(VERSION 3.5) | ||||||
|  | 
 | ||||||
|  | include($ENV{IDF_PATH}/tools/cmake/project.cmake) | ||||||
|  | 
 | ||||||
|  | add_compile_options(-fdiagnostics-color=always) | ||||||
|  | 
 | ||||||
|  | project(dustbutt) | ||||||
|  | 
 | ||||||
|  | target_add_binary_data(dustbutt.elf "main/certs/priv.pem" TEXT) | ||||||
|  | target_add_binary_data(dustbutt.elf "main/certs/pub.pem" TEXT) | ||||||
|  | target_add_binary_data(dustbutt.elf "main/certs/certs.pem" TEXT) | ||||||
							
								
								
									
										10
									
								
								main/CMakeLists.txt
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								main/CMakeLists.txt
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,10 @@ | ||||||
|  | set(COMPONENT_SRCS "\ | ||||||
|  |   main.c\ | ||||||
|  | ") | ||||||
|  | 
 | ||||||
|  | set(COMPONENT_ADD_INCLUDEDIRS "\ | ||||||
|  |   .\ | ||||||
|  |   ../include\ | ||||||
|  | ") | ||||||
|  | 
 | ||||||
|  | register_component() | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue