[CMake] Good sample code for finding and using os x frameworks?
Sean McBride
sean at rogue-research.com
Tue Apr 10 11:13:04 EDT 2007
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