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

Revision 9835, 4.8 kB (checked in by shuber, 6 years ago)

* added CMake support for new imageio-plugin
* added new option "Cocoa" for OSG_WINDOWING_SYSTEM


  • 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# imageio-plugin for os x
118IF(APPLE)
119        ADD_SUBDIRECTORY(imageio)
120ENDIF(APPLE)
121
122
123############################################################
124#
125# 3D Image plugins
126#
127IF   (DCMTK_FOUND AND ZLIB_FOUND)
128
129    ADD_SUBDIRECTORY(dicom)
130
131ELSE (DCMTK_FOUND AND ZLIB_FOUND)
132
133    IF   (ITK_FOUND)
134        ADD_SUBDIRECTORY(dicom)
135    ENDIF(ITK_FOUND)
136
137ENDIF(DCMTK_FOUND AND ZLIB_FOUND)
138
139
140############################################################
141#
142#  3rd party 3d plugins
143#
144
145ADD_SUBDIRECTORY(3dc)
146
147IF(CURL_FOUND)
148    ADD_SUBDIRECTORY(curl)
149ENDIF(CURL_FOUND)
150
151IF(ZLIB_FOUND)
152    ADD_SUBDIRECTORY(gz)
153ENDIF(ZLIB_FOUND)
154
155
156IF(INVENTOR_FOUND)
157    ADD_SUBDIRECTORY(Inventor)
158ENDIF(INVENTOR_FOUND)
159
160IF(OPENVRML_FOUND)
161    ADD_SUBDIRECTORY(vrml)
162ENDIF(OPENVRML_FOUND)
163
164IF(COLLADA_FOUND)
165    ADD_SUBDIRECTORY(dae)
166ENDIF(COLLADA_FOUND)
167
168ADD_SUBDIRECTORY(lwo)
169ADD_SUBDIRECTORY(bvh)
170ADD_SUBDIRECTORY(x)
171ADD_SUBDIRECTORY(dw)
172ADD_SUBDIRECTORY(dxf)
173ADD_SUBDIRECTORY(OpenFlight)
174# ADD_SUBDIRECTORY(flt)
175ADD_SUBDIRECTORY(geo)
176ADD_SUBDIRECTORY(obj)
177
178IF(PERFORMER_FOUND)
179    ADD_SUBDIRECTORY(pfb)
180ENDIF(PERFORMER_FOUND)
181
182ADD_SUBDIRECTORY(pic)
183ADD_SUBDIRECTORY(stl)
184ADD_SUBDIRECTORY(3ds)
185ADD_SUBDIRECTORY(ac)
186
187ADD_SUBDIRECTORY(logo)
188ADD_SUBDIRECTORY(lws)
189ADD_SUBDIRECTORY(md2)
190ADD_SUBDIRECTORY(osgtgz)
191ADD_SUBDIRECTORY(tgz)
192
193ADD_SUBDIRECTORY(txp)
194ADD_SUBDIRECTORY(shp)
195ADD_SUBDIRECTORY(txf)
196
197ADD_SUBDIRECTORY(bsp)
198ADD_SUBDIRECTORY(mdl)
199
200IF(XINE_FOUND)
201    ADD_SUBDIRECTORY(xine)
202ENDIF(XINE_FOUND)
203
204IF(FFMPEG_FOUND)
205    ADD_SUBDIRECTORY(ffmpeg)
206ENDIF(FFMPEG_FOUND)
207
208IF(QUICKTIME_FOUND)
209    ADD_SUBDIRECTORY(quicktime)
210ENDIF(QUICKTIME_FOUND)
211
212IF(FREETYPE_FOUND)
213    ADD_SUBDIRECTORY(freetype)
214ENDIF(FREETYPE_FOUND)
215IF(ZLIB_FOUND)
216    ADD_SUBDIRECTORY(zip)
217ENDIF(ZLIB_FOUND)
218
219IF(RSVG_FOUND AND CAIRO_FOUND)
220    ADD_SUBDIRECTORY(svg)
221ENDIF(RSVG_FOUND AND CAIRO_FOUND)
222
223IF   (POPPLER_FOUND AND CAIRO_FOUND)
224    ADD_SUBDIRECTORY(pdf)
225ENDIF(POPPLER_FOUND AND CAIRO_FOUND)
226
227IF   (LIBVNCSERVER_FOUND)
228    ADD_SUBDIRECTORY(vnc)
229ENDIF(LIBVNCSERVER_FOUND)
230
231
232##########to get all the variables of Cmake
233#GET_CMAKE_PROPERTY(MYVARS VARIABLES)
234#FOREACH(myvar ${MYVARS})
235#    FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/AllVariables.txt
236#        "${myvar} -->${${myvar}}<-\n"
237#    )
238#ENDFOREACH(myvar)
239
240
Note: See TracBrowser for help on using the browser.