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
17 lines
417 B
CMake
17 lines
417 B
CMake
if (NOT TARGET pico_sha256)
|
|
message("Skipping pico_sha256_test as pico_sha256 is unavailable on this platform")
|
|
return()
|
|
endif()
|
|
|
|
add_executable(pico_sha256_test
|
|
pico_sha256_test.c
|
|
)
|
|
target_link_libraries(pico_sha256_test
|
|
pico_stdlib
|
|
pico_sha256
|
|
)
|
|
target_include_directories(pico_sha256_test PRIVATE
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
)
|
|
pico_add_extra_outputs(pico_sha256_test)
|