Corrected the build targets for the main and generated projects