Fixed bluetooth CMake defs

This commit is contained in:
Raphael Coeffic
2022-03-20 16:22:12 +01:00
parent 3439a94aa4
commit 6a66ba8c07
2 changed files with 8 additions and 4 deletions
+6 -2
View File
@@ -240,8 +240,12 @@ endif()
if(BLUETOOTH)
add_definitions(-DBLUETOOTH)
set(TARGET_SRC ${TARGET_SRC} ../common/arm/stm32/bluetooth_driver.cpp)
set(SRC ${SRC} bluetooth.cpp)
set(FIRMWARE_SRC
${FIRMWARE_SRC}
targets/common/arm/stm32/bluetooth_driver.cpp)
set(SRC
${SRC}
bluetooth.cpp)
add_definitions(-DHARDWARE_TRAINER_BLUETOOTH)
endif()
+2 -2
View File
@@ -457,8 +457,8 @@ endif()
if(BLUETOOTH)
add_definitions(-DBLUETOOTH)
set(FIRMWARE_TARGET_SRC
${FIRMWARE_TARGET_SRC}
set(FIRMWARE_SRC
${FIRMWARE_SRC}
targets/common/arm/stm32/bluetooth_driver.cpp)
set(SRC
${SRC}