Use CMake variables to enable sub-builds
What
This MR updates how the variables YARR_FRONT_ENDS_TO_BUILD
and YARR_CONTROLLERS_TO_BUILD
(here),
such that whatever these variables are set as will be used to fill the FRONT_ENDS
and CONTROLLERS
variables.
The FRONT_ENDS
and CONTROLLERS
variables are ultimately what are used to define which libraries get built.
This allows a user to do, e.g., :
$ cmake3 -DYARR_FRONT_ENDS_TO_BUILD=Rd53b -DCONTROLLERS_TO_BUILD=Spec ..
...
-- Building controller Spec
-- Building frontend Rd53b
...
By default, the same behavior (in terms of what libraries are built by default) as previous will be the result:
$ cmake3 ..
...
-- Building controller Spec
-- Building controller Emu
-- Building frontend Fei4
-- Building frontend Rd53a
-- Building frontend Star
-- Building frontend Fe65p2
-- Building frontend Rd53b
...
Related Issues
Edited by Daniel Joseph Antrim