Show
Ignore:
Timestamp:
04/08/09 15:11:27 (6 years ago)
Author:
robert
Message:

From Marc Sciabica, made searching of the install path for plugins option, and added the dll path to the search path under Windows

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgDB/CMakeLists.txt

    r9949 r9991  
    11 
    2 IF(DYNAMIC_OPENSCENEGRAPH) 
     2IF   (DYNAMIC_OPENSCENEGRAPH) 
     3 
     4    OPTION(OSG_PLUGIN_SEARCH_INSTALL_DIR_FOR_PLUGINS "Set to ON to have OpenSceneGraph search the configured install directory for plugins." ON) 
     5 
    36    ADD_DEFINITIONS(-DOSGDB_LIBRARY) 
    47 
    5     # Add a default plugin search path component 
    6     ADD_DEFINITIONS(-DOSG_DEFAULT_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib${LIB_POSTFIX}/${OSG_PLUGINS}) 
    7 ELSE() 
     8    IF(OSG_PLUGIN_SEARCH_INSTALL_DIR_FOR_PLUGINS) 
     9        # Add a default plugin search path component 
     10        ADD_DEFINITIONS(-DOSG_DEFAULT_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib${LIB_POSTFIX}/${OSG_PLUGINS}) 
     11    ENDIF() 
     12 
     13ELSE () 
    814    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC) 
    915ENDIF()