[cmake-developers] [CMake 0015288]: Add XCTest support to Xcode generator

Brad King brad.king at kitware.com
Mon Dec 8 09:32:29 EST 2014


On 12/08/2014 07:58 AM, Gregor Jasny wrote:
> what do you think would be the best way to add an XCTest bundle?

I'm not very familiar with Xcode-specific things like xctest binaries.
Please briefly explain their purpose, how they work, and how developers
might use them.  How should they be treated on non-Apple platforms?

So far I've only xctest in Modules/CMakeDetermineCompilerId.cmake
for the compiler identification project for iPhone platforms:

 Xcode: Fix compiler id detection for iOS tools (#15214)
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=c48f6e12

> add_library(CocoaExampleTest MODULE ...)

Why is it a MODULE?

>   BUNDLE_EXTENSION xctest
>   BUNDLE TRUE

These two could be implied by XCTEST as needed.

>   XCTEST TRUE
>   TEST_HOST CocoaExample

Please explain what each of these does.

Thanks,
-Brad



More information about the cmake-developers mailing list