Combine cmake_minimum_required check for both Qt5 and Ubuntu