CMake: Fix target name when compiling with Qt4

This way it picks up the correct target name when no
command line parameters are specified and only
Qt4 is installed.