Hi.
Im wondering if it would be possible to add an option when building the dae
plugin (under windows) that one would like to use the DynamicLibrary version
of Collada.
Daniel Sjölie added the really useful information to the osg wiki, but its
really annoying having to add this information everytime I do a svn update.
I have updated the CMakeLists.txt with the appropriate changes
It should only affect the CMakeLists.txt in the dae plugin library.
The modified CMakeLists.txt is attached.
/Anders
--
________________________________________________________________
Anders Backman Email: [EMAIL PROTECTED]
HPC2N/VRlab Phone: +46 (0)90-786 9936
Umea university Cellular: +46 (0)70-392 64 67
S-901 87 UMEA SWEDEN Fax: +46 90-786 6126
http://www.cs.umu.se/~andersb
INCLUDE_DIRECTORIES( ${COLLADA_INCLUDE_DIR} ${COLLADA_INCLUDE_DIR}/1.4)
SET(TARGET_SRC
daeReader.cpp
daeRGeometry.cpp
daeRMaterials.cpp
daeRSceneObjects.cpp
daeRTransforms.cpp
daeWGeometry.cpp
daeWMaterials.cpp
daeWriter.cpp
daeWSceneObjects.cpp
daeWTransforms.cpp
domSourceReader.cpp
ReaderWriterDAE.cpp
)
SET(TARGET_H
daeReader.h
daeWriter.h
domSourceReader.h
)
IF(WIN32)
OPTION(DYNAMIC_COLLADA "Enable if the dynamically linked version of Collada
should be used" OFF)
IF(DYNAMIC_COLLADA)
ADD_DEFINITIONS(-DDOM_DYNAMIC)
ELSE(DYNAMIC_COLLADA)
SET(TARGET_EXTERNAL_LIBRARIES libcollada_dom libcollada_dae
libcollada_STLDatabase libcollada_LIBXMLPlugin libcollada_stdErrPlugin libxml2 )
ENDIF(DYNAMIC_COLLADA)
ELSE(WIN32)
#SET(TARGET_EXTERNAL_LIBRARIES collada_dom collada_dae collada_STLDatabase
collada_LIBXMLPlugin collada_stdErrPlugin xml2 )
# JC hack STLDatabase and XMLPlugin are statically linked on Linux
SET(TARGET_EXTERNAL_LIBRARIES collada_dom_shared collada_dae_shared xml2 )
ENDIF(WIN32)
SET(TARGET_LIBRARIES_VARS COLLADA_LIBRARY)
#### end var setup ###
SETUP_PLUGIN(dae)
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org