kopia lustrzana https://github.com/pimoroni/pimoroni-pico
				
				
				
			
		
			
				
	
	
		
			56 wiersze
		
	
	
		
			1.3 KiB
		
	
	
	
		
			CMake
		
	
	
			
		
		
	
	
			56 wiersze
		
	
	
		
			1.3 KiB
		
	
	
	
		
			CMake
		
	
	
| include_directories(${CMAKE_CURRENT_LIST_DIR}/../../)
 | |
| 
 | |
| list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
 | |
| list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../")
 | |
| list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../../")
 | |
| 
 | |
| set(CMAKE_C_STANDARD 11)
 | |
| set(CMAKE_CXX_STANDARD 17)
 | |
| 
 | |
| # Essential
 | |
| include(pimoroni_i2c/micropython)
 | |
| include(pimoroni_bus/micropython)
 | |
| 
 | |
| # Pico Graphics Essential
 | |
| include(hershey_fonts/micropython)
 | |
| include(bitmap_fonts/micropython)
 | |
| include(picographics/micropython)
 | |
| 
 | |
| # Pico Graphics Extra
 | |
| include(jpegdec/micropython)
 | |
| include(qrcode/micropython/micropython)
 | |
| 
 | |
| # Sensors & Breakouts
 | |
| include(micropython-common-breakouts)
 | |
| include(pcf85063a/micropython)
 | |
| 
 | |
| # Utility
 | |
| include(adcfft/micropython)
 | |
| include(wakeup/micropython)
 | |
| 
 | |
| # Configure wakeup for Enviro
 | |
| target_compile_definitions(usermod_wakeup INTERFACE
 | |
|     -DWAKEUP_HAS_RTC=1
 | |
|     -DWAKEUP_PIN_MASK=0b01000100
 | |
|     -DWAKEUP_PIN_DIR=0b01000100
 | |
|     -DWAKEUP_PIN_VALUE=0b01000100
 | |
| )
 | |
| 
 | |
| # LEDs & Matrices
 | |
| include(plasma/micropython)
 | |
| 
 | |
| # Servos & Motors
 | |
| include(pwm/micropython)
 | |
| include(servo/micropython)
 | |
| include(encoder/micropython)
 | |
| include(motor/micropython)
 | |
| 
 | |
| # include(micropython-common)
 | |
| 
 | |
| include(modules_py/modules_py)
 | |
| 
 | |
| # C++ Magic Memory
 | |
| include(cppmem/micropython)
 | |
| 
 | |
| # Disable build-busting C++ exceptions
 | |
| include(micropython-disable-exceptions) |