Use ${PROJECT_*_DIR}, which is relative to the current project() instead of ${CMAKE_*_DIR} which is relative to the top-level CMakeLists.txt
This disable CMake for checking for a C compiler. Doesn't quietly fails if Qt is not found. Add strict definitions for correct usage of QStrings and disables the deprecated foreach loops and other deprecated usage of Qt classes.