You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/../components/nanopb/functions.cmake)
|
|
|
|
|
|
|
|
set(PB_OUT ${CMAKE_CURRENT_SOURCE_DIR}/pb_out)
|
|
|
|
|
|
|
|
make_directory(${PB_OUT})
|
|
|
|
nanopb_generate(messages.proto ${PB_OUT} PROTO_HDRS PROTO_SRCS)
|
|
|
|
|
|
|
|
list(APPEND COMPONENT_SRCS "ugv_main.cc"
|
|
|
|
"ugv_comms.c"
|
|
|
|
"ugv_io.cc"
|
|
|
|
"u8g2_esp32_hal.c"
|
|
|
|
"Print.cpp"
|
|
|
|
${PROTO_SRCS})
|
|
|
|
set(COMPONENT_PRIV_INCLUDEDIRS "." ${PB_OUT})
|
|
|
|
set(COMPONENT_REQUIRES "u8g2" "sx127x_driver" "nanopb" "MPU-driver")
|
|
|
|
|
|
|
|
register_component()
|
|
|
|
|
|
|
|
component_compile_options("-Werror=incompatible-pointer-types")
|