comparison CMakeLists.txt @ 5:2db42eaba3c8

WIP
author Daniel O'Connor <darius@dons.net.au>
date Sat, 15 Feb 2025 22:57:18 +1030
parents b10097c3383d
children 3acdebd7eec7
comparison
equal deleted inserted replaced
4:b6416c4aadc8 5:2db42eaba3c8
14 # Initialize the SDK 14 # Initialize the SDK
15 pico_sdk_init() 15 pico_sdk_init()
16 16
17 add_executable(${NAME} 17 add_executable(${NAME}
18 modulator.c 18 modulator.c
19 ) 19 q/q.c
20 )
21
22 # Bring the pain
23 set_source_files_properties(modulator.c PROPERTIES COMPILE_OPTIONS -Wall -Wextra -Werror)
24 set_source_files_properties(q/q.c PROPERTIES COMPILE_OPTIONS -DQVERSION=0x902)
25 # XXX: this didn't work - everything got the flags
26 #target_compile_options(${NAME} PRIVATE -Wall -Wextra -Werror)
20 27
21 pico_generate_pio_header(${NAME} ${CMAKE_CURRENT_LIST_DIR}/dac.pio) 28 pico_generate_pio_header(${NAME} ${CMAKE_CURRENT_LIST_DIR}/dac.pio)
22 29
23 target_link_libraries(${NAME} 30 target_link_libraries(${NAME}
24 pico_stdlib 31 pico_stdlib
32 hardware_clocks
25 hardware_dma 33 hardware_dma
34 hardware_interp
26 hardware_irq 35 hardware_irq
27 hardware_pio 36 hardware_pio
37 hardware_pwm
28 ) 38 )
29 39
30 #bin2elf(${NAME} shaped-trap.dat) 40 #bin2elf(${NAME} shaped-trap.dat)
31 #bin2elf(${NAME} sgauss.dat) 41 #bin2elf(${NAME} sgauss.dat)
32 42