From 1983217af3d1848deb62f5333e4bf3efb326f57d Mon Sep 17 00:00:00 2001 From: matiasilva Date: Mon, 12 Jul 2021 09:27:25 +0100 Subject: [PATCH] Improve comments in CMakeLists.txt files --- blink/CMakeLists.txt | 2 +- clocks/detached_clk_peri/CMakeLists.txt | 4 ++-- clocks/hello_48MHz/CMakeLists.txt | 2 +- clocks/hello_gpout/CMakeLists.txt | 4 ++-- clocks/hello_resus/CMakeLists.txt | 4 ++-- divider/CMakeLists.txt | 4 ++-- gpio/hello_7segment/CMakeLists.txt | 4 ++-- gpio/hello_gpio_irq/CMakeLists.txt | 2 +- hello_world/serial/CMakeLists.txt | 2 +- hello_world/usb/CMakeLists.txt | 2 +- i2c/bus_scan/CMakeLists.txt | 2 +- i2c/lcd_1602_i2c/CMakeLists.txt | 2 +- i2c/mpu6050_i2c/CMakeLists.txt | 2 +- interp/hello_interp/CMakeLists.txt | 4 ++-- picoboard/blinky/CMakeLists.txt | 2 +- picoboard/button/CMakeLists.txt | 2 +- pwm/hello_pwm/CMakeLists.txt | 2 +- pwm/led_fade/CMakeLists.txt | 2 +- pwm/measure_duty_cycle/CMakeLists.txt | 2 +- reset/CMakeLists.txt | 4 ++-- reset/hello_reset/CMakeLists.txt | 4 ++-- rtc/hello_rtc/CMakeLists.txt | 2 +- rtc/rtc_alarm/CMakeLists.txt | 2 +- rtc/rtc_alarm_repeat/CMakeLists.txt | 2 +- spi/bme280_spi/CMakeLists.txt | 2 +- spi/mpu9250_spi/CMakeLists.txt | 2 +- spi/spi_flash/CMakeLists.txt | 2 +- system/narrow_io_write/CMakeLists.txt | 2 +- timer/hello_timer/CMakeLists.txt | 2 +- timer/periodic_sampler/CMakeLists.txt | 2 +- uart/hello_uart/CMakeLists.txt | 2 +- uart/uart_advanced/CMakeLists.txt | 2 +- 32 files changed, 40 insertions(+), 40 deletions(-) diff --git a/blink/CMakeLists.txt b/blink/CMakeLists.txt index 1bf1d2a..63ffbd3 100644 --- a/blink/CMakeLists.txt +++ b/blink/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(blink blink.c ) -# Pull in our pico_stdlib which pulls in commonly used features +# pull in common dependencies target_link_libraries(blink pico_stdlib) # create map/bin/hex file etc. diff --git a/clocks/detached_clk_peri/CMakeLists.txt b/clocks/detached_clk_peri/CMakeLists.txt index 009643e..d3dc75e 100644 --- a/clocks/detached_clk_peri/CMakeLists.txt +++ b/clocks/detached_clk_peri/CMakeLists.txt @@ -2,11 +2,11 @@ add_executable(clocks_detached_clk_peri detached_clk_peri.c ) -# Pull in our pico_stdlib which pulls in commonly used features +# pull in common dependencies target_link_libraries(clocks_detached_clk_peri pico_stdlib) # create map/bin/hex file etc. pico_add_extra_outputs(clocks_detached_clk_peri) # add url via pico_set_program_url -example_auto_set_url(clocks_detached_clk_peri) \ No newline at end of file +example_auto_set_url(clocks_detached_clk_peri) diff --git a/clocks/hello_48MHz/CMakeLists.txt b/clocks/hello_48MHz/CMakeLists.txt index 27290d7..cc08072 100644 --- a/clocks/hello_48MHz/CMakeLists.txt +++ b/clocks/hello_48MHz/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(hello_48MHz hello_48MHz.c ) -# Pull in our pico_stdlib which pulls in commonly used features +# pull in common dependencies target_link_libraries(hello_48MHz pico_stdlib hardware_clocks) # create map/bin/hex file etc. diff --git a/clocks/hello_gpout/CMakeLists.txt b/clocks/hello_gpout/CMakeLists.txt index bce0eac..057ec3c 100644 --- a/clocks/hello_gpout/CMakeLists.txt +++ b/clocks/hello_gpout/CMakeLists.txt @@ -2,11 +2,11 @@ add_executable(hello_gpout hello_gpout.c ) -# Pull in our pico_stdlib which pulls in commonly used features +# pull in common dependencies target_link_libraries(hello_gpout pico_stdlib) # create map/bin/hex file etc. pico_add_extra_outputs(hello_gpout) # add url via pico_set_program_url -example_auto_set_url(hello_gpout) \ No newline at end of file +example_auto_set_url(hello_gpout) diff --git a/clocks/hello_resus/CMakeLists.txt b/clocks/hello_resus/CMakeLists.txt index d7fc828..9d4522e 100644 --- a/clocks/hello_resus/CMakeLists.txt +++ b/clocks/hello_resus/CMakeLists.txt @@ -2,11 +2,11 @@ add_executable(hello_resus hello_resus.c ) -# Pull in our pico_stdlib which pulls in commonly used features +# pull in common dependencies target_link_libraries(hello_resus pico_stdlib) # create map/bin/hex file etc. pico_add_extra_outputs(hello_resus) # add url via pico_set_program_url -example_auto_set_url(hello_resus) \ No newline at end of file +example_auto_set_url(hello_resus) diff --git a/divider/CMakeLists.txt b/divider/CMakeLists.txt index bf9c0ab..d3a8be9 100644 --- a/divider/CMakeLists.txt +++ b/divider/CMakeLists.txt @@ -2,11 +2,11 @@ add_executable(hello_divider hello_divider.c ) -# Pull in our pico_stdlib which pulls in commonly used features +# pull in common dependencies target_link_libraries(hello_divider pico_stdlib) # create map/bin/hex file etc. pico_add_extra_outputs(hello_divider) # add url via pico_set_program_url -example_auto_set_url(hello_divider) \ No newline at end of file +example_auto_set_url(hello_divider) diff --git a/gpio/hello_7segment/CMakeLists.txt b/gpio/hello_7segment/CMakeLists.txt index bb23d7f..d0ce3ae 100644 --- a/gpio/hello_7segment/CMakeLists.txt +++ b/gpio/hello_7segment/CMakeLists.txt @@ -2,11 +2,11 @@ add_executable(hello_7segment hello_7segment.c ) -# Pull in our pico_stdlib which pulls in commonly used features +# pull in common dependencies target_link_libraries(hello_7segment pico_stdlib) # create map/bin/hex file etc. pico_add_extra_outputs(hello_7segment) # add url via pico_set_program_url -example_auto_set_url(hello_7segment) \ No newline at end of file +example_auto_set_url(hello_7segment) diff --git a/gpio/hello_gpio_irq/CMakeLists.txt b/gpio/hello_gpio_irq/CMakeLists.txt index d12019b..e514cfb 100644 --- a/gpio/hello_gpio_irq/CMakeLists.txt +++ b/gpio/hello_gpio_irq/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(hello_gpio_irq hello_gpio_irq.c ) -# Pull in our pico_stdlib which pulls in commonly used features +# pull in common dependencies target_link_libraries(hello_gpio_irq pico_stdlib) # create map/bin/hex file etc. diff --git a/hello_world/serial/CMakeLists.txt b/hello_world/serial/CMakeLists.txt index a9e48e1..7be6901 100644 --- a/hello_world/serial/CMakeLists.txt +++ b/hello_world/serial/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(hello_serial hello_serial.c ) -# Pull in our pico_stdlib which aggregates commonly used features +# pull in common dependencies target_link_libraries(hello_serial pico_stdlib) # create map/bin/hex/uf2 file etc. diff --git a/hello_world/usb/CMakeLists.txt b/hello_world/usb/CMakeLists.txt index 7368c3d..01f8d06 100644 --- a/hello_world/usb/CMakeLists.txt +++ b/hello_world/usb/CMakeLists.txt @@ -3,7 +3,7 @@ if (TARGET tinyusb_device) hello_usb.c ) - # Pull in our pico_stdlib which aggregates commonly used features + # pull in common dependencies target_link_libraries(hello_usb pico_stdlib) # enable usb output, disable uart output diff --git a/i2c/bus_scan/CMakeLists.txt b/i2c/bus_scan/CMakeLists.txt index 0ed7b24..662cfe6 100644 --- a/i2c/bus_scan/CMakeLists.txt +++ b/i2c/bus_scan/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(i2c_bus_scan bus_scan.c ) -# Pull in our get you started dependencies +# pull in common dependencies and additional i2c hardware support target_link_libraries(i2c_bus_scan pico_stdlib hardware_i2c) # create map/bin/hex file etc. diff --git a/i2c/lcd_1602_i2c/CMakeLists.txt b/i2c/lcd_1602_i2c/CMakeLists.txt index 0bdd80b..c6aad7a 100644 --- a/i2c/lcd_1602_i2c/CMakeLists.txt +++ b/i2c/lcd_1602_i2c/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(lcd_1602_i2c lcd_1602_i2c.c ) -# Pull in our get you started dependencies +# pull in common dependencies and additional i2c hardware support target_link_libraries(lcd_1602_i2c pico_stdlib hardware_i2c) # create map/bin/hex file etc. diff --git a/i2c/mpu6050_i2c/CMakeLists.txt b/i2c/mpu6050_i2c/CMakeLists.txt index c1178f1..83be3d5 100644 --- a/i2c/mpu6050_i2c/CMakeLists.txt +++ b/i2c/mpu6050_i2c/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(mpu6050_i2c mpu6050_i2c.c ) -# Pull in our get you started dependencies +# pull in common dependencies and additional i2c hardware support target_link_libraries(mpu6050_i2c pico_stdlib hardware_i2c) # create map/bin/hex file etc. diff --git a/interp/hello_interp/CMakeLists.txt b/interp/hello_interp/CMakeLists.txt index 4df3df2..cc280af 100644 --- a/interp/hello_interp/CMakeLists.txt +++ b/interp/hello_interp/CMakeLists.txt @@ -3,7 +3,7 @@ if (TARGET hardware_interp) hello_interp.c ) - # Pull in dependencies + # pull in common dependencies and additional interpolation hardware support target_link_libraries(hello_interp pico_stdlib hardware_interp) # create map/bin/hex file etc. @@ -11,4 +11,4 @@ if (TARGET hardware_interp) # add url via pico_set_program_url example_auto_set_url(hello_interp) -endif () \ No newline at end of file +endif () diff --git a/picoboard/blinky/CMakeLists.txt b/picoboard/blinky/CMakeLists.txt index fc7e939..e3e57ab 100644 --- a/picoboard/blinky/CMakeLists.txt +++ b/picoboard/blinky/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(picoboard_blinky blinky.c ) -# Pull in our pico_stdlib which pulls in commonly used features +# pull in common dependencies target_link_libraries(picoboard_blinky pico_stdlib) # create map/bin/hex file etc. diff --git a/picoboard/button/CMakeLists.txt b/picoboard/button/CMakeLists.txt index e257a5d..c3ef5d7 100644 --- a/picoboard/button/CMakeLists.txt +++ b/picoboard/button/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(picoboard_button button.c ) -# Pull in our pico_stdlib which pulls in commonly used features +# pull in common dependencies target_link_libraries(picoboard_button pico_stdlib) # create map/bin/hex file etc. diff --git a/pwm/hello_pwm/CMakeLists.txt b/pwm/hello_pwm/CMakeLists.txt index 9c7b0e1..e2df80c 100644 --- a/pwm/hello_pwm/CMakeLists.txt +++ b/pwm/hello_pwm/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(hello_pwm hello_pwm.c ) -# Pull in our pico_stdlib which pulls in commonly used features +# pull in common dependencies and additional pwm hardware support target_link_libraries(hello_pwm pico_stdlib hardware_pwm) # create map/bin/hex file etc. diff --git a/pwm/led_fade/CMakeLists.txt b/pwm/led_fade/CMakeLists.txt index 4090f46..a9f5eea 100644 --- a/pwm/led_fade/CMakeLists.txt +++ b/pwm/led_fade/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(pwm_led_fade pwm_led_fade.c ) -# Pull in our pico_stdlib which pulls in commonly used features +# pull in common dependencies and additional pwm hardware support target_link_libraries(pwm_led_fade pico_stdlib hardware_pwm) # create map/bin/hex file etc. diff --git a/pwm/measure_duty_cycle/CMakeLists.txt b/pwm/measure_duty_cycle/CMakeLists.txt index 174e4b9..45bd4d6 100644 --- a/pwm/measure_duty_cycle/CMakeLists.txt +++ b/pwm/measure_duty_cycle/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(pwm_measure_duty_cycle measure_duty_cycle.c ) -# Pull in our pico_stdlib which pulls in commonly used features +# pull in common dependencies and additional pwm hardware support target_link_libraries(pwm_measure_duty_cycle pico_stdlib hardware_pwm) # create map/bin/hex file etc. diff --git a/reset/CMakeLists.txt b/reset/CMakeLists.txt index 29519cd..6c1996f 100644 --- a/reset/CMakeLists.txt +++ b/reset/CMakeLists.txt @@ -3,7 +3,7 @@ if (TARGET hardware_reset) hello_reset.c ) - # Pull in our pico_stdlib which pulls in commonly used features + # pull in common dependencies target_link_libraries(hello_reset pico_stdlib) # create map/bin/hex file etc. @@ -11,4 +11,4 @@ if (TARGET hardware_reset) # add url via pico_set_program_url example_auto_set_url(hello_reset) -endif () \ No newline at end of file +endif () diff --git a/reset/hello_reset/CMakeLists.txt b/reset/hello_reset/CMakeLists.txt index c5d4332..fc08543 100644 --- a/reset/hello_reset/CMakeLists.txt +++ b/reset/hello_reset/CMakeLists.txt @@ -3,7 +3,7 @@ if (TARGET hardware_resets) hello_reset.c ) - # Pull in our pico_stdlib which pulls in commonly used features + # pull in common dependencies and additional reset hardware support target_link_libraries(hello_reset pico_stdlib hardware_resets) # create map/bin/hex file etc. @@ -11,4 +11,4 @@ if (TARGET hardware_resets) # add url via pico_set_program_url example_auto_set_url(hello_reset) -endif () \ No newline at end of file +endif () diff --git a/rtc/hello_rtc/CMakeLists.txt b/rtc/hello_rtc/CMakeLists.txt index 064c586..b3cc1a2 100644 --- a/rtc/hello_rtc/CMakeLists.txt +++ b/rtc/hello_rtc/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(hello_rtc hello_rtc.c ) -# Pull in our get you started dependencies +# pull in common dependencies and additional rtc hardware support target_link_libraries(hello_rtc pico_stdlib hardware_rtc) # create map/bin/hex file etc. diff --git a/rtc/rtc_alarm/CMakeLists.txt b/rtc/rtc_alarm/CMakeLists.txt index a168717..8f0dfa2 100644 --- a/rtc/rtc_alarm/CMakeLists.txt +++ b/rtc/rtc_alarm/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(rtc_alarm rtc_alarm.c ) -# Pull in our get you started dependencies +# pull in common dependencies and additional rtc hardware support target_link_libraries(rtc_alarm pico_stdlib hardware_rtc) # create map/bin/hex file etc. diff --git a/rtc/rtc_alarm_repeat/CMakeLists.txt b/rtc/rtc_alarm_repeat/CMakeLists.txt index 3900e35..bd3c9e3 100644 --- a/rtc/rtc_alarm_repeat/CMakeLists.txt +++ b/rtc/rtc_alarm_repeat/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(rtc_alarm_repeat rtc_alarm_repeat.c ) -# Pull in our get you started dependencies +# pull in common dependencies and additional rtc hardware support target_link_libraries(rtc_alarm_repeat pico_stdlib hardware_rtc) # create map/bin/hex file etc. diff --git a/spi/bme280_spi/CMakeLists.txt b/spi/bme280_spi/CMakeLists.txt index 61fe171..117d01a 100644 --- a/spi/bme280_spi/CMakeLists.txt +++ b/spi/bme280_spi/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(bme280_spi bme280_spi.c ) -# Pull in our get you started dependencies +# pull in common dependencies and additional spi hardware support target_link_libraries(bme280_spi pico_stdlib hardware_spi) # create map/bin/hex file etc. diff --git a/spi/mpu9250_spi/CMakeLists.txt b/spi/mpu9250_spi/CMakeLists.txt index 8802069..5e0a612 100644 --- a/spi/mpu9250_spi/CMakeLists.txt +++ b/spi/mpu9250_spi/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(mpu9250_spi mpu9250_spi.c ) -# Pull in our get you started dependencies +# pull in common dependencies and additional spi hardware support target_link_libraries(mpu9250_spi pico_stdlib hardware_spi) # create map/bin/hex file etc. diff --git a/spi/spi_flash/CMakeLists.txt b/spi/spi_flash/CMakeLists.txt index c0b54e9..2a0ddcc 100644 --- a/spi/spi_flash/CMakeLists.txt +++ b/spi/spi_flash/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(spi_flash spi_flash.c ) -# Pull in basic dependencies +# pull in common dependencies and additional spi hardware support target_link_libraries(spi_flash pico_stdlib hardware_spi) # create map/bin/hex file etc. diff --git a/system/narrow_io_write/CMakeLists.txt b/system/narrow_io_write/CMakeLists.txt index 8f3c317..5e57819 100644 --- a/system/narrow_io_write/CMakeLists.txt +++ b/system/narrow_io_write/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(narrow_io_write narrow_io_write.c ) -# Pull in our pico_stdlib which pulls in commonly used features +# pull in common dependencies target_link_libraries(narrow_io_write pico_stdlib) # create map/bin/hex file etc. diff --git a/timer/hello_timer/CMakeLists.txt b/timer/hello_timer/CMakeLists.txt index 2a9194e..806cf69 100644 --- a/timer/hello_timer/CMakeLists.txt +++ b/timer/hello_timer/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(hello_timer hello_timer.c ) -# Pull in our get you started dependencies +# pull in common dependencies target_link_libraries(hello_timer pico_stdlib) # create map/bin/hex file etc. diff --git a/timer/periodic_sampler/CMakeLists.txt b/timer/periodic_sampler/CMakeLists.txt index 32edebb..284780f 100644 --- a/timer/periodic_sampler/CMakeLists.txt +++ b/timer/periodic_sampler/CMakeLists.txt @@ -3,7 +3,7 @@ if (NOT PICO_TIME_NO_ALARM_SUPPORT) periodic_sampler.c ) - # Pull in our get you started dependencies + # pull in common dependencies target_link_libraries(periodic_sampler pico_stdlib) # create map/bin/hex file etc. diff --git a/uart/hello_uart/CMakeLists.txt b/uart/hello_uart/CMakeLists.txt index 62bb95e..713f721 100644 --- a/uart/hello_uart/CMakeLists.txt +++ b/uart/hello_uart/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(hello_uart hello_uart.c ) -# Pull in our pico_stdlib which pulls in commonly used features +# pull in common dependencies and additional uart hardware support target_link_libraries(hello_uart pico_stdlib) # create map/bin/hex file etc. diff --git a/uart/uart_advanced/CMakeLists.txt b/uart/uart_advanced/CMakeLists.txt index 38cdfef..a7cf563 100644 --- a/uart/uart_advanced/CMakeLists.txt +++ b/uart/uart_advanced/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(uart_advanced uart_advanced.c ) -# Pull in our pico_stdlib which pulls in commonly used features +# pull in common dependencies and additional uart hardware support target_link_libraries(uart_advanced pico_stdlib hardware_uart) # create map/bin/hex file etc.