root/OpenSceneGraph/trunk/src/osgPlugins/dae/CMakeLists.txt @ 10336

Revision 10336, 1.8 kB (checked in by robert, 5 years ago)

From Roger James and Robert Osfield, clean up of COLLADA CMake support

  • Property svn:eol-style set to native
RevLine 
[10336]1INCLUDE_DIRECTORIES( ${COLLADA_INCLUDE_DIR} ${COLLADA_INCLUDE_DIR}/1.4)
[6605]2
3SET(TARGET_SRC
4    daeReader.cpp
5    daeRGeometry.cpp
6    daeRMaterials.cpp
7    daeRSceneObjects.cpp
8    daeRTransforms.cpp
9    daeWGeometry.cpp
10    daeWMaterials.cpp
11    daeWriter.cpp
12    daeWSceneObjects.cpp
13    daeWTransforms.cpp
14    domSourceReader.cpp
15    ReaderWriterDAE.cpp
16)
[7627]17
[6605]18SET(TARGET_H
19    daeReader.h
20    daeWriter.h
21    domSourceReader.h
[9953]22    ReaderWriterDAE.h
[6605]23)
[7627]24
25
[9998]26IF(COLLADA_DYNAMIC_LIBRARY AND COLLADA_STATIC_LIBRARY)
[9307]27    OPTION(COLLADA_USE_STATIC "Set to ON to build OpenSceneGraph with static Collada support." OFF)
[9998]28ELSEIF(COLLADA_STATIC_LIBRARY)
29    SET(COLLADA_USE_STATIC "YES")
30ELSE()
31    SET(COLLADA_USE_STATIC "NO")
32ENDIF()
[9307]33
[10336]34ADD_DEFINITIONS(-DNO_BOOST)
35
[9998]36IF(COLLADA_USE_STATIC)
[9741]37    IF(WIN32)
[9751]38        ADD_DEFINITIONS(-DBOOST_ALL_NO_LIB)
[9998]39        SET(TARGET_LIBRARIES_VARS
40            COLLADA_STATIC_LIBRARY
41            COLLADA_LIBXML_LIBRARY
42            COLLADA_ZLIB_LIBRARY
43            COLLADA_PCRECPP_LIBRARY
44            COLLADA_PCRE_LIBRARY
45            COLLADA_MINIZIP_LIBRARY
46            COLLADA_BOOST_FILESYSTEM_LIBRARY
47            COLLADA_BOOST_SYSTEM_LIBRARY)
48    ELSE()
49        SET(TARGET_LIBRARIES_VARS
50            COLLADA_STATIC_LIBRARY
51            COLLADA_LIBXML_LIBRARY
52            COLLADA_PCRECPP_LIBRARY
[10234]53            COLLADA_PCRE_LIBRARY
[9998]54            COLLADA_BOOST_FILESYSTEM_LIBRARY
[10336]55            COLLADA_BOOST_SYSTEM_LIBRARY)
[9998]56    ENDIF()
57ELSE()
[9741]58    IF(WIN32)
[10336]59        ADD_DEFINITIONS(-DDOM_DYNAMIC)
60        SET(TARGET_LIBRARIES_VARS COLLADA_DYNAMIC_LIBRARY)
[9998]61    ELSE()
62        SET(TARGET_LIBRARIES_VARS
[10336]63                    COLLADA_DYNAMIC_LIBRARY
64                    COLLADA_BOOST_FILESYSTEM_LIBRARY)
65    ENDIF()
66
[9998]67ENDIF()
[9307]68 
[9228]69SET(TARGET_ADDED_LIBRARIES osgSim )
[6605]70
71#### end var setup  ###
[9339]72SETUP_PLUGIN(dae dae)
Note: See TracBrowser for help on using the browser.