root/OpenSceneGraph/trunk/src/osgPlugins/3ds/CMakeLists.txt @ 10853

Revision 10853, 1.1 kB (checked in by robert, 4 years ago)

From Sukender,
"Here is our freshly baked 3DS reader/writer (named 'v0.5' to differentiate from previous one). Changes are against trunk rev. 10819.
Short changelog (from rev 10819):
- Added 3DS writer
- Sync'd with latest lib3DS
- Added options, especially "flattenMatrixTransforms" to get the "old" behaviour (else the reader correctly maps to OSG the transforms from the 3DS file).

What should be done:
- Check with pivot points, with and without "flattenMatrixTransforms" option.
- We ran tests on it, but we can never be 100% sure there is no bug. Testing from the community would of course be helpful."

  • Property svn:eol-style set to native
RevLine 
[10853]1# List of C files to be compiled as C++ (else CMake sets ".c" to be compiled as pure C)
2SET(C_FILES
3    lib3ds/lib3ds_io.c        # Modified to support OSG endianness
4)
5
[6376]6SET(TARGET_SRC
[9998]7    ReaderWriter3DS.cpp
[10853]8    WriterNodeVisitor.cpp
9    WriterCompareTriangle.cpp
10
11    ${C_FILES}
12    lib3ds/lib3ds_atmosphere.c
13    lib3ds/lib3ds_background.c
14    lib3ds/lib3ds_camera.c
15    lib3ds/lib3ds_chunk.c
16    lib3ds/lib3ds_chunktable.c
17    lib3ds/lib3ds_file.c
18    lib3ds/lib3ds_light.c
19    lib3ds/lib3ds_material.c
20    lib3ds/lib3ds_math.c
21    lib3ds/lib3ds_matrix.c
22    lib3ds/lib3ds_mesh.c
23    lib3ds/lib3ds_node.c
24    lib3ds/lib3ds_quat.c
25    lib3ds/lib3ds_shadow.c
26    lib3ds/lib3ds_track.c
27    lib3ds/lib3ds_util.c
28    lib3ds/lib3ds_vector.c
29    lib3ds/lib3ds_viewport.c
[6376]30)
31SET(TARGET_H
[10853]32    WriterNodeVisitor.h
33    WriterCompareTriangle.h
34    lib3ds/lib3ds.h
35    lib3ds/lib3ds_impl.h
[6376]36)
37#### end var setup  ###
[6379]38SETUP_PLUGIN(3ds)
[10853]39ADD_DEFINITIONS( -DLIB3DS_STATIC )        # lib3ds is included, so we need the flag
40SET_SOURCE_FILES_PROPERTIES(${C_FILES} PROPERTIES LANGUAGE "CXX")        # Force some files to be compiled as C++
Note: See TracBrowser for help on using the browser.