2019-01-03 14:16:54 -07:00
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/../components/nanopb/functions.cmake)
|
|
|
|
|
|
|
|
set(PB_OUT ${CMAKE_CURRENT_SOURCE_DIR}/pb_out)
|
|
|
|
|
2019-01-10 14:00:45 -08:00
|
|
|
make_directory(${PB_OUT})
|
2019-01-03 14:16:54 -07:00
|
|
|
nanopb_generate(messages.proto ${PB_OUT} PROTO_HDRS PROTO_SRCS)
|
|
|
|
|
2019-01-15 18:04:16 -08:00
|
|
|
list(APPEND COMPONENT_SRCS "ugv_main.cc"
|
2019-01-03 12:27:17 -07:00
|
|
|
"ugv_comms.c"
|
2019-01-10 14:00:45 -08:00
|
|
|
"ugv_io.c"
|
2019-01-03 14:16:54 -07:00
|
|
|
"u8g2_esp32_hal.c"
|
2019-01-15 18:04:16 -08:00
|
|
|
"Print.cpp"
|
2019-01-03 14:16:54 -07:00
|
|
|
${PROTO_SRCS})
|
|
|
|
set(COMPONENT_PRIV_INCLUDEDIRS "." ${PB_OUT})
|
2019-01-14 13:07:11 -08:00
|
|
|
set(COMPONENT_REQUIRES "u8g2" "sx127x_driver" "nanopb" "mpu_driver")
|
2019-01-03 14:16:54 -07:00
|
|
|
|
2018-12-29 21:14:26 -07:00
|
|
|
register_component()
|
|
|
|
|
|
|
|
component_compile_options("-Werror=incompatible-pointer-types")
|