[CMake] Linking against OS X Frameworks
Michael Jackson
mike.jackson at bluequartz.net
Thu Aug 6 15:58:11 EDT 2009
_________________________________________________________
Mike Jackson mike.jackson at bluequartz.net
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio
On Aug 6, 2009, at 3:52 PM, ML wrote:
> Hey 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.
>
> -Jason
>
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..
Mike
More information about the CMake
mailing list