blob: 572df7ecc5c09ca578f1d74356ff444452d5e3e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
cmake_minimum_required(VERSION 3.12)
include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)
project(keypad_example C CXX ASM)
pico_sdk_init()
add_library(keypad ../src/keypad.cpp ../src/keypad.hpp)
add_executable(keypad_example keypad_example.cpp)
target_include_directories(keypad_example PUBLIC ../src)
# Serial output.
pico_add_extra_outputs(keypad_example)
target_link_libraries(keypad pico_stdlib hardware_gpio)
target_link_libraries(keypad_example keypad hardware_timer)
add_compile_options(-O0)
|