cmTarget: Use GetCFBundleDirectory within GetFullNameInternal

Replace duplicated code by call to GetCFBundleDirectory.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Xcode: Call IsCFBundleOnApple to decide if bundle is being built

Narrow down the decision if a CFBundle is built to one place.
This is a preparation patch to add another target property
which, if set, will imply BUNDLE.  Having only one function
which will have to look at both properties helps to keep code
clean.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Tests: Run CFBundleTest only with valid configuration

The verification script needs to know the configuration tested.
Merge topic 'osx-cfbundle-tweaks' into next

e02814d4 Tests: Run CFBundleTest only with valid configuration
3a605693 Xcode: Call IsCFBundleOnApple to decide if bundle is being built
207b7af0 cmTarget: Use GetCFBundleDirectory within GetFullNameInternal