18 lines
512 B
CMake
18 lines
512 B
CMake
set(trikke_sources
|
|
"trikke_sensor_main.c" "trikke_protocol.c" "trikke_transport.c")
|
|
set(trikke_requires
|
|
adxl345 l3g4200d esp_timer esp_driver_gpio esp_driver_i2c
|
|
bt nvs_flash esp_driver_usb_serial_jtag vfs)
|
|
|
|
if(CONFIG_TRIKKE_TRANSPORT_BLE)
|
|
list(APPEND trikke_sources "trikke_ble_protocol.c" "trikke_ble_transport.c")
|
|
else()
|
|
list(APPEND trikke_sources "trikke_usb_transport.c")
|
|
endif()
|
|
|
|
idf_component_register(
|
|
SRCS ${trikke_sources}
|
|
INCLUDE_DIRS "."
|
|
REQUIRES ${trikke_requires}
|
|
)
|