root/OpenSceneGraph/trunk/src/osgPlugins/CMakeLists.txt @ 9847

Revision 9847, 4.8 kB (checked in by robert, 6 years ago)

Introduce FFmpegAudioStream implementation

  • Property svn:eol-style set to native
RevLine 
[6320]1#---------------------------------------------------
[9030]2# OSG CMAKE SUPPORT
[6320]3# (C) by Michael Wagner, mtw@shared-reality.com 2005
[6610]4# (C) Eric Wing, Luigi Calori and Robert Osfield 2006-2007
[6320]5#---------------------------------------------------
6
7PROJECT(OSG_PLUGINS_MASTER)
8
[9336]9IF   (NOT DYNAMIC_OPENSCENEGRAPH)
10    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
11ENDIF(NOT DYNAMIC_OPENSCENEGRAPH)
[6320]12
[7322]13IF(NOT MSVC)
[7364]14    SET(LIBRARY_OUTPUT_PATH "${LIBRARY_OUTPUT_PATH}/${OSG_PLUGINS}")
[8358]15    SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${OSG_PLUGINS}")
[7322]16ENDIF(NOT MSVC)
[6320]17
[7537]18SET(CMAKE_SHARED_MODULE_PREFIX ${OSG_PLUGIN_PREFIX})
[6320]19
[7629]20IF(MSVC80)
[7673]21  IF(NOT OSG_MSVC_GENERATE_PLUGINS_AND_WRAPPERS_MANIFESTS)
22    SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /MANIFEST:NO")
23  ENDIF(NOT OSG_MSVC_GENERATE_PLUGINS_AND_WRAPPERS_MANIFESTS)
[7629]24ENDIF(MSVC80)
[6320]25
[6375]26SET(TARGET_DEFAULT_PREFIX "osgdb_")
27SET(TARGET_DEFAULT_LABEL_PREFIX "Plugins")
[9030]28SET(TARGET_COMMON_LIBRARIES
[7537]29    OpenThreads
[9030]30    osg
31    osgDB
[7364]32    osgUtil
[6375]33)
34
[7119]35############################################################
[6375]36#
[7119]37#  NodeKit/Psudo loader plugins
[6375]38#
[9212]39ADD_SUBDIRECTORY(osgAnimation)
[7119]40ADD_SUBDIRECTORY(osgFX)
41ADD_SUBDIRECTORY(osgParticle)
42ADD_SUBDIRECTORY(osgSim)
43ADD_SUBDIRECTORY(osgText)
44ADD_SUBDIRECTORY(osgViewer)
45ADD_SUBDIRECTORY(osgShadow)
[7199]46ADD_SUBDIRECTORY(osgTerrain)
[9495]47ADD_SUBDIRECTORY(osgVolume)
[9213]48ADD_SUBDIRECTORY(osgWidget)
[7119]49ADD_SUBDIRECTORY(osga)
50ADD_SUBDIRECTORY(rot)
51ADD_SUBDIRECTORY(scale)
52ADD_SUBDIRECTORY(trans)
53ADD_SUBDIRECTORY(normals)
[6320]54
[7119]55############################################################
56#
57#  Main native plugins
58#
59ADD_SUBDIRECTORY(osg)
60ADD_SUBDIRECTORY(ive)
[6320]61
[7602]62############################################################
63#
64#  Viewer plugins
65#
66ADD_SUBDIRECTORY(cfg)
[6320]67
[7908]68############################################################
69#
70#  Shader plugins
71#
72ADD_SUBDIRECTORY(glsl)
[7602]73
[7119]74############################################################
75#
76#  Image plugins
77#
78ADD_SUBDIRECTORY(rgb)
79ADD_SUBDIRECTORY(bmp)
80ADD_SUBDIRECTORY(pnm)
81ADD_SUBDIRECTORY(dds)
82ADD_SUBDIRECTORY(tga)
83ADD_SUBDIRECTORY(hdr)
[9030]84ADD_SUBDIRECTORY(dot)
[9425]85ADD_SUBDIRECTORY(vtf)
[6606]86
[7119]87IF(JPEG_FOUND)
[7364]88    ADD_SUBDIRECTORY(jpeg)
[7119]89ENDIF(JPEG_FOUND)
90IF(JASPER_FOUND)
[9030]91    ADD_SUBDIRECTORY(jp2)
[7119]92ENDIF(JASPER_FOUND)
[9261]93IF(OPENEXR_FOUND)
[9274]94    ADD_SUBDIRECTORY(exr)
[9261]95ENDIF(OPENEXR_FOUND)
[7119]96IF(GIFLIB_FOUND)
[9030]97    ADD_SUBDIRECTORY(gif)
[7119]98ENDIF(GIFLIB_FOUND)
99IF(PNG_FOUND)
[7364]100    ADD_SUBDIRECTORY(png)
[7119]101ENDIF(PNG_FOUND)
102IF(TIFF_FOUND)
[7364]103    ADD_SUBDIRECTORY(tiff)
[7119]104ENDIF(TIFF_FOUND)
[7196]105IF(GDAL_FOUND)
[7364]106    ADD_SUBDIRECTORY(gdal)
[7827]107    ADD_SUBDIRECTORY(ogr)
[7196]108ENDIF(GDAL_FOUND)
[6609]109
[9188]110IF(XUL_FOUND)
111    IF  (WIN32 OR APPLE OR GTK_FOUND)
112        ADD_SUBDIRECTORY(gecko)
113    ENDIF(WIN32 OR APPLE OR GTK_FOUND)
114ENDIF(XUL_FOUND)
115
116
117
[7119]118############################################################
119#
[8782]120# 3D Image plugins
121#
[9490]122IF   (DCMTK_FOUND AND ZLIB_FOUND)
123
[8782]124    ADD_SUBDIRECTORY(dicom)
125
[9490]126ELSE (DCMTK_FOUND AND ZLIB_FOUND)
[8782]127
[9490]128    IF   (ITK_FOUND)
129        ADD_SUBDIRECTORY(dicom)
130    ENDIF(ITK_FOUND)
131
132ENDIF(DCMTK_FOUND AND ZLIB_FOUND)
133
134
[8782]135############################################################
136#
[7119]137#  3rd party 3d plugins
138#
[6609]139
[7119]140ADD_SUBDIRECTORY(3dc)
[6320]141
[9304]142IF(CURL_FOUND)
143    ADD_SUBDIRECTORY(curl)
144ENDIF(CURL_FOUND)
145
146IF(ZLIB_FOUND)
147    ADD_SUBDIRECTORY(gz)
148ENDIF(ZLIB_FOUND)
149
150
[7119]151IF(INVENTOR_FOUND)
[7364]152    ADD_SUBDIRECTORY(Inventor)
[7119]153ENDIF(INVENTOR_FOUND)
[6607]154
[7119]155IF(OPENVRML_FOUND)
[7364]156    ADD_SUBDIRECTORY(vrml)
[7119]157ENDIF(OPENVRML_FOUND)
[6320]158
[7119]159IF(COLLADA_FOUND)
[7364]160    ADD_SUBDIRECTORY(dae)
[7119]161ENDIF(COLLADA_FOUND)
[6507]162
[7119]163ADD_SUBDIRECTORY(lwo)
[9304]164ADD_SUBDIRECTORY(bvh)
[7119]165ADD_SUBDIRECTORY(x)
166ADD_SUBDIRECTORY(dw)
167ADD_SUBDIRECTORY(dxf)
168ADD_SUBDIRECTORY(OpenFlight)
[9139]169# ADD_SUBDIRECTORY(flt)
[7119]170ADD_SUBDIRECTORY(geo)
171ADD_SUBDIRECTORY(obj)
[6320]172
[7119]173IF(PERFORMER_FOUND)
174    ADD_SUBDIRECTORY(pfb)
175ENDIF(PERFORMER_FOUND)
[6320]176
[7119]177ADD_SUBDIRECTORY(pic)
178ADD_SUBDIRECTORY(stl)
179ADD_SUBDIRECTORY(3ds)
180ADD_SUBDIRECTORY(ac)
[6320]181
[7119]182ADD_SUBDIRECTORY(logo)
183ADD_SUBDIRECTORY(lws)
184ADD_SUBDIRECTORY(md2)
185ADD_SUBDIRECTORY(osgtgz)
186ADD_SUBDIRECTORY(tgz)
[6320]187
[7119]188ADD_SUBDIRECTORY(txp)
189ADD_SUBDIRECTORY(shp)
190ADD_SUBDIRECTORY(txf)
[6320]191
[9425]192ADD_SUBDIRECTORY(bsp)
193ADD_SUBDIRECTORY(mdl)
194
[7119]195IF(XINE_FOUND)
196    ADD_SUBDIRECTORY(xine)
197ENDIF(XINE_FOUND)
[6375]198
[9817]199IF(FFMPEG_FOUND)
200    ADD_SUBDIRECTORY(ffmpeg)
201ENDIF(FFMPEG_FOUND)
202
[9847]203IF(OPENAL_FOUND)
204    ADD_SUBDIRECTORY(OpenAL)
205ENDIF(OPENAL_FOUND)
206
[7119]207IF(QUICKTIME_FOUND)
208    ADD_SUBDIRECTORY(quicktime)
209ENDIF(QUICKTIME_FOUND)
[6375]210
[7119]211IF(FREETYPE_FOUND)
[9030]212    ADD_SUBDIRECTORY(freetype)
[7119]213ENDIF(FREETYPE_FOUND)
214IF(ZLIB_FOUND)
215    ADD_SUBDIRECTORY(zip)
216ENDIF(ZLIB_FOUND)
217
[8303]218IF(RSVG_FOUND AND CAIRO_FOUND)
[8302]219    ADD_SUBDIRECTORY(svg)
[8303]220ENDIF(RSVG_FOUND AND CAIRO_FOUND)
[7119]221
[9319]222IF   (POPPLER_FOUND AND CAIRO_FOUND)
223    ADD_SUBDIRECTORY(pdf)
224ENDIF(POPPLER_FOUND AND CAIRO_FOUND)
[7119]225
[9089]226IF   (LIBVNCSERVER_FOUND)
227    ADD_SUBDIRECTORY(vnc)
228ENDIF(LIBVNCSERVER_FOUND)
[8588]229
[9089]230
[6320]231##########to get all the variables of Cmake
[6375]232#GET_CMAKE_PROPERTY(MYVARS VARIABLES)
233#FOREACH(myvar ${MYVARS})
[7364]234#    FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/AllVariables.txt
235#        "${myvar} -->${${myvar}}<-\n"
236#    )
[6375]237#ENDFOREACH(myvar)
[6320]238
[9030]239
Note: See TracBrowser for help on using the browser.