root/OpenSceneGraph/trunk/src/osgWrappers/serializers/CMakeLists.txt @ 11018

Revision 11018, 1.0 kB (checked in by robert, 5 years ago)

From Wang Rui, "Changes:

1. Rewrite the reading/writing exception handlers to work like the ive
plugin exceptions.
2. Write a header writing/checking function in ReaderWriterOSG2.cpp,
which may help decide if the stream is ascii or binary. The
readInputIterator() function will return null pointer if the input
file is nither osgb nor osgt format, which indicates that the old .osg
format could be used here, in case we've merged the two plugins
together.
3. Add a new ForceReadingImage? option in the InputStream?, which will
allocate an empty image object with the filename if specifed external
image file is missed. It may be useful for format converting in some
cases.
4. Add new osgParticle wrappers, as well as some modification to the
osgParticle headers, for instance, change isEnabled() to getEnabled().
5. Some fixes to the osg serialization wrappers."

Line 
1#---------------------------------------------------
2# OSG CMAKE SUPPORT
3# (C) by Michael Wagner, mtw@shared-reality.com 2005
4# (C) Eric Wing, Luigi Calori and Robert Osfield 2006-2007
5#---------------------------------------------------
6
7PROJECT(OSG_PLUGINS_MASTER)
8
9IF(NOT DYNAMIC_OPENSCENEGRAPH)
10    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
11ENDIF()
12
13IF(NOT MSVC)
14    SET(LIBRARY_OUTPUT_PATH "${LIBRARY_OUTPUT_PATH}/${OSG_PLUGINS}")
15    SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${OSG_PLUGINS}")
16ENDIF()
17
18SET(CMAKE_SHARED_MODULE_PREFIX ${OSG_PLUGIN_PREFIX})
19
20IF(MSVC80 OR MSVC90)
21    IF(NOT OSG_MSVC_GENERATE_PLUGINS_AND_WRAPPERS_MANIFESTS)
22        SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /MANIFEST:NO")
23    ENDIF()
24ENDIF()
25
26SET(TARGET_DEFAULT_PREFIX "osgdb_serializers_")
27SET(TARGET_DEFAULT_LABEL_PREFIX "Plugins")
28SET(TARGET_COMMON_LIBRARIES
29    OpenThreads
30    osg
31    osgDB
32    osgUtil
33)
34
35ADD_SUBDIRECTORY(osg)
36ADD_SUBDIRECTORY(osgParticle)
37
Note: See TracBrowser for help on using the browser.