mirror of
https://github.com/polpo/picogus.git
synced 2026-10-25 21:40:16 +00:00
31 lines
656 B
CMake
31 lines
656 B
CMake
add_library(ne2000 INTERFACE)
|
|
|
|
# if(NOT PICO_BOARD STREQUAL "PICO_W")
|
|
# message(FATAL_ERROR "NE2000 Requires Pico W")
|
|
# endif()
|
|
|
|
|
|
|
|
target_include_directories(ne2000 INTERFACE
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
${CMAKE_CURRENT_LIST_DIR}/ne2000
|
|
)
|
|
|
|
target_sources(ne2000 INTERFACE
|
|
${CMAKE_CURRENT_LIST_DIR}/ne2000.c
|
|
)
|
|
|
|
target_link_libraries(ne2000 INTERFACE
|
|
pico_cyw43_arch_none
|
|
# pico_cyw43_arch_poll
|
|
)
|
|
# target_compile_definitions(pico_cyw43_arch_poll_headers INTERFACE
|
|
# CYW43_LWIP=0
|
|
# )
|
|
# target_compile_definitions(ne2000 INTERFACE
|
|
# CYW43_LWIP=0
|
|
# )
|
|
target_compile_definitions(ne2000 INTERFACE
|
|
# PICO_CYW43_ARCH_POLL=1
|
|
)
|