mirror of
https://github.com/candle-usb/candleLight_fw.git
synced 2025-01-14 05:42:53 +08:00
cmake: make each target a configurable option
by default, everything will be compiled. Each target may be disabled individually.
This commit is contained in:
parent
ad9351243c
commit
079882f000
@ -101,11 +101,17 @@ set(TGT072_LIST "candleLight")
|
||||
|
||||
|
||||
foreach (TGTNAME IN LISTS TGT042_LIST)
|
||||
add_f042_target(${TGTNAME})
|
||||
option(BUILD_${TGTNAME} "Build firmware for \"${TGTNAME}\" (default=yes)" ON)
|
||||
if (BUILD_${TGTNAME})
|
||||
add_f042_target(${TGTNAME})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
foreach (TGTNAME IN LISTS TGT072_LIST)
|
||||
add_f072_target(${TGTNAME})
|
||||
option(BUILD_${TGTNAME} "Build firmware for \"${TGTNAME}\" (default=yes)" ON)
|
||||
if (BUILD_${TGTNAME})
|
||||
add_f072_target(${TGTNAME})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
message("*******************")
|
||||
|
Loading…
x
Reference in New Issue
Block a user