[CMake] Linking against OS X Frameworks

ML mailinglists at MailNewsRSS.com
Thu Aug 6 16:11:16 EDT 2009


Hi Mike,

>>> Also is that a linker error or a compile error? Looks like a  
>>> compile error. You probably have to include the location of the  
>>> Carbon Headers.
>>
>> What is the best way to do that exactly? I am in cluding Carbon/ 
>> Carbon.h in my source files. but I guess CMAKE needs to know where  
>> to fine them too. moving form XCode is harder than I thought it  
>> would be.

> include_directories (${CMAKE_OSX_SYSROOT}/Developer/Headers/ 
> FlatCarbon)
>
> Then in your code you can do #include <Carbon.h>
>
> Although I am not really sure this is the "correct" way to do this.
>
> I think you should be really looking for the "Carbon.framework" and  
> then using that..

I am getting more confused! This works in XCode for me, it is just two  
files.

Does anyone have an example CMake file that includes Crbon headers,  
links agains the carbon framework, etc? What I am doing is obviously  
wrong.

This project is only two files and builds for me in XCode.

-Jason


More information about the CMake mailing list