forked from Wiznet/RP2040-HAT-MicroPython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
21 lines (17 loc) · 700 Bytes
/
CMakeLists.txt
File metadata and controls
21 lines (17 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#CMake minimum required version
cmake_minimum_required(VERSION 3.12)
set(PROJECT_NAME RP2040-HAT-MicroPython)
PROJECT(${PROJECT_NAME})
MESSAGE(ProJect Name : ${CMAKE_PROJECT_NAME})
# Pull in MicroPython (must be confirm before prokject begin)
if(NOT DEFINED MICROPYTHON)
set(MICROPYTHON_PATH ${CMAKE_SOURCE_DIR}/libraries)
message(STATUS "MICROPYTHON_PATH = ${MICROPYTHON_PATH}")
endif()
include(rp2_net_patch.cmake)
add_compile_options(
-Wall
-Wno-format # int != int32_t as far as the compiler is concerned because gcc has int32_t as long int
-Wno-unused-function # we have some for the docs that aren't called
-Wno-maybe-uninitialized
)