use latest cmake way for linking qt and disable warnings