[cmake-developers] [PATCH 0/2] XCTest support

Brad King brad.king at kitware.com
Tue Dec 9 15:40:47 EST 2014


On 12/9/2014 6:02 AM, Gregor Jasny wrote:
> See: https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/testing_with_xcode/

Thanks.

> On non-Apple platforms and Xcode < 5.0 those XCTest bundles are pretty
> useless.

What should CMake do on those platforms?  The fact that an add_library
call has occurred means it needs to do something with the target.
Should it be an error to ensure that the project adds such targets
only conditionally?

> Note: It is currently not possible to run the tests without opening Xcode
> once to (auto) generate the Schema files. Otherwise calling
> "xcodebuild test -scheme CocoaExample" will not recognise the scheme. 

Does this mean we can't automatically setup testing?

>  Tests/CocoaExample/CMakeLists.txt                  |  25 +

We'll need a way for this to actually run as part of nightly testing.
If manual interaction is needed then we could have an option that
the user could set to activate this on automated builds after taking
care of the manual step on the local machine.

Thanks,
-Brad


More information about the cmake-developers mailing list