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

Revision 9751, 1.9 kB (checked in by robert, 5 years ago)

From Roger James and Robert Osfield, fixes and reorganization to better support Windows dyanmic library build

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