diff options
| author | Louis Burda <quent.burda@gmail.com> | 2022-11-20 01:35:41 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2022-11-20 01:35:53 +0100 |
| commit | 5c2cb697aa8d03eed27b45f8dc67957c45a3d722 (patch) | |
| tree | 056e08b0e4d4aa0d6f65f84043beb151d6c6245f /CMakeLists.txt | |
| parent | 12a423434352af137bda357001ac824aa23fdf77 (diff) | |
| download | sxkbd-5c2cb697aa8d03eed27b45f8dc67957c45a3d722.tar.gz sxkbd-5c2cb697aa8d03eed27b45f8dc67957c45a3d722.zip | |
Onboard neopixel led support
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 774f8ed..a6c910f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,26 +2,31 @@ cmake_minimum_required(VERSION 3.5) include(${CMAKE_CURRENT_SOURCE_DIR}/lib/tinyusb/hw/bsp/family_support.cmake) -# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>) family_get_project_name(PROJECT ${CMAKE_CURRENT_LIST_DIR}) project(${PROJECT}) -# Checks this example is valid for the family and initializes the project family_initialize_project(${PROJECT} ${CMAKE_CURRENT_LIST_DIR}) add_executable(${PROJECT}) -# Example source target_sources(${PROJECT} PUBLIC - ${CMAKE_CURRENT_SOURCE_DIR}/src/main.c - ${CMAKE_CURRENT_SOURCE_DIR}/src/usb_descriptors.c - ) + ${CMAKE_CURRENT_SOURCE_DIR}/src/main.c + ${CMAKE_CURRENT_SOURCE_DIR}/src/neopix.c + ${CMAKE_CURRENT_SOURCE_DIR}/src/usb_descriptors.c +) -# Example include target_include_directories(${PROJECT} PUBLIC - ${CMAKE_CURRENT_SOURCE_DIR}/src - ) + ${CMAKE_CURRENT_SOURCE_DIR}/src + ${PICO_SDK_PATH}/src/rp2_common/hardware_gpio/include + ${PICO_SDK_PATH}/src/rp2_common/hardware_pio/include +) + +target_link_libraries(${PROJECT} PRIVATE + pico_stdlib + hardware_pio + hardware_gpio +) # Configure compilation flags and libraries for the example... see the corresponding function # in hw/bsp/FAMILY/family.cmake for details. |
