Expose option to build shared libs in root CMakeLists.txt
- fixes linker errors in windows CI and warnings on linux/mac.
- this line was previously in
vtkMobileDevices.cmake
and it executed on non-mobile devices. It was yanked in !11510 (merged) which causedBUILD_SHARED_LIBS
to never be set!