-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
39 lines (29 loc) · 781 Bytes
/
CMakeLists.txt
File metadata and controls
39 lines (29 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.13)
file(REMOVE_RECURSE
${CMAKE_BINARY_DIR}/pullsensor.uf2
${CMAKE_BINARY_DIR}/pullsensor.elf.map
${CMAKE_BINARY_DIR}/pullsensor.elf
${CMAKE_BINARY_DIR}/pullsensor.hex
${CMAKE_BINARY_DIR}/pullsensor.bin
${CMAKE_BINARY_DIR}/pullsensor.dis
)
include(../pico-sdk/external/pico_sdk_import.cmake)
project(pullsensor C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2")
pico_sdk_init()
add_executable(pullsensor
main.c
bmp280.c
)
target_link_libraries(pullsensor
pico_stdlib
hardware_i2c
hardware_pwm
hardware_uart
hardware_gpio
)
pico_enable_stdio_usb(pullsensor 1)
pico_enable_stdio_uart(pullsensor 1)
pico_add_extra_outputs(pullsensor)