CMake: Tweak detecting of right project part
CMake: Tweak detecting of right project part

Don't consider targets that end in _unittest or _automoc. Also don't
read CMakeDirectoryInformation.cmake as that doesn't work with
add_subdirectory.

Change-Id: If06af60e1637e94cccd32d09fc26c6b87488671b
Task-number: QTCREATORBUG-12183
Reviewed-by: Tobias Hunger <012f8d714267bccc9d4766fbeace9f175fcc70c4@theqtcompany.com>

Distrotech/qtcreator,martyone/sailfish-qtcreator,xianian/qt-creator,xianian/qt-creator,danimo/qt-creator,xianian/qt-creator,danimo/qt-creator,xianian/qt-creator,martyone/sailfish-qtcreator,xianian/qt-creator,martyone/sailfish-qtcreator,Distrotech/qtcreator,xianian/qt-creator,danimo/qt-creator,danimo/qt-creator,martyone/sailfish-qtcreator,danimo/qt-creator,Distrotech/qtcreator,martyone/sailfish-qtcreator,danimo/qt-creator,martyone/sailfish-qtcreator,Distrotech/qtcreator,xianian/qt-creator,xianian/qt-creator,danimo/qt-creator,Distrotech/qtcreator,martyone/sailfish-qtcreator,martyone/sailfish-qtcreator,danimo/qt-creator,Distrotech/qtcreator,xianian/qt-creator,Distrotech/qtcreator,danimo/qt-creator,martyone/sailfish-qtcreator