Platform detection for qt in cmake