How smake can be used to create an Xcode project that has a test target with clickable output

There are a few pages that explain how to use Xcode directly with gtest (e.g. https://code.google.com/p/googletest/wiki/XcodeGuide ), but I want to be able to start with cmake and get a fully integrated result. Cmake allows you to generate an Xcode project. I want the generated Xcode project to be so that it integrates the tests correctly (for example, if the test failed, the output that displays the location in the source should be a shortcut available for that location of the source code). How to do it?

So far, I have managed to get the Xcode / gtest project (see https : //stackoverflow.com/a/1657937/... ), but not on the clickable output.

+4
source share

All Articles