2022-07-25 10:24:00 +00:00
|
|
|
add_library(galactic_unicorn INTERFACE)
|
2022-06-29 07:54:30 +00:00
|
|
|
|
2022-07-25 10:24:00 +00:00
|
|
|
pico_generate_pio_header(galactic_unicorn ${CMAKE_CURRENT_LIST_DIR}/galactic_unicorn.pio)
|
|
|
|
pico_generate_pio_header(galactic_unicorn ${CMAKE_CURRENT_LIST_DIR}/audio_i2s.pio)
|
2022-06-29 07:54:30 +00:00
|
|
|
|
2022-07-25 10:24:00 +00:00
|
|
|
|
|
|
|
target_sources(galactic_unicorn INTERFACE
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/galactic_unicorn.cpp
|
2022-06-29 07:54:30 +00:00
|
|
|
)
|
|
|
|
|
2022-07-25 10:24:00 +00:00
|
|
|
target_include_directories(galactic_unicorn INTERFACE ${CMAKE_CURRENT_LIST_DIR})
|
2022-06-29 07:54:30 +00:00
|
|
|
|
|
|
|
# Pull in pico libraries that we need
|
2022-07-25 10:24:00 +00:00
|
|
|
target_link_libraries(galactic_unicorn INTERFACE pico_stdlib pico_graphics hardware_adc hardware_pio hardware_dma)
|