blob: 83c08f61e04fc694d6d2a998908224bb3f889e75 [file] [log] [blame]
add_library(pico_runtime INTERFACE)
target_sources(pico_runtime INTERFACE
${CMAKE_CURRENT_LIST_DIR}/runtime.c
)
target_include_directories(pico_runtime INTERFACE ${CMAKE_CURRENT_LIST_DIR}/include)
target_link_libraries(pico_runtime INTERFACE
hardware_uart
hardware_clocks
hardware_irq
pico_printf
pico_sync
)
if (TARGET pico_bit_ops)
target_link_libraries(pico_runtime INTERFACE pico_bit_ops)
endif()
if (TARGET pico_divider)
target_link_libraries(pico_runtime INTERFACE pico_divider)
endif()
if (TARGET pico_double)
target_link_libraries(pico_runtime INTERFACE pico_double)
endif()
if (TARGET pico_int64_ops)
target_link_libraries(pico_runtime INTERFACE pico_int64_ops)
endif()
if (TARGET pico_float)
target_link_libraries(pico_runtime INTERFACE pico_float)
endif()
if (TARGET pico_malloc)
target_link_libraries(pico_runtime INTERFACE pico_malloc)
endif()
if (TARGET pico_mem_ops)
target_link_libraries(pico_runtime INTERFACE pico_mem_ops)
endif()
if (TARGET pico_standard_link)
target_link_libraries(pico_runtime INTERFACE pico_standard_link)
endif()
# todo is this correct/needed?
target_link_options(pico_runtime INTERFACE "--specs=nosys.specs")