pico-ice/Firmware/pico-ice-test-jig/CMakeLists.txt

29 lines
669 B
CMake

cmake_minimum_required(VERSION 3.13)
set(PICO_SDK_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../pico-sdk)
include(pico_sdk_import.cmake)
project(pico_ice_test_jig C CXX ASM)
pico_sdk_init()
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../pico-ice-sdk pico-ice-sdk)
add_executable(pico_ice_test_jig
src/main.c
src/usb_descriptors.c
)
target_link_libraries(pico_ice_test_jig
pico_ice_sdk
pico_ice_usb
pico_stdio_usb
tinyusb_device
)
target_include_directories(pico_ice_test_jig PUBLIC
${CMAKE_CURRENT_LIST_DIR}/include
)
pico_enable_stdio_usb(pico_ice_test_jig 1)
pico_add_extra_outputs(pico_ice_test_jig)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g")