root/OpenSceneGraph/branches/OpenSceneGraph-2.8/src/osgDB/CMakeLists.txt @ 11264

Revision 11264, 3.0 kB (checked in by paulmartz, 4 years ago)

2.8 branch: Mergine recent changes to FBX. Revisions in this commit: r11251, r11252, r11262.

  • Property svn:mergeinfo set to
    /OpenSceneGraph/branches/OpenSceneGraph-2.8.2/src/osgDB/CMakeLists.txt:10664
    /OpenSceneGraph/trunk/include/osg/src/osgDB/CMakeLists.txt:9882
    /OpenSceneGraph/trunk/src/osgDB/CMakeLists.txt:9769,9816-9818,9826-9827,9837-9843,9847,9850,9854-9857,9860-9861,9865,9869,9879-9880,9885,9895,9906,9910,9912,9922,9932-9933,9948,9959-9960,9965,9968-9969,9990,10010,10012-10014,10030,10040-10041,10053,10057,10076,10079-10080,10082,10084,10088,10128,10149-10150,10161,10208,10264,10283,10340,10391-10392,10408,10414,10417,10422,10440,10456,10487,10491,10520,10538,10622-10623,10625,10671-10672,10697,10722,10753,10758,10761,10788,10805,10809,10818,10851,10853-10855,10858,10887,10891-10892,10914,10923,10925,10932-10933,10938,10941-10942,10945,10961,11019,11032-11035,11056,11111,11123,11127,11131,11159,11165,11173,11175,11177,11180,11182,11194,11203,11237,11251-11252,11262
  • Property svn:eol-style set to native
Line 
1
2IF   (DYNAMIC_OPENSCENEGRAPH)
3    ADD_DEFINITIONS(-DOSGDB_LIBRARY)
4
5    # Add a default plugin search path component
6    ADD_DEFINITIONS(-DOSG_DEFAULT_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib${LIB_POSTFIX}/${OSG_PLUGINS})
7ELSE (DYNAMIC_OPENSCENEGRAPH)
8    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
9ENDIF(DYNAMIC_OPENSCENEGRAPH)
10
11
12
13SET(LIB_NAME osgDB)
14SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
15SET(LIB_PUBLIC_HEADERS
16    ${HEADER_PATH}/Archive
17    ${HEADER_PATH}/AuthenticationMap
18    ${HEADER_PATH}/ConvertUTF
19    ${HEADER_PATH}/DatabasePager
20    ${HEADER_PATH}/DotOsgWrapper
21    ${HEADER_PATH}/DynamicLibrary
22    ${HEADER_PATH}/Export
23    ${HEADER_PATH}/Field
24    ${HEADER_PATH}/FieldReader
25    ${HEADER_PATH}/FieldReaderIterator
26    ${HEADER_PATH}/FileCache
27    ${HEADER_PATH}/FileNameUtils
28    ${HEADER_PATH}/FileUtils
29    ${HEADER_PATH}/fstream
30    ${HEADER_PATH}/ImageOptions
31    ${HEADER_PATH}/ImagePager
32    ${HEADER_PATH}/Input
33    ${HEADER_PATH}/Output
34    ${HEADER_PATH}/ParameterOutput
35    ${HEADER_PATH}/PluginQuery
36    ${HEADER_PATH}/ReaderWriter
37    ${HEADER_PATH}/ReadFile
38    ${HEADER_PATH}/Registry
39    ${HEADER_PATH}/Serializer
40    ${HEADER_PATH}/SharedStateManager
41    ${HEADER_PATH}/Version
42    ${HEADER_PATH}/WriteFile
43)
44
45# FIXME: For OS X, need flag for Framework or dylib
46ADD_LIBRARY(${LIB_NAME}
47    ${OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC}
48    ${LIB_PUBLIC_HEADERS}
49    Archive.cpp
50    AuthenticationMap.cpp
51    ConvertUTF.cpp
52    DatabasePager.cpp
53    DotOsgWrapper.cpp
54    DynamicLibrary.cpp
55    Field.cpp
56    FieldReader.cpp
57    FieldReaderIterator.cpp
58    FileCache.cpp
59    FileNameUtils.cpp
60    FileUtils.cpp
61    fstream.cpp
62    ImageOptions.cpp
63    ImagePager.cpp
64    Input.cpp
65    Output.cpp
66    PluginQuery.cpp
67    ReaderWriter.cpp
68    ReadFile.cpp
69    Registry.cpp
70    SharedStateManager.cpp
71    Version.cpp
72    WriteFile.cpp
73)
74
75IF(APPLE)
76    # Needs CoreFoundation calls and a Carbon function
77    SET(OSGDB_PLATFORM_SPECIFIC_LIBRARIES ${CARBON_LIBRARY})
78 
79    SET(OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX "quicktime" CACHE STRING "standard image plugin for os x, options are quicktime, imageio")
80
81
82    IF(${OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX} STREQUAL "quicktime")
83        ADD_DEFINITIONS(-DDARWIN_QUICKTIME)
84    ELSE(${OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX} STREQUAL "quicktime")
85        ADD_DEFINITIONS(-DDARWIN_IMAGEIO)
86    ENDIF(${OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX} STREQUAL "quicktime")
87
88ENDIF(APPLE)
89
90IF(QUICKTIME_FOUND)
91    ADD_DEFINITIONS(-DUSE_QUICKTIME)
92ENDIF(QUICKTIME_FOUND)
93
94IF(XINE_FOUND)
95        ADD_DEFINITIONS(-DUSE_XINE)
96ENDIF(XINE_FOUND)
97
98IF(INVENTOR_FOUND)
99        ADD_DEFINITIONS(-DUSE_INVENTOR)
100ENDIF(INVENTOR_FOUND)
101
102IF(OPENVRML_FOUND)
103        ADD_DEFINITIONS(-DUSE_VRML)
104ENDIF(OPENVRML_FOUND)
105
106
107ADD_DEFINITIONS(-DOSG_PLUGIN_EXTENSION=${CMAKE_SHARED_MODULE_SUFFIX})
108
109LINK_INTERNAL(${LIB_NAME}     
110    osg
111    OpenThreads
112)
113LINK_EXTERNAL(${LIB_NAME}     ${OSGDB_PLATFORM_SPECIFIC_LIBRARIES} )
114LINK_CORELIB_DEFAULT(${LIB_NAME})
115
116INCLUDE(ModuleInstall OPTIONAL)
Note: See TracBrowser for help on using the browser.