pico-ice/Firmware/pico-ice-default/CMakeLists.txt
2023-09-01 12:33:19 +02:00

31 lines
814 B
CMake

cmake_minimum_required(VERSION 3.13)
# import the pico-sdk
set(PICO_SDK_PATH ${CMAKE_CURRENT_SOURCE_DIR}/pico-sdk/)
include(pico_sdk_import.cmake)
# configure the pico-sdk project
project(pico_ice_default C CXX ASM)
pico_sdk_init()
# add the pico-ice-sdk
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/pico-ice-sdk/)
add_compile_definitions(VERSION=\"${PICO_ICE_SDK_VERSION}\")
# add the local files
add_executable(${CMAKE_PROJECT_NAME}
main.c
usb_descriptors.c
)
target_link_libraries(${CMAKE_PROJECT_NAME}
pico_ice_sdk
pico_ice_usb
pico_stdio_usb
)
target_include_directories(${CMAKE_PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}
)
pico_add_extra_outputs(${CMAKE_PROJECT_NAME})
pico_enable_stdio_usb(${CMAKE_PROJECT_NAME} 0)
pico_enable_stdio_uart(${CMAKE_PROJECT_NAME} 0)