mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-08-07 17:02:52 +03:00
* miscellaneous cleanup: * cleanup some #ifdefs which were slightly hacky when RP2350 was added; use HAS_ flags in preference to PICO_RP2040/RP2350 * make some dependencies more explicit - i.e. compile if the user doesn't want to include certain libraries * cleanup some directory A -> directory B relative path names in CMakeLists.txt to be SDK root -> directory B
8 lines
308 B
CMake
8 lines
308 B
CMake
if (NOT TARGET hardware_pwm)
|
|
message("Skipping hardware_pwm_test as hardware_pwm is unavailable on this platform")
|
|
return()
|
|
endif()
|
|
add_executable(hardware_pwm_test hardware_pwm_test.c)
|
|
|
|
target_link_libraries(hardware_pwm_test PRIVATE pico_test hardware_pwm)
|
|
pico_add_extra_outputs(hardware_pwm_test) |