Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions keyboard/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@

add_library(keyboard keyboard.c)
add_library(keyboard INTERFACE)

target_sources(keyboard INTERFACE keyboard.c)

target_link_libraries(
keyboard PUBLIC
keyboard INTERFACE
pico_stdlib
pico_bootrom
)
Expand Down
6 changes: 4 additions & 2 deletions neopixel/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
add_library(neopixel neopixel.c)
add_library(neopixel INTERFACE)

target_sources(neopixel INTERFACE neopixel.c)

target_link_libraries(
neopixel PUBLIC
neopixel INTERFACE
pico_stdlib
hardware_pio
)
Expand Down
6 changes: 4 additions & 2 deletions oled/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@

add_library(oled oled.cpp)
add_library(oled INTERFACE)

target_sources(oled INTERFACE oled.cpp)

add_subdirectory(pico-ssd1306)

target_link_libraries(
oled PUBLIC
oled INTERFACE
pico_stdlib
hardware_i2c
pico_ssd1306
Expand Down
8 changes: 4 additions & 4 deletions usb/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
add_library(usb)
add_library(usb INTERFACE)

target_sources(usb PUBLIC
target_sources(usb INTERFACE
${CMAKE_CURRENT_LIST_DIR}/usb.c
${CMAKE_CURRENT_LIST_DIR}/usb_descriptors.c
)

target_link_libraries(
usb PUBLIC
usb INTERFACE
pico_stdlib
tinyusb_board
tinyusb_device
)

target_include_directories(usb PUBLIC
target_include_directories(usb INTERFACE
${CMAKE_CURRENT_LIST_DIR})