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.
44 lines
1.1 KiB
44 lines
1.1 KiB
include(${CMAKE_CURRENT_LIST_DIR}/../components/protobuf/functions.cmake) |
|
|
|
set(PB_OUT ${CMAKE_CURRENT_SOURCE_DIR}/pb_out) |
|
|
|
set(COMPONENT_SRCS |
|
"ugv_main.cc" |
|
"ugv_comms.hh" |
|
"ugv_comms.cc" |
|
"ugv_display.hh" |
|
"ugv_display.cc" |
|
"ugv_io.hh" |
|
"ugv_io.cc" |
|
"ugv_io_gps.hh" |
|
"ugv_io_gps.cc" |
|
"ugv_io_mpu.hh" |
|
"ugv_io_mpu.cc" |
|
"u8g2_esp32_hal.h" |
|
"u8g2_esp32_hal.c" |
|
"Print.h" |
|
"Print.cpp" |
|
"MadgwickAHRS.h" |
|
"MadgwickAHRS.cpp" |
|
"e32_driver.hh" |
|
"e32_driver.cc" |
|
"pid_controller.hh" |
|
"pid_controller.cc" |
|
"lat_long.hh" |
|
"lat_long.cc" |
|
"ugv.hh" |
|
"ugv.cc" |
|
) |
|
set(COMPONENT_PRIV_INCLUDEDIRS "." ${PB_OUT}) |
|
set(COMPONENT_REQUIRES "u8g2" "sx127x_driver" "protobuf" "MPU-driver" "minmea" "mbedtls") |
|
|
|
proto_generate_cpp(messages.proto ${PB_OUT} PROTO_HDRS PROTO_SRCS) |
|
proto_generate_cpp(config.proto ${PB_OUT} PROTO_HDRS PROTO_SRCS) |
|
list(APPEND COMPONENT_SRCS ${PROTO_SRCS} ${PROTO_HDRS}) |
|
|
|
register_component() |
|
|
|
make_directory(${PB_OUT}) |
|
|
|
component_compile_options("-Werror=incompatible-pointer-types" "-std=c++14") |
|
component_compile_options(-I${PB_OUT})
|
|
|