Adds parenthesis to fix the precedence in the existing test and adds another condition that makes the presence of Qt Location actually optional like in the top level CMakeLists.txt