root/OpenSceneGraph/branches/osg-cocoa-dev/src/osgPlugins/CMakeLists.txt @ 9859

Revision 9859, 4.9 kB (checked in by shuber, 5 years ago)

new CMake-option OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX for switching between imageio and quicktime on OS X.

Note: both plugins get build, only the hardwiring in osgDB::Registry gets modified.

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