-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
41 lines (32 loc) · 942 Bytes
/
CMakeLists.txt
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
40
41
cmake_minimum_required(VERSION 3.12)
# initialize the SDK based on PICO_SDK_PATH
# note: this must happen before project()
include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)
project(hello C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
add_executable(thermocam
main.cpp
MLX90640_PICO_I2C_Driver.cpp
./mlx90640-library/functions/MLX90640_API.c
SSD1351_PICO_SPI_Driver.cpp
SSD1351_API.cpp
)
target_include_directories(thermocam PUBLIC
./mlx90640-library/headers
)
# Add pico_stdlib library which aggregates commonly used features
target_link_libraries(thermocam
pico_stdlib
hardware_i2c
hardware_spi
hardware_gpio
pico_multicore
)
# initialize the Raspberry Pi Pico SDK
pico_sdk_init()
# Enable USB, UART output
pico_enable_stdio_usb(thermocam 0)
pico_enable_stdio_uart(thermocam 1)
# create map/bin/hex/uf2 file in addition to ELF.
pico_add_extra_outputs(thermocam)