2021-09-09T10:31:18
This commit is contained in:
22
02_hello_serial/CMakeLists.txt
Normal file
22
02_hello_serial/CMakeLists.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
|
||||
include(pico_sdk_import.cmake)
|
||||
|
||||
project(hello C CXX ASM)
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
pico_sdk_init()
|
||||
|
||||
add_executable(hello
|
||||
src/hello.c
|
||||
)
|
||||
|
||||
pico_set_program_name(ProjectName "Hello Serial")
|
||||
pico_set_program_version(ProjectName "0.1.0")
|
||||
|
||||
pico_enable_stdio_usb(hello 1) # 표준 출력을 USB로
|
||||
pico_enable_stdio_uart(hello 0) # 표준 출력을 UART로, 안함.
|
||||
|
||||
pico_add_extra_outputs(hello)
|
||||
|
||||
target_link_libraries(hello pico_stdlib)
|
||||
Reference in New Issue
Block a user