Mercurial > ~darius > hgwebdir.cgi > modulator
view CMakeLists.txt @ 1:b9ec45077bff
Use MAKE_C_IDENTIFIER since it's available.
Add comment about where we got the magic from.
Add _end symbol.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Mon, 29 Mar 2021 13:54:55 +1030 |
parents | a55e39064a71 |
children | 0d653f60dec8 |
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)