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

Revision 10013, 4.4 kB (checked in by robert, 6 years ago)

Added ply entry

  • 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
[9949]9IF(NOT DYNAMIC_OPENSCENEGRAPH)
[9336]10    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
[9949]11ENDIF()
[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}")
[9949]16ENDIF()
[6320]17
[7537]18SET(CMAKE_SHARED_MODULE_PREFIX ${OSG_PLUGIN_PREFIX})
[6320]19
[7629]20IF(MSVC80)
[9949]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()
[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)
[9949]89ENDIF()
[7119]90IF(JASPER_FOUND)
[9030]91    ADD_SUBDIRECTORY(jp2)
[9949]92ENDIF()
[9261]93IF(OPENEXR_FOUND)
[9274]94    ADD_SUBDIRECTORY(exr)
[9949]95ENDIF()
[7119]96IF(GIFLIB_FOUND)
[9030]97    ADD_SUBDIRECTORY(gif)
[9949]98ENDIF()
[7119]99IF(PNG_FOUND)
[7364]100    ADD_SUBDIRECTORY(png)
[9949]101ENDIF()
[7119]102IF(TIFF_FOUND)
[7364]103    ADD_SUBDIRECTORY(tiff)
[9949]104ENDIF()
[7196]105IF(GDAL_FOUND)
[7364]106    ADD_SUBDIRECTORY(gdal)
[7827]107    ADD_SUBDIRECTORY(ogr)
[9949]108ENDIF()
[6609]109
[9188]110IF(XUL_FOUND)
[9949]111    IF(WIN32 OR APPLE OR GTK_FOUND)
[9188]112        ADD_SUBDIRECTORY(gecko)
[9949]113    ENDIF()
114ENDIF()
[9188]115
116
117
[7119]118############################################################
119#
[8782]120# 3D Image plugins
121#
[9949]122IF(DCMTK_FOUND AND ZLIB_FOUND)
[8782]123    ADD_SUBDIRECTORY(dicom)
[9949]124ELSE()
125    IF(ITK_FOUND)
[9490]126        ADD_SUBDIRECTORY(dicom)
[9949]127    ENDIF()
128ENDIF()
[9490]129
[8782]130############################################################
131#
[7119]132#  3rd party 3d plugins
133#
[6609]134
[7119]135ADD_SUBDIRECTORY(3dc)
[6320]136
[9304]137IF(CURL_FOUND)
138    ADD_SUBDIRECTORY(curl)
[9949]139ENDIF()
[9304]140
141IF(ZLIB_FOUND)
142    ADD_SUBDIRECTORY(gz)
[9949]143ENDIF()
[9304]144
[7119]145IF(INVENTOR_FOUND)
[7364]146    ADD_SUBDIRECTORY(Inventor)
[9949]147ENDIF()
[6607]148
[7119]149IF(OPENVRML_FOUND)
[7364]150    ADD_SUBDIRECTORY(vrml)
[9949]151ENDIF()
[6320]152
[7119]153IF(COLLADA_FOUND)
[7364]154    ADD_SUBDIRECTORY(dae)
[9949]155ENDIF()
[6507]156
[7119]157ADD_SUBDIRECTORY(lwo)
[9304]158ADD_SUBDIRECTORY(bvh)
[7119]159ADD_SUBDIRECTORY(x)
160ADD_SUBDIRECTORY(dw)
[10013]161ADD_SUBDIRECTORY(ply)
[7119]162ADD_SUBDIRECTORY(dxf)
163ADD_SUBDIRECTORY(OpenFlight)
[9139]164# ADD_SUBDIRECTORY(flt)
[7119]165ADD_SUBDIRECTORY(geo)
166ADD_SUBDIRECTORY(obj)
[6320]167
[7119]168IF(PERFORMER_FOUND)
169    ADD_SUBDIRECTORY(pfb)
[9949]170ENDIF()
[6320]171
[7119]172ADD_SUBDIRECTORY(pic)
173ADD_SUBDIRECTORY(stl)
174ADD_SUBDIRECTORY(3ds)
175ADD_SUBDIRECTORY(ac)
[6320]176
[7119]177ADD_SUBDIRECTORY(logo)
178ADD_SUBDIRECTORY(lws)
179ADD_SUBDIRECTORY(md2)
180ADD_SUBDIRECTORY(osgtgz)
181ADD_SUBDIRECTORY(tgz)
[6320]182
[7119]183ADD_SUBDIRECTORY(txp)
184ADD_SUBDIRECTORY(shp)
185ADD_SUBDIRECTORY(txf)
[6320]186
[9425]187ADD_SUBDIRECTORY(bsp)
188ADD_SUBDIRECTORY(mdl)
189
[7119]190IF(XINE_FOUND)
191    ADD_SUBDIRECTORY(xine)
[9949]192ENDIF()
[6375]193
[9817]194IF(FFMPEG_FOUND)
195    ADD_SUBDIRECTORY(ffmpeg)
[9949]196ENDIF()
[9817]197
[9855]198# IF(OPENAL_FOUND)
199#    ADD_SUBDIRECTORY(OpenAL)
[9949]200# ENDIF()
[9847]201
[9880]202IF(APPLE)
203    ADD_SUBDIRECTORY(imageio)
[9949]204ENDIF()
[9880]205
[7119]206IF(QUICKTIME_FOUND)
207    ADD_SUBDIRECTORY(quicktime)
[9949]208ENDIF()
[6375]209
[7119]210IF(FREETYPE_FOUND)
[9030]211    ADD_SUBDIRECTORY(freetype)
[9949]212ENDIF()
213
[7119]214IF(ZLIB_FOUND)
215    ADD_SUBDIRECTORY(zip)
[9949]216ENDIF()
[7119]217
[8303]218IF(RSVG_FOUND AND CAIRO_FOUND)
[8302]219    ADD_SUBDIRECTORY(svg)
[9949]220ENDIF()
[7119]221
[9949]222IF(POPPLER_FOUND AND CAIRO_FOUND)
[9319]223    ADD_SUBDIRECTORY(pdf)
[9949]224ENDIF()
[7119]225
[9949]226IF(LIBVNCSERVER_FOUND)
[9089]227    ADD_SUBDIRECTORY(vnc)
[9949]228ENDIF()
[8588]229
[6320]230##########to get all the variables of Cmake
[6375]231#GET_CMAKE_PROPERTY(MYVARS VARIABLES)
232#FOREACH(myvar ${MYVARS})
[7364]233#    FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/AllVariables.txt
234#        "${myvar} -->${${myvar}}<-\n"
235#    )
[6375]236#ENDFOREACH(myvar)
[6320]237
[9030]238
Note: See TracBrowser for help on using the browser.