Show
Ignore:
Timestamp:
03/04/09 15:36:31 (5 years ago)
Author:
shuber
Message:

new CMake-option OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX for switching between imageio and quicktime on OS X.

Note: both plugins get build, only the hardwiring in osgDB::Registry gets modified.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/branches/osg-cocoa-dev/src/osgDB/CMakeLists.txt

    r9671 r9859  
    7777    # Needs CoreFoundation calls and a Carbon function 
    7878    SET(OSGDB_PLATFORM_SPECIFIC_LIBRARIES ${CARBON_LIBRARY}) 
    79     ADD_DEFINITIONS(-DDARWIN_QUICKTIME) 
     79  
     80    SET(OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX "quicktime" CACHE STRING "standard image plugin for os x, options are quicktime, imageio") 
     81 
     82 
     83    IF(${OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX} STREQUAL "quicktime") 
     84        ADD_DEFINITIONS(-DDARWIN_QUICKTIME) 
     85    ELSE(${OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX} STREQUAL "quicktime") 
     86        ADD_DEFINITIONS(-DDARWIN_IMAGEIO) 
     87    ENDIF(${OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX} STREQUAL "quicktime") 
     88 
    8089ENDIF(APPLE) 
    8190