I have managed to create a custom build configuration for CMake like here how can i extend the build modes with a custom made one to generate for VS 2019
set(