Mercurial > ~darius > hgwebdir.cgi > modulator
comparison CMakeLists.txt @ 0:a55e39064a71
First commit of code that compiles.
Does nothing like it should but has cmake goo to wrap dat files
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Mon, 29 Mar 2021 13:48:34 +1030 |
parents | |
children | 0d653f60dec8 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a55e39064a71 |
---|---|
1 cmake_minimum_required(VERSION 3.12) | |
2 | |
3 # Change your executable name to something creative! | |
4 set(NAME modulator) | |
5 | |
6 include(pico_sdk_import.cmake) | |
7 include(local.cmake) | |
8 | |
9 # Gooey boilerplate | |
10 project(${NAME} C CXX ASM) | |
11 set(CMAKE_C_STANDARD 11) | |
12 set(CMAKE_CXX_STANDARD 17) | |
13 | |
14 # Initialize the SDK | |
15 pico_sdk_init() | |
16 | |
17 add_executable(${NAME} | |
18 modulator.c | |
19 ) | |
20 | |
21 pico_generate_pio_header(${NAME} ${CMAKE_CURRENT_LIST_DIR}/dac.pio) | |
22 | |
23 target_link_libraries(${NAME} | |
24 pico_stdlib | |
25 hardware_pio | |
26 ) | |
27 | |
28 bin2elf(${NAME} shaped-trap.dat) | |
29 bin2elf(${NAME} sgauss.dat) | |
30 | |
31 # create map/bin/hex file etc. | |
32 pico_add_extra_outputs(${NAME}) | |
33 | |
34 # Set up files for the release packages | |
35 install(FILES | |
36 ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.uf2 | |
37 DESTINATION . | |
38 ) | |
39 | |
40 set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF) | |
41 set(CPACK_GENERATOR "ZIP" "TGZ") | |
42 include(CPack) |