Mercurial > ~darius > hgwebdir.cgi > modulator
view CMakeLists.txt @ 2:0d653f60dec8
Actually get data moving out.
Previous shape info caused a hard fault.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Mon, 29 Mar 2021 17:39:00 +1030 |
parents | a55e39064a71 |
children | b10097c3383d |
line wrap: on
line source
cmake_minimum_required(VERSION 3.12) # Change your executable name to something creative! set(NAME modulator) include(pico_sdk_import.cmake) include(local.cmake) # Gooey boilerplate project(${NAME} C CXX ASM) set(CMAKE_C_STANDARD 11) set(CMAKE_CXX_STANDARD 17) # Initialize the SDK pico_sdk_init() add_executable(${NAME} modulator.c ) pico_generate_pio_header(${NAME} ${CMAKE_CURRENT_LIST_DIR}/dac.pio) target_link_libraries(${NAME} pico_stdlib hardware_pio ) #bin2elf(${NAME} shaped-trap.dat) #bin2elf(${NAME} sgauss.dat) # create map/bin/hex file etc. pico_add_extra_outputs(${NAME}) # Set up files for the release packages install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.uf2 DESTINATION . ) set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF) set(CPACK_GENERATOR "ZIP" "TGZ") include(CPack)