Compile flags and changed library from Qt5Widgets to Qt5Test