blob: ab0c628d300dad189283e110529902bfc772c881 [file] [log] [blame]
if (NOT TARGET pico_multicore)
pico_add_library(pico_multicore)
target_include_directories(pico_multicore_headers SYSTEM INTERFACE ${CMAKE_CURRENT_LIST_DIR}/include)
target_sources(pico_multicore INTERFACE
${CMAKE_CURRENT_LIST_DIR}/multicore.c)
pico_mirrored_target_link_libraries(pico_multicore INTERFACE
pico_sync
hardware_irq)
if (PICO_RISCV)
pico_mirrored_target_link_libraries(pico_multicore INTERFACE hardware_riscv)
endif()
endif()