root/OpenSceneGraph/trunk/src/osgAnimation/CMakeLists.txt @ 11009

Revision 11009, 2.9 kB (checked in by robert, 3 years ago)

From Cedric Pinson, "Here a list of changes:
Bone now inherit from MatrixTransform?. It simplify a lot the update of
Bone matrix. It helps to have the bone system more generic. eg it's now
possible to have animation data with precomputed bind matrix. The other
benefit, is now the collada plugin will be able to use osgAnimation to
display skinned mesh. Michael Plating did a great work to improve this
aspect, he is working on the collada plugin and should be able to submit
a new version soon.
The RigGeometry? has been refactored so now it works when you save and
reload RigGeometry? because the source is not touched anymore. The
benefit with this update is that it should be now possible to use a
MorphGeometry? as source for a RigGeometry?.

The bad news is that the format has changed, so i have rebuild osg-data
related to osgAnimation data, updated the blender exporter to export to
the new format.
The fbx plugin could be touched about this commit, i dont compile it so
i can't give more information about it.
The bvh plugin has been updated by Wang rui so this one is fixed with
the new code of osgAnimation.
The examples has been updated to work with the new code too...

The example osg-data/example.osg should be remove, it's an old example
that does not work.

For people using blender the blender exporter up to date is here:
http://hg.plopbyte.net/osgexport2/
it will be merge to http://hg.plopbyte.net/osgexport/ as soon as the
modification will be push in the trunk.
"

Line 
1
2IF(DYNAMIC_OPENSCENEGRAPH)
3    ADD_DEFINITIONS(-DOSGANIMATION_LIBRARY)
4ELSE()
5    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
6ENDIF()
7
8SET(LIB_NAME osgAnimation)
9
10
11SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
12SET(LIB_PUBLIC_HEADERS
13    ${HEADER_PATH}/Action
14    ${HEADER_PATH}/ActionAnimation
15    ${HEADER_PATH}/ActionBlendIn
16    ${HEADER_PATH}/ActionBlendOut
17    ${HEADER_PATH}/ActionCallback
18    ${HEADER_PATH}/ActionStripAnimation
19    ${HEADER_PATH}/ActionVisitor
20    ${HEADER_PATH}/Animation
21    ${HEADER_PATH}/AnimationManagerBase
22    ${HEADER_PATH}/AnimationUpdateCallback
23    ${HEADER_PATH}/Assert
24    ${HEADER_PATH}/BasicAnimationManager
25    ${HEADER_PATH}/Bone
26    ${HEADER_PATH}/BoneMapVisitor
27    ${HEADER_PATH}/Channel
28    ${HEADER_PATH}/CubicBezier
29    ${HEADER_PATH}/EaseMotion
30    ${HEADER_PATH}/Export
31    ${HEADER_PATH}/FindParentAnimationManagerVisitor
32    ${HEADER_PATH}/FrameAction
33    ${HEADER_PATH}/Interpolator
34    ${HEADER_PATH}/Keyframe
35    ${HEADER_PATH}/LinkVisitor
36    ${HEADER_PATH}/MorphGeometry
37    ${HEADER_PATH}/RigGeometry
38    ${HEADER_PATH}/RigTransform
39    ${HEADER_PATH}/RigTransformHardware
40    ${HEADER_PATH}/RigTransformSoftware
41    ${HEADER_PATH}/Sampler
42    ${HEADER_PATH}/Skeleton
43    ${HEADER_PATH}/StackedMatrixElement
44    ${HEADER_PATH}/StackedQuaternionElement
45    ${HEADER_PATH}/StackedRotateAxisElement
46    ${HEADER_PATH}/StackedScaleElement
47    ${HEADER_PATH}/StackedTransformElement
48    ${HEADER_PATH}/StackedTranslateElement
49    ${HEADER_PATH}/StackedTransform
50    ${HEADER_PATH}/StatsVisitor
51    ${HEADER_PATH}/StatsHandler
52    ${HEADER_PATH}/Target
53    ${HEADER_PATH}/Timeline
54    ${HEADER_PATH}/TimelineAnimationManager
55    ${HEADER_PATH}/UpdateBone
56    ${HEADER_PATH}/UpdateMaterial
57    ${HEADER_PATH}/UpdateMatrixTransform
58    ${HEADER_PATH}/Vec3Packed
59    ${HEADER_PATH}/VertexInfluence
60)
61
62
63ADD_LIBRARY(${LIB_NAME}
64    ${OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC}
65    ${LIB_PUBLIC_HEADERS}
66    Action.cpp
67    ActionAnimation.cpp
68    ActionBlendIn.cpp
69    ActionBlendOut.cpp
70    ActionCallback.cpp
71    ActionStripAnimation.cpp
72    ActionVisitor.cpp
73    Animation.cpp
74    AnimationManagerBase.cpp
75    BasicAnimationManager.cpp
76    Bone.cpp
77    BoneMapVisitor.cpp
78    Channel.cpp
79    FindParentAnimationManagerVisitor.cpp
80    LinkVisitor.cpp
81    MorphGeometry.cpp
82    RigGeometry.cpp
83    RigTransformHardware.cpp
84    RigTransformSoftware.cpp
85    Skeleton.cpp
86    StackedMatrixElement.cpp
87    StackedQuaternionElement.cpp
88    StackedRotateAxisElement.cpp
89    StackedScaleElement.cpp
90    StackedTransform.cpp
91    StackedTranslateElement.cpp
92    StatsVisitor.cpp
93    StatsHandler.cpp
94    Target.cpp
95    TimelineAnimationManager.cpp
96    Timeline.cpp
97    UpdateBone.cpp
98    UpdateMaterial.cpp
99    UpdateMatrixTransform.cpp
100    VertexInfluence.cpp
101    ${OPENSCENEGRAPH_VERSIONINFO_RC}
102)
103
104LINK_INTERNAL(${LIB_NAME}
105    osg
106    osgText
107    osgGA
108    osgViewer
109    OpenThreads
110)
111
112LINK_CORELIB_DEFAULT(${LIB_NAME})
113INCLUDE(ModuleInstall OPTIONAL)
Note: See TracBrowser for help on using the browser.