cmake: make each target a configurable option

by default, everything will be compiled. Each target may be disabled
individually.
This commit is contained in:
fenugrec 2019-11-04 20:26:57 -05:00
parent ad9351243c
commit 079882f000

View File

@ -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("*******************")