Options rework

This commit is contained in:
3djc
2019-08-22 14:50:30 +02:00
parent b0e545bcaa
commit 63604b3b12
7 changed files with 43 additions and 47 deletions
+13
View File
@@ -1,3 +1,4 @@
option(CROSSFIRE "Crossfire TX Module" OFF)
set(ARCH ARM)
set(LUA NO)
set(MCU cortex-m3)
@@ -129,3 +130,15 @@ set(SRC
${SRC}
debug.cpp
)
if(CROSSFIRE)
add_definitions(-DCROSSFIRE)
set(PULSES_SRC
${PULSES_SRC}
crossfire.cpp
)
set(SRC
${SRC}
telemetry/crossfire.cpp
)
endif()