[CMake] Good sample code for finding and using os x frameworks?
Mike Jackson
imikejackson at gmail.com
Tue Apr 10 11:16:20 EDT 2007
Probably NOT needed.. I was using some typedefs out of one of
includes in there and it seemed to solve some compile errors. I need
to go back and clean all that up.
So if someone uses the code snippet below, try removing the
INCLUDE_DIRECTORIES ( /Developer/Headers/FlatCarbon ) line.
Sorry for the confusion.
--
Mike Jackson Senior Research Engineer
Innovative Management & Technology Services
On Apr 10, 2007, at 11:13 AM, Sean McBride wrote:
> On 4/5/07 5:44 PM, Mike Jackson said:
>
>> Here is a code snippet from a CMakeLists.txt file that i use to
>> compile some Qt projects. Qt needs the Carbon framework, Quicktime
>> Framework and ApplicationServices.
>>
>> IF(APPLE)
>> #SET(GUI_TYPE MACOSX_BUNDLE)
>> INCLUDE_DIRECTORIES ( /Developer/Headers/FlatCarbon )
>> FIND_LIBRARY(CARBON_LIBRARY Carbon)
>> FIND_LIBRARY(QUICKTIME_LIBRARY QuickTime )
>> FIND_LIBRARY(APP_SERVICES_LIBRARY ApplicationServices )
>> MARK_AS_ADVANCED (CARBON_LIBRARY)
>> MARK_AS_ADVANCED (QUICKTIME_LIBRARY)
>> MARK_AS_ADVANCED (APP_SERVICES_LIBRARY)
>> SET(EXTRA_LIBS ${CARBON_LIBRARY} ${QUICKTIME_LIBRARY} $
>> {APP_SERVICES_LIBRARY} ${EXTRA_LIBS})
>> ENDIF (APPLE)
>
> Is the "INCLUDE_DIRECTORIES ( /Developer/Headers/FlatCarbon )" really
> necessary? /Developer/Headers/FlatHeaderConversion/ReadMe.txt
> explains
> that the FlatCarbon headers are meant only as a solution to those
> moving
> their code over from Mac OS 9, and it seems to be discouraged.
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng sean at rogue-research.com
> Rogue Research www.rogue-research.com
> Mac Software Developer Montréal, Québec, Canada
>
>
More information about the CMake
mailing list