Add CMake options to choose if we want to build each BC projects as static or shared libraries independently.