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

Revision 11172, 4.5 kB (checked in by robert, 5 years ago)

From Mathias Froehlich, "If you want to have that qfont plugin loader, this is the updated
implementation which uses osgQt and includes the changes to make fonts load
without a file on disk."

  • 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()
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()
17
18SET(CMAKE_SHARED_MODULE_PREFIX ${OSG_PLUGIN_PREFIX})
19
20IF(MSVC80 OR MSVC90)
21    IF(NOT OSG_MSVC_GENERATE_PLUGINS_AND_WRAPPERS_MANIFESTS)
22        SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /MANIFEST:NO")
23    ENDIF()
24ENDIF()
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(osga)
40ADD_SUBDIRECTORY(rot)
41ADD_SUBDIRECTORY(scale)
42ADD_SUBDIRECTORY(trans)
43ADD_SUBDIRECTORY(normals)
44ADD_SUBDIRECTORY(revisions)
45ADD_SUBDIRECTORY(view)
46ADD_SUBDIRECTORY(shadow)
47ADD_SUBDIRECTORY(terrain)
48
49############################################################
50#
51#  Main native plugins
52#
53ADD_SUBDIRECTORY(osg)
54ADD_SUBDIRECTORY(ive)
55
56############################################################
57#
58#  Viewer plugins
59#
60ADD_SUBDIRECTORY(cfg)
61
62############################################################
63#
64#  Shader plugins
65#
66ADD_SUBDIRECTORY(glsl)
67
68############################################################
69#
70#  Image plugins
71#
72ADD_SUBDIRECTORY(rgb)
73ADD_SUBDIRECTORY(bmp)
74ADD_SUBDIRECTORY(pnm)
75ADD_SUBDIRECTORY(dds)
76ADD_SUBDIRECTORY(tga)
77ADD_SUBDIRECTORY(hdr)
78ADD_SUBDIRECTORY(dot)
79ADD_SUBDIRECTORY(vtf)
80
81IF(JPEG_FOUND)
82    ADD_SUBDIRECTORY(jpeg)
83ENDIF()
84IF(JASPER_FOUND)
85    ADD_SUBDIRECTORY(jp2)
86ENDIF()
87IF(OPENEXR_FOUND)
88    ADD_SUBDIRECTORY(exr)
89ENDIF()
90IF(GIFLIB_FOUND)
91    ADD_SUBDIRECTORY(gif)
92ENDIF()
93IF(PNG_FOUND)
94    ADD_SUBDIRECTORY(png)
95ENDIF()
96IF(TIFF_FOUND)
97    ADD_SUBDIRECTORY(tiff)
98ENDIF()
99IF(GDAL_FOUND)
100    ADD_SUBDIRECTORY(gdal)
101    ADD_SUBDIRECTORY(ogr)
102ENDIF()
103
104IF(XUL_FOUND)
105    IF(WIN32 OR APPLE OR GTK_FOUND)
106        ADD_SUBDIRECTORY(gecko)
107    ENDIF()
108ENDIF()
109
110
111
112############################################################
113#
114# 3D Image plugins
115#
116IF(DCMTK_FOUND AND ZLIB_FOUND)
117    ADD_SUBDIRECTORY(dicom)
118ELSE()
119    IF(ITK_FOUND)
120        ADD_SUBDIRECTORY(dicom)
121    ENDIF()
122ENDIF()
123
124############################################################
125#
126#  3rd party 3d plugins
127#
128
129ADD_SUBDIRECTORY(3dc)
130
131ADD_SUBDIRECTORY(p3d)
132
133IF(CURL_FOUND)
134    ADD_SUBDIRECTORY(curl)
135ENDIF()
136
137IF(ZLIB_FOUND)
138    ADD_SUBDIRECTORY(gz)
139ENDIF()
140
141IF(INVENTOR_FOUND)
142    ADD_SUBDIRECTORY(Inventor)
143ENDIF()
144
145IF(OPENVRML_FOUND)
146    ADD_SUBDIRECTORY(vrml)
147ENDIF()
148
149IF(COLLADA_FOUND)
150    ADD_SUBDIRECTORY(dae)
151ENDIF()
152
153IF(FBX_FOUND)
154    ADD_SUBDIRECTORY(fbx)
155ENDIF()
156
157IF(OSG_GLU_AVAILABLE)
158    ADD_SUBDIRECTORY(lwo)
159    ADD_SUBDIRECTORY(dw)
160ENDIF()
161
162ADD_SUBDIRECTORY(bvh)
163ADD_SUBDIRECTORY(x)
164ADD_SUBDIRECTORY(dxf)
165ADD_SUBDIRECTORY(OpenFlight)
166# ADD_SUBDIRECTORY(flt)
167ADD_SUBDIRECTORY(geo)
168ADD_SUBDIRECTORY(obj)
169
170IF(PERFORMER_FOUND)
171    ADD_SUBDIRECTORY(pfb)
172ENDIF()
173
174ADD_SUBDIRECTORY(pic)
175ADD_SUBDIRECTORY(stl)
176ADD_SUBDIRECTORY(3ds)
177ADD_SUBDIRECTORY(ac)
178
179ADD_SUBDIRECTORY(logo)
180ADD_SUBDIRECTORY(lws)
181ADD_SUBDIRECTORY(md2)
182ADD_SUBDIRECTORY(osgtgz)
183ADD_SUBDIRECTORY(tgz)
184
185ADD_SUBDIRECTORY(shp)
186ADD_SUBDIRECTORY(txf)
187
188ADD_SUBDIRECTORY(bsp)
189ADD_SUBDIRECTORY(mdl)
190
191IF(OSG_CPP_EXCEPTIONS_AVAILABLE)
192    ADD_SUBDIRECTORY(ply)
193    ADD_SUBDIRECTORY(txp)
194ENDIF()
195
196IF(XINE_FOUND)
197    ADD_SUBDIRECTORY(xine)
198ENDIF()
199
200IF(FFMPEG_FOUND)
201    ADD_SUBDIRECTORY(ffmpeg)
202ENDIF()
203
204IF(DIRECTSHOW_FOUND)
205    ADD_SUBDIRECTORY(directshow)
206ENDIF()
207
208# IF(OPENAL_FOUND)
209#    ADD_SUBDIRECTORY(OpenAL)
210# ENDIF()
211
212IF(APPLE)
213    ADD_SUBDIRECTORY(imageio)
214ENDIF()
215
216IF(QUICKTIME_FOUND)
217    ADD_SUBDIRECTORY(quicktime)
218ENDIF()
219
220IF(FREETYPE_FOUND)
221    ADD_SUBDIRECTORY(freetype)
222ENDIF()
223
224IF (QT4_FOUND)
225    ADD_SUBDIRECTORY(qfont)
226ENDIF()
227
228IF(ZLIB_FOUND)
229    ADD_SUBDIRECTORY(zip)
230ENDIF()
231
232IF(RSVG_FOUND AND CAIRO_FOUND)
233    ADD_SUBDIRECTORY(svg)
234ENDIF()
235
236IF(POPPLER_FOUND AND CAIRO_FOUND)
237    ADD_SUBDIRECTORY(pdf)
238ENDIF()
239
240IF(LIBVNCSERVER_FOUND)
241    ADD_SUBDIRECTORY(vnc)
242ENDIF()
243
244##########to get all the variables of Cmake
245#GET_CMAKE_PROPERTY(MYVARS VARIABLES)
246#FOREACH(myvar ${MYVARS})
247#    FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/AllVariables.txt
248#        "${myvar} -->${${myvar}}<-\n"
249#    )
250#ENDFOREACH(myvar)
251
252
Note: See TracBrowser for help on using the browser.