[cmake-developers] [PATCH] Generator expressions for XCODE_ATTRIBUTE
Brad King
brad.king at kitware.com
Thu Jan 29 08:47:41 EST 2015
On 01/28/2015 02:14 PM, Gregor Jasny wrote:
> XCODE_ATTRIBUTE_TEST_HOST "$<TARGET_FILE:CocoaExample>"
>
> Would you consider applying the attached patch?
It looks okay to me.
> How would you test that feature? Just grepping in the generated pbxproj?
Add a case to the Tests/RunCMake/XcodeProject/RunCMakeTest.cmake file:
run_cmake(XcodeAttributeGenex)
and add the associated test code next to it in XcodeAttributeGenex.cmake:
enable_language(C)
...
set_property(TARGET ...)
Then create a XcodeAttributeGenex-check.cmake script to read the
project file. See the existing XcodeFileType case for an example.
Thanks,
-Brad
More information about the cmake-developers
mailing list