mirror of
https://github.com/candle-usb/candleLight_fw.git
synced 2025-01-28 06:02:52 +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)
|
foreach (TGTNAME IN LISTS TGT042_LIST)
|
||||||
|
option(BUILD_${TGTNAME} "Build firmware for \"${TGTNAME}\" (default=yes)" ON)
|
||||||
|
if (BUILD_${TGTNAME})
|
||||||
add_f042_target(${TGTNAME})
|
add_f042_target(${TGTNAME})
|
||||||
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
foreach (TGTNAME IN LISTS TGT072_LIST)
|
foreach (TGTNAME IN LISTS TGT072_LIST)
|
||||||
|
option(BUILD_${TGTNAME} "Build firmware for \"${TGTNAME}\" (default=yes)" ON)
|
||||||
|
if (BUILD_${TGTNAME})
|
||||||
add_f072_target(${TGTNAME})
|
add_f072_target(${TGTNAME})
|
||||||
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
message("*******************")
|
message("*******************")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user