rpi-pico-blink-examples/rust-with-c/libblink/CMakeLists.txt

22 lines
353 B
CMake
Raw Normal View History

2024-02-08 21:08:36 -05:00
cmake_minimum_required(VERSION 3.12)
# Pull in SDK (must be before project)
include(pico_sdk_import.cmake)
project(pico_examples C CXX ASM)
set(CMAKE_C_STANDARD 17)
set(CMAKE_CXX_STANDARD 17)
# Initialize the SDK
pico_sdk_init()
add_library(blink STATIC blink.c)
target_link_libraries(
blink
pico_stdlib
)
install(TARGETS blink DESTINATION .)