-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
41 lines (31 loc) · 853 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.13)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# initialize the SDK based on PICO_SDK_PATH
# note: this must happen before project()
include(pico_sdk_import.cmake)
project(geiger_gen2)
# initialize the Raspberry Pi Pico SDK
pico_sdk_init()
# project
add_executable(
geiger_gen2
geiger_gen2.cpp
)
target_include_directories(
geiger_gen2 PRIVATE
${CMAKE_CURRENT_LIST_DIR}
${CMAKE_CURRENT_LIST_DIR}/..
)
# Add pico_stdlib library which aggregates commonly used features
target_link_libraries(
geiger_gen2
pico_multicore
pico_stdlib
pico_cyw43_arch_lwip_threadsafe_background
hardware_adc
)
pico_enable_stdio_usb(geiger_gen2 1)
pico_enable_stdio_uart(geiger_gen2 0)
# create map/bin/hex/uf2 file in addition to ELF.
pico_add_extra_outputs(geiger_gen2)