Replaced old generateProject configuration with brand new cMake.