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

Revision 11208, 2.6 kB (checked in by paulmartz, 4 years ago)

Merge 10664 to 2.8 branch (MSFBO workaround for OS X).

  • 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:9922,10150
  • 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    ADD_DEFINITIONS(-DDARWIN_QUICKTIME)
79ENDIF(APPLE)
80
81IF(QUICKTIME_FOUND)
82    ADD_DEFINITIONS(-DUSE_QUICKTIME)
83ENDIF(QUICKTIME_FOUND)
84
85IF(XINE_FOUND)
86        ADD_DEFINITIONS(-DUSE_XINE)
87ENDIF(XINE_FOUND)
88
89IF(INVENTOR_FOUND)
90        ADD_DEFINITIONS(-DUSE_INVENTOR)
91ENDIF(INVENTOR_FOUND)
92
93IF(OPENVRML_FOUND)
94        ADD_DEFINITIONS(-DUSE_VRML)
95ENDIF(OPENVRML_FOUND)
96
97
98ADD_DEFINITIONS(-DOSG_PLUGIN_EXTENSION=${CMAKE_SHARED_MODULE_SUFFIX})
99
100LINK_INTERNAL(${LIB_NAME}     
101    osg
102    OpenThreads
103)
104LINK_EXTERNAL(${LIB_NAME}     ${OSGDB_PLATFORM_SPECIFIC_LIBRARIES} )
105LINK_CORELIB_DEFAULT(${LIB_NAME})
106
107INCLUDE(ModuleInstall OPTIONAL)
Note: See TracBrowser for help on using the browser.