Hi Robert,

The Python header will look for its libraries using "#pragma
comment(lib,"python32_d.lib")" for MSVC. So user-specified libraries will
not really be set for the osgdb_python plugin. This small fix may help
locate the Python libraries after putting the CMakeLists.txt into
src/osgPlugins/python

Cheers,

Wang Rui
SET(TARGET_H
    PythonScriptEngine.h
)
SET(TARGET_SRC
    PythonScriptEngine.cpp
    ReaderWriterPython.cpp
)

SET(TARGET_EXTERNAL_LIBRARIES ${TARGET_EXTERNAL_LIBRARIES} ${PYTHON_LIBRARY})
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIR} )

IF(MSVC)
    GET_FILENAME_COMPONENT(PYTHON_LIB_DIR ${PYTHON_LIBRARY} PATH)
    LINK_DIRECTORIES(${PYTHON_LIB_DIR})
ENDIF(MSVC)

#### end var setup  ###
SETUP_PLUGIN(python)
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to