PageRenderTime 364ms CodeModel.GetById 212ms app.highlight 11ms RepoModel.GetById 129ms app.codeStats 1ms

/indra/newview/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 2103 lines | 1917 code | 107 blank | 79 comment | 36 complexity | f012f769c9123b915d5d996dca597c53 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

   1# -*- cmake -*-
   2
   3project(viewer)
   4
   5include(00-Common)
   6include(Boost)
   7include(BuildVersion)
   8include(DBusGlib)
   9include(DirectX)
  10include(OpenSSL)
  11include(DragDrop)
  12include(EXPAT)
  13include(FMOD)
  14include(OPENAL)
  15include(FindOpenGL)
  16include(JsonCpp)
  17include(LLAudio)
  18include(LLCharacter)
  19include(LLCommon)
  20include(LLConvexDecomposition)
  21include(LLImage)
  22include(LLImageJ2COJ)
  23include(LLInventory)
  24include(LLMath)
  25include(LLMessage)
  26include(LLPlugin)
  27include(LLPrimitive)
  28include(LLRender)
  29include(LLUI)
  30include(LLVFS)
  31include(LLWindow)
  32include(LLXML)
  33include(LLXUIXML)
  34include(LScript)
  35include(Linking)
  36include(NDOF)
  37include(GooglePerfTools)
  38include(TemplateCheck)
  39include(UI)
  40include(UnixInstall)
  41include(LLKDU)
  42include(ViewerMiscLibs)
  43include(LLLogin)
  44include(GLOD)
  45include(CMakeCopyIfDifferent)
  46
  47include_directories(
  48    ${DBUSGLIB_INCLUDE_DIRS}
  49    ${JSONCPP_INCLUDE_DIRS}
  50    ${GLOD_INCLUDE_DIR}
  51    ${LLAUDIO_INCLUDE_DIRS}
  52    ${LLCHARACTER_INCLUDE_DIRS}
  53    ${LLCOMMON_INCLUDE_DIRS}
  54    ${LLCONVEXDECOMP_INCLUDE_DIRS}
  55    ${FMOD_INCLUDE_DIR}
  56    ${LLIMAGE_INCLUDE_DIRS}
  57    ${LLKDU_INCLUDE_DIRS}
  58    ${LLINVENTORY_INCLUDE_DIRS}
  59    ${LLMATH_INCLUDE_DIRS}
  60    ${LLMESSAGE_INCLUDE_DIRS}
  61    ${LLPLUGIN_INCLUDE_DIRS}
  62    ${LLPRIMITIVE_INCLUDE_DIRS}
  63    ${LLRENDER_INCLUDE_DIRS}
  64    ${LLUI_INCLUDE_DIRS}
  65    ${LLVFS_INCLUDE_DIRS}
  66    ${LLWINDOW_INCLUDE_DIRS}
  67    ${LLXML_INCLUDE_DIRS}
  68    ${LLXUIXML_INCLUDE_DIRS}
  69    ${LSCRIPT_INCLUDE_DIRS}
  70    ${LSCRIPT_INCLUDE_DIRS}/lscript_compile
  71    ${LLLOGIN_INCLUDE_DIRS}
  72    ${UPDATER_INCLUDE_DIRS}
  73    ${LIBS_PREBUILT_DIR}/include/collada
  74    ${OPENAL_LIB_INCLUDE_DIRS}
  75    ${LIBS_PREBUILT_DIR}/include/collada/1.4
  76    )
  77
  78set(viewer_SOURCE_FILES
  79    groupchatlistener.cpp
  80    llaccountingcostmanager.cpp
  81    llagent.cpp
  82    llagentaccess.cpp
  83    llagentcamera.cpp
  84    llagentdata.cpp
  85    llagentlanguage.cpp
  86    llagentlistener.cpp
  87    llagentpicksinfo.cpp
  88    llagentpilot.cpp
  89    llagentui.cpp
  90    llagentwearables.cpp
  91    llagentwearablesfetch.cpp
  92    llanimstatelabels.cpp
  93    llappearancemgr.cpp
  94    llappviewer.cpp
  95    llappviewerlistener.cpp
  96    llassetuploadqueue.cpp
  97    llassetuploadresponders.cpp
  98    llattachmentsmgr.cpp
  99    llaudiosourcevo.cpp
 100    llavataractions.cpp
 101    llavatariconctrl.cpp
 102    llavatarlist.cpp
 103    llavatarlistitem.cpp
 104    llavatarpropertiesprocessor.cpp
 105    llbox.cpp
 106    llbreadcrumbview.cpp
 107    llbrowsernotification.cpp
 108    llbuycurrencyhtml.cpp
 109    llcallbacklist.cpp
 110    llcallfloater.cpp
 111    llcallingcard.cpp
 112    llcapabilitylistener.cpp
 113    llcaphttpsender.cpp
 114    llchannelmanager.cpp
 115    llchatbar.cpp
 116    llchathistory.cpp
 117    llchatitemscontainerctrl.cpp
 118    llchatmsgbox.cpp
 119    llchiclet.cpp
 120    llchicletbar.cpp
 121    llclassifiedinfo.cpp
 122    llclassifiedstatsresponder.cpp
 123    llcofwearables.cpp
 124    llcolorswatch.cpp
 125    llcommanddispatcherlistener.cpp
 126    llcommandhandler.cpp
 127    llcommandlineparser.cpp
 128    llcompilequeue.cpp
 129    llconfirmationmanager.cpp
 130    llcurrencyuimanager.cpp
 131    llcylinder.cpp
 132    lldateutil.cpp
 133    lldaycyclemanager.cpp
 134    lldebugmessagebox.cpp
 135    lldebugview.cpp
 136    lldelayedgestureerror.cpp
 137    lldirpicker.cpp
 138    lldndbutton.cpp
 139    lldrawable.cpp
 140    lldrawpool.cpp
 141    lldrawpoolalpha.cpp
 142    lldrawpoolavatar.cpp
 143    lldrawpoolbump.cpp
 144    lldrawpoolground.cpp
 145    lldrawpoolsimple.cpp
 146    lldrawpoolsky.cpp
 147    lldrawpoolterrain.cpp
 148    lldrawpooltree.cpp
 149    lldrawpoolwater.cpp
 150    lldrawpoolwlsky.cpp
 151    lldriverparam.cpp
 152    lldynamictexture.cpp
 153    llemote.cpp
 154    llenvmanager.cpp
 155    llestateinfomodel.cpp
 156    lleventnotifier.cpp
 157    lleventpoll.cpp
 158    llexpandabletextbox.cpp
 159    llexternaleditor.cpp
 160    llface.cpp
 161    llfasttimerview.cpp
 162    llfavoritesbar.cpp
 163    llfeaturemanager.cpp
 164    llfilepicker.cpp
 165    llfilteredwearablelist.cpp
 166    llfirstuse.cpp
 167    llflexibleobject.cpp
 168    llfloaterabout.cpp
 169    llfloateranimpreview.cpp
 170    llfloaterauction.cpp
 171    llfloateravatar.cpp
 172    llfloateravatarpicker.cpp
 173    llfloateravatartextures.cpp
 174    llfloaterbeacons.cpp
 175    llfloaterbuildoptions.cpp
 176    llfloaterbulkpermission.cpp
 177    llfloaterbump.cpp
 178    llfloaterbuy.cpp
 179    llfloaterbuycontents.cpp
 180    llfloaterbuycurrency.cpp
 181    llfloaterbuycurrencyhtml.cpp
 182    llfloaterbuyland.cpp
 183    llfloatercamera.cpp
 184    llfloatercolorpicker.cpp
 185    llfloaterdeleteenvpreset.cpp
 186    llfloaterdestinations.cpp
 187    llfloaterdisplayname.cpp
 188    llfloatereditdaycycle.cpp
 189    llfloatereditsky.cpp
 190    llfloatereditwater.cpp
 191    llfloaterenvironmentsettings.cpp
 192    llfloaterevent.cpp
 193    llfloaterfonttest.cpp
 194    llfloatergesture.cpp
 195    llfloatergodtools.cpp
 196    llfloatergroupinvite.cpp
 197    llfloatergroups.cpp
 198    llfloaterhandler.cpp
 199    llfloaterhardwaresettings.cpp
 200    llfloaterhelpbrowser.cpp
 201    llfloaterhud.cpp
 202    llfloaterimagepreview.cpp
 203    llfloaterinspect.cpp
 204    llfloaterinventory.cpp
 205    llfloaterjoystick.cpp
 206    llfloaterlagmeter.cpp
 207    llfloaterland.cpp
 208    llfloaterlandholdings.cpp
 209    llfloatermap.cpp
 210    llfloatermediasettings.cpp
 211    llfloatermemleak.cpp
 212    llfloatermodelpreview.cpp
 213    llfloatermodeluploadbase.cpp
 214    llfloatermodelwizard.cpp
 215    llfloaternamedesc.cpp
 216    llfloaternotificationsconsole.cpp
 217    llfloaterobjectweights.cpp
 218    llfloateropenobject.cpp
 219    llfloateroutbox.cpp
 220    llfloaterpay.cpp
 221    llfloaterperms.cpp
 222    llfloaterpostprocess.cpp
 223    llfloaterpreference.cpp
 224    llfloaterproperties.cpp
 225    llfloaterregiondebugconsole.cpp
 226    llfloaterregioninfo.cpp
 227    llfloaterreporter.cpp
 228    llfloaterscriptdebug.cpp
 229    llfloaterscriptlimits.cpp
 230    llfloatersearch.cpp
 231    llfloatersellland.cpp
 232    llfloatersettingsdebug.cpp
 233    llfloatersidepanelcontainer.cpp
 234    llfloatersnapshot.cpp
 235    llfloatersounddevices.cpp
 236    llfloatertelehub.cpp
 237    llfloatertestinspectors.cpp
 238    llfloatertestlistview.cpp
 239    llfloatertools.cpp
 240    llfloatertopobjects.cpp
 241    llfloatertos.cpp
 242    llfloatertoybox.cpp
 243    llfloatertranslationsettings.cpp
 244    llfloateruipreview.cpp
 245    llfloaterurlentry.cpp
 246    llfloatervoiceeffect.cpp
 247    llfloaterwebcontent.cpp
 248    llfloaterwebprofile.cpp
 249    llfloaterwhitelistentry.cpp
 250    llfloaterwindowsize.cpp
 251    llfloaterworldmap.cpp
 252    llfolderview.cpp
 253    llfolderviewitem.cpp
 254    llfollowcam.cpp
 255    llfriendcard.cpp
 256    llgesturelistener.cpp
 257    llgesturemgr.cpp
 258    llgiveinventory.cpp
 259    llglsandbox.cpp
 260    llgroupactions.cpp
 261    llgroupiconctrl.cpp
 262    llgrouplist.cpp
 263    llgroupmgr.cpp
 264    llhints.cpp
 265    llhomelocationresponder.cpp
 266    llhudeffect.cpp
 267    llhudeffectbeam.cpp
 268    llhudeffectlookat.cpp
 269    llhudeffectpointat.cpp
 270    llhudeffecttrail.cpp
 271    llhudeffectblob.cpp
 272    llhudicon.cpp
 273    llhudmanager.cpp
 274    llhudnametag.cpp
 275    llhudobject.cpp
 276    llhudrender.cpp
 277    llhudtext.cpp
 278    llhudview.cpp
 279    llimfloater.cpp
 280    llimfloatercontainer.cpp
 281    llimhandler.cpp
 282    llimview.cpp
 283    llinspect.cpp
 284    llinspectavatar.cpp
 285    llinspectgroup.cpp
 286    llinspectobject.cpp
 287    llinspectremoteobject.cpp
 288    llinspecttoast.cpp
 289    llinventorybridge.cpp
 290    llinventoryclipboard.cpp
 291    llinventoryfilter.cpp
 292    llinventoryfunctions.cpp
 293    llinventoryicon.cpp
 294    llinventoryitemslist.cpp
 295    llinventorylistitem.cpp
 296    llinventorymodel.cpp
 297    llinventorymodelbackgroundfetch.cpp
 298    llinventoryobserver.cpp
 299    llinventorypanel.cpp
 300    lljoystickbutton.cpp
 301    lllandmarkactions.cpp
 302    lllandmarklist.cpp
 303    lllistbrowser.cpp
 304    lllistcontextmenu.cpp
 305    lllistview.cpp
 306    lllocaltextureobject.cpp
 307    lllocationhistory.cpp
 308    lllocationinputctrl.cpp
 309    lllogchat.cpp
 310    llloginhandler.cpp
 311    lllogininstance.cpp
 312    llmachineid.cpp
 313    llmainlooprepeater.cpp
 314    llmanip.cpp
 315    llmaniprotate.cpp
 316    llmanipscale.cpp
 317    llmaniptranslate.cpp
 318    llmarketplacefunctions.cpp
 319    llmarketplacenotifications.cpp
 320    llmediactrl.cpp
 321    llmediadataclient.cpp
 322    llmemoryview.cpp
 323    llmeshrepository.cpp
 324    llmimetypes.cpp
 325    llmorphview.cpp
 326    llmoveview.cpp
 327    llmutelist.cpp
 328    llnamebox.cpp
 329    llnameeditor.cpp
 330    llnamelistctrl.cpp
 331    llnavigationbar.cpp
 332    llnearbychat.cpp
 333    llnearbychatbar.cpp
 334    llnearbychathandler.cpp
 335    llnearbychatbarlistener.cpp
 336    llnetmap.cpp
 337    llnotificationalerthandler.cpp
 338    llnotificationgrouphandler.cpp
 339    llnotificationhandlerutil.cpp
 340    llnotificationhinthandler.cpp
 341    llnotificationmanager.cpp
 342    llnotificationofferhandler.cpp
 343    llnotificationscripthandler.cpp
 344    llnotificationstorage.cpp
 345    llnotificationtiphandler.cpp
 346    lloutfitslist.cpp
 347    lloutfitobserver.cpp
 348    lloutputmonitorctrl.cpp
 349    llpanelappearancetab.cpp
 350    llpanelavatar.cpp
 351    llpanelavatartag.cpp
 352    llpanelblockedlist.cpp
 353    llpanelclassified.cpp
 354    llpanelcontents.cpp
 355    llpaneleditwearable.cpp
 356    llpanelface.cpp
 357    llpanelgenerictip.cpp
 358    llpanelgroup.cpp
 359    llpanelgroupgeneral.cpp
 360    llpanelgroupinvite.cpp
 361    llpanelgrouplandmoney.cpp
 362    llpanelgroupnotices.cpp
 363    llpanelgrouproles.cpp
 364    llpanelhome.cpp
 365    llpanelimcontrolpanel.cpp
 366    llpanelland.cpp
 367    llpanellandaudio.cpp
 368    llpanellandmarkinfo.cpp
 369    llpanellandmarks.cpp
 370    llpanellandmedia.cpp
 371    llpanellogin.cpp
 372    llpanelloginlistener.cpp
 373    llpanelmaininventory.cpp
 374    llpanelmarketplaceinbox.cpp
 375    llpanelmarketplaceinboxinventory.cpp
 376    llpanelmarketplaceoutboxinventory.cpp
 377    llpanelmediasettingsgeneral.cpp
 378    llpanelmediasettingspermissions.cpp
 379    llpanelmediasettingssecurity.cpp
 380    llpanelme.cpp
 381    llpanelnearbymedia.cpp
 382    llpanelobject.cpp
 383    llpanelobjectinventory.cpp
 384    llpanelonlinestatus.cpp
 385    llpaneloutfitedit.cpp
 386    llpaneloutfitsinventory.cpp
 387    llpanelpeople.cpp
 388    llpanelpeoplemenus.cpp
 389    llpanelpermissions.cpp
 390    llpanelpick.cpp
 391    llpanelpicks.cpp
 392    llpanelplaceinfo.cpp
 393    llpanelplaceprofile.cpp
 394    llpanelplaces.cpp
 395    llpanelplacestab.cpp
 396    llpanelprimmediacontrols.cpp
 397    llpanelprofile.cpp
 398    llpanelsnapshot.cpp
 399    llpanelsnapshotinventory.cpp
 400    llpanelsnapshotlocal.cpp
 401    llpanelsnapshotoptions.cpp
 402    llpanelsnapshotpostcard.cpp
 403    llpanelsnapshotprofile.cpp
 404    llpanelteleporthistory.cpp
 405    llpaneltiptoast.cpp
 406    llpanelvoiceeffect.cpp
 407    llpaneltopinfobar.cpp
 408    llpanelvoicedevicesettings.cpp
 409    llpanelvolume.cpp
 410    llpanelvolumepulldown.cpp
 411    llpanelwearing.cpp
 412    llparcelselection.cpp
 413    llparticipantlist.cpp
 414    llpatchvertexarray.cpp
 415    llphysicsmotion.cpp
 416    llphysicsshapebuilderutil.cpp
 417    llplacesinventorybridge.cpp
 418    llplacesinventorypanel.cpp
 419    llpopupview.cpp
 420    llpolymesh.cpp
 421    llpolymorph.cpp
 422    llpostcard.cpp
 423    llpreview.cpp
 424    llpreviewanim.cpp
 425    llpreviewgesture.cpp
 426    llpreviewnotecard.cpp
 427    llpreviewscript.cpp
 428    llpreviewsound.cpp
 429    llpreviewtexture.cpp
 430    llproductinforequest.cpp
 431    llprogressview.cpp
 432    llrecentpeople.cpp
 433    llregioninfomodel.cpp
 434    llregionposition.cpp
 435    llremoteparcelrequest.cpp
 436    llsavedsettingsglue.cpp
 437    llsaveoutfitcombobtn.cpp
 438    llsceneview.cpp
 439    llscreenchannel.cpp
 440    llscriptfloater.cpp
 441    llscrollingpanelparam.cpp
 442    llscrollingpanelparambase.cpp
 443    llsearchcombobox.cpp
 444    llsearchhistory.cpp
 445    llsecapi.cpp
 446    llsechandler_basic.cpp
 447    llselectmgr.cpp
 448    llshareavatarhandler.cpp
 449    llsidepanelappearance.cpp
 450    llsidepanelinventory.cpp
 451    llsidepanelinventorysubpanel.cpp
 452    llsidepaneliteminfo.cpp
 453    llsidepaneltaskinfo.cpp
 454    llsidetraypanelcontainer.cpp
 455    llsky.cpp
 456    llslurl.cpp
 457    llspatialpartition.cpp
 458    llspeakers.cpp
 459    llspeakingindicatormanager.cpp
 460    llsplitbutton.cpp
 461    llsprite.cpp
 462    llstartup.cpp
 463    llstartuplistener.cpp
 464    llstatusbar.cpp
 465    llstylemap.cpp
 466    llsurface.cpp
 467    llsurfacepatch.cpp
 468    llsyswellitem.cpp
 469    llsyswellwindow.cpp
 470    llteleporthistory.cpp
 471    llteleporthistorystorage.cpp
 472    lltexglobalcolor.cpp
 473    lltexlayer.cpp
 474    lltexlayerparams.cpp
 475    lltextureatlas.cpp
 476    lltextureatlasmanager.cpp
 477    lltexturecache.cpp
 478    lltexturectrl.cpp
 479    lltexturefetch.cpp
 480    lltextureinfo.cpp
 481    lltextureinfodetails.cpp
 482    lltexturestats.cpp
 483    lltexturestatsuploader.cpp
 484    lltextureview.cpp
 485    lltoast.cpp
 486    lltoastalertpanel.cpp
 487    lltoastgroupnotifypanel.cpp
 488    lltoastimpanel.cpp
 489    lltoastnotifypanel.cpp
 490    lltoastpanel.cpp
 491    lltoastscripttextbox.cpp
 492    lltool.cpp
 493    lltoolbarview.cpp
 494    lltoolbrush.cpp
 495    lltoolcomp.cpp
 496    lltooldraganddrop.cpp
 497    lltoolface.cpp
 498    lltoolfocus.cpp
 499    lltoolgrab.cpp
 500    lltoolgun.cpp
 501    lltoolindividual.cpp
 502    lltoolmgr.cpp
 503    lltoolmorph.cpp
 504    lltoolobjpicker.cpp
 505    lltoolpie.cpp
 506    lltoolpipette.cpp
 507    lltoolplacer.cpp
 508    lltoolselect.cpp
 509    lltoolselectland.cpp
 510    lltoolselectrect.cpp
 511    lltracker.cpp
 512    lltransientdockablefloater.cpp
 513    lltransientfloatermgr.cpp
 514    lltranslate.cpp
 515    lluilistener.cpp
 516    lluploaddialog.cpp
 517    lluploadfloaterobservers.cpp
 518    llurl.cpp
 519    llurldispatcher.cpp
 520    llurldispatcherlistener.cpp
 521    llurlhistory.cpp
 522    llurllineeditorctrl.cpp
 523    llurlwhitelist.cpp
 524    llvectorperfoptions.cpp
 525    llversioninfo.cpp
 526    llviewchildren.cpp
 527    llviewerassetstats.cpp
 528    llviewerassetstorage.cpp
 529    llviewerassettype.cpp
 530    llviewerattachmenu.cpp
 531    llvieweraudio.cpp
 532    llviewercamera.cpp
 533    llviewerchat.cpp
 534    llviewercontrol.cpp
 535    llviewercontrollistener.cpp
 536    llviewerdisplay.cpp
 537    llviewerdisplayname.cpp
 538    llviewerfloaterreg.cpp
 539    llviewerfoldertype.cpp
 540    llviewergenericmessage.cpp
 541    llviewergesture.cpp
 542    llviewerhelp.cpp
 543    llviewerhelputil.cpp
 544    llviewerhome.cpp
 545    llviewerinventory.cpp
 546    llviewerjoint.cpp
 547    llviewerjointattachment.cpp
 548    llviewerjointmesh.cpp
 549    llviewerjoystick.cpp
 550    llviewerkeyboard.cpp
 551    llviewerlayer.cpp
 552    llviewermedia.cpp
 553    llviewermedia_streamingaudio.cpp
 554    llviewermediafocus.cpp
 555    llviewermenu.cpp
 556    llviewermenufile.cpp
 557    llviewermessage.cpp
 558    llviewernetwork.cpp
 559    llviewerobject.cpp
 560    llviewerobjectlist.cpp
 561    llviewerparcelmedia.cpp
 562    llviewerparcelmediaautoplay.cpp
 563    llviewerparcelmgr.cpp
 564    llviewerparceloverlay.cpp
 565    llviewerpartsim.cpp
 566    llviewerpartsource.cpp
 567    llviewerregion.cpp
 568    llviewershadermgr.cpp
 569    llviewerstats.cpp
 570    llviewerstatsrecorder.cpp
 571    llviewertexteditor.cpp
 572    llviewertexture.cpp
 573    llviewertextureanim.cpp
 574    llviewertexturelist.cpp
 575    llviewerthrottle.cpp
 576    llviewervisualparam.cpp
 577    llviewerwindow.cpp
 578    llviewerwindowlistener.cpp
 579    llvlcomposition.cpp
 580    llvlmanager.cpp
 581    llvoavatar.cpp
 582    llvoavatardefines.cpp
 583    llvoavatarself.cpp
 584    llvocache.cpp
 585    llvograss.cpp
 586    llvoground.cpp
 587    llvoicecallhandler.cpp
 588    llvoicechannel.cpp
 589    llvoiceclient.cpp
 590    llvoicevisualizer.cpp
 591    llvoicevivox.cpp
 592    llvoinventorylistener.cpp
 593    llvopartgroup.cpp
 594    llvosky.cpp
 595    llvosurfacepatch.cpp
 596    llvotree.cpp
 597    llvovolume.cpp
 598    llvowater.cpp
 599    llvowlsky.cpp
 600    llwatchdog.cpp
 601    llwaterparammanager.cpp
 602    llwaterparamset.cpp
 603    llwearable.cpp
 604    llwearableitemslist.cpp
 605    llwearablelist.cpp
 606    llwearabletype.cpp
 607    llweb.cpp
 608    llwebprofile.cpp
 609    llwebsharing.cpp
 610    llwind.cpp
 611    llwindowlistener.cpp
 612    llwlanimator.cpp
 613    llwldaycycle.cpp
 614    llwlhandlers.cpp
 615    llwlparammanager.cpp
 616    llwlparamset.cpp
 617    llworld.cpp
 618    llworldmap.cpp
 619    llworldmapmessage.cpp
 620    llworldmipmap.cpp
 621    llworldmapview.cpp
 622    llxmlrpclistener.cpp
 623    llxmlrpctransaction.cpp
 624    noise.cpp
 625    pipeline.cpp
 626    )
 627
 628set(VIEWER_BINARY_NAME "secondlife-bin" CACHE STRING
 629    "The name of the viewer executable to create.")
 630
 631set(viewer_HEADER_FILES
 632    CMakeLists.txt
 633    ViewerInstall.cmake
 634    groupchatlistener.h
 635    llaccountingcostmanager.h
 636    llagent.h
 637    llagentaccess.h
 638    llagentcamera.h
 639    llagentdata.h
 640    llagentlanguage.h
 641    llagentlistener.h
 642    llagentpicksinfo.h
 643    llagentpilot.h
 644    llagentui.h
 645    llagentwearables.h
 646    llagentwearablesfetch.h
 647    llanimstatelabels.h
 648    llappearance.h
 649    llappearancemgr.h
 650    llappviewer.h
 651    llappviewerlistener.h
 652    llassetuploadqueue.h
 653    llassetuploadresponders.h
 654    llattachmentsmgr.h
 655    llaudiosourcevo.h
 656    llavataractions.h
 657    llavatariconctrl.h
 658    llavatarlist.h
 659    llavatarlistitem.h
 660    llavatarpropertiesprocessor.h
 661    llbox.h
 662    llbreadcrumbview.h
 663    llbuycurrencyhtml.h
 664    llcallbacklist.h
 665    llcallfloater.h
 666    llcallingcard.h
 667    llcapabilitylistener.h
 668    llcapabilityprovider.h
 669    llcaphttpsender.h
 670    llchannelmanager.h
 671    llchatbar.h
 672    llchathistory.h
 673    llchatitemscontainerctrl.h
 674    llchatmsgbox.h
 675    llchiclet.h
 676    llchicletbar.h
 677    llclassifiedinfo.h
 678    llclassifiedstatsresponder.h
 679    llcofwearables.h
 680    llcolorswatch.h
 681    llcommanddispatcherlistener.h
 682    llcommandhandler.h
 683    llcommandlineparser.h
 684    llcompilequeue.h
 685    llconfirmationmanager.h
 686    llcurrencyuimanager.h
 687    llcylinder.h
 688    lldateutil.h
 689    lldaycyclemanager.h
 690    lldebugmessagebox.h
 691    lldebugview.h
 692    lldelayedgestureerror.h
 693    lldirpicker.h
 694    lldndbutton.h
 695    lldrawable.h
 696    lldrawpool.h
 697    lldrawpoolalpha.h
 698    lldrawpoolavatar.h
 699    lldrawpoolbump.h
 700    lldrawpoolground.h
 701    lldrawpoolsimple.h
 702    lldrawpoolsky.h
 703    lldrawpoolterrain.h
 704    lldrawpooltree.h
 705    lldrawpoolwater.h
 706    lldrawpoolwlsky.h
 707    lldriverparam.h
 708    lldynamictexture.h
 709    llemote.h
 710    llenvmanager.h
 711    llestateinfomodel.h
 712    lleventnotifier.h
 713    lleventpoll.h
 714    llexpandabletextbox.h
 715    llexternaleditor.h
 716    llface.h
 717    llfasttimerview.h
 718    llfavoritesbar.h
 719    llfeaturemanager.h
 720    llfilepicker.h
 721    llfilteredwearablelist.h
 722    llfirstuse.h
 723    llflexibleobject.h
 724    llfloaterabout.h
 725    llfloateranimpreview.h
 726    llfloaterauction.h
 727    llfloateravatar.h
 728    llfloateravatarpicker.h
 729    llfloateravatartextures.h
 730    llfloaterbeacons.h
 731    llfloaterbuildoptions.h
 732    llfloaterbulkpermission.h
 733    llfloaterbump.h
 734    llfloaterbuy.h
 735    llfloaterbuycontents.h
 736    llfloaterbuycurrency.h
 737    llfloaterbuycurrencyhtml.h
 738    llfloaterbuyland.h
 739    llfloatercamera.h
 740    llfloatercolorpicker.h
 741    llfloaterdeleteenvpreset.h
 742    llfloaterdestinations.h
 743    llfloaterdisplayname.h
 744    llfloatereditdaycycle.h
 745    llfloatereditsky.h
 746    llfloatereditwater.h
 747    llfloaterenvironmentsettings.h
 748    llfloaterevent.h
 749    llfloaterfonttest.h
 750    llfloatergesture.h
 751    llfloatergodtools.h
 752    llfloatergroupinvite.h
 753    llfloatergroups.h
 754    llfloaterhandler.h
 755    llfloaterhardwaresettings.h
 756    llfloaterhelpbrowser.h
 757    llfloaterhud.h
 758    llfloaterimagepreview.h
 759    llfloaterinspect.h
 760    llfloaterinventory.h
 761    llfloaterjoystick.h
 762    llfloaterlagmeter.h
 763    llfloaterland.h
 764    llfloaterlandholdings.h
 765    llfloatermap.h
 766    llfloatermediasettings.h
 767    llfloatermemleak.h
 768    llfloatermodelpreview.h
 769    llfloatermodeluploadbase.h
 770    llfloatermodelwizard.h
 771    llfloaternamedesc.h
 772    llfloaternotificationsconsole.h
 773    llfloaterobjectweights.h
 774    llfloateropenobject.h
 775    llfloateroutbox.h
 776    llfloaterpay.h
 777    llfloaterperms.h
 778    llfloaterpostprocess.h
 779    llfloaterpreference.h
 780    llfloaterproperties.h
 781    llfloaterregiondebugconsole.h
 782    llfloaterregioninfo.h
 783    llfloaterreporter.h
 784    llfloaterscriptdebug.h
 785    llfloaterscriptlimits.h
 786    llfloatersearch.h
 787    llfloatersellland.h
 788    llfloatersettingsdebug.h
 789    llfloatersidepanelcontainer.h
 790    llfloatersnapshot.h
 791    llfloatersounddevices.h
 792    llfloatertelehub.h
 793    llfloatertestinspectors.h
 794    llfloatertestlistview.h
 795    llfloatertools.h
 796    llfloatertopobjects.h
 797    llfloatertos.h
 798    llfloatertoybox.h
 799    llfloatertranslationsettings.h
 800    llfloateruipreview.h
 801    llfloaterurlentry.h
 802    llfloatervoiceeffect.h
 803    llfloaterwebcontent.h
 804    llfloaterwebprofile.h
 805    llfloaterwhitelistentry.h
 806    llfloaterwindowsize.h
 807    llfloaterworldmap.h
 808    llfolderview.h
 809    llfoldervieweventlistener.h
 810    llfolderviewitem.h
 811    llfollowcam.h
 812    llfriendcard.h
 813    llgesturelistener.h
 814    llgesturemgr.h
 815    llgiveinventory.h
 816    llgroupactions.h
 817    llgroupiconctrl.h
 818    llgrouplist.h
 819    llgroupmgr.h
 820    llhints.h
 821    llhomelocationresponder.h
 822    llhudeffect.h
 823    llhudeffectbeam.h
 824    llhudeffectlookat.h
 825    llhudeffectpointat.h
 826    llhudeffecttrail.h
 827    llhudeffectblob.h
 828    llhudicon.h
 829    llhudmanager.h
 830    llhudnametag.h
 831    llhudobject.h
 832    llhudrender.h
 833    llhudtext.h
 834    llhudview.h
 835    llimfloater.h
 836    llimfloatercontainer.h
 837    llimview.h
 838    llinspect.h
 839    llinspectavatar.h
 840    llinspectgroup.h
 841    llinspectobject.h
 842    llinspectremoteobject.h
 843    llinspecttoast.h
 844    llinventorybridge.h
 845    llinventoryclipboard.h
 846    llinventoryfilter.h
 847    llinventoryfunctions.h
 848    llinventoryicon.h
 849    llinventoryitemslist.h
 850    llinventorylistitem.h
 851    llinventorymodel.h
 852    llinventorymodelbackgroundfetch.h
 853    llinventoryobserver.h
 854    llinventorypanel.h
 855    lljoystickbutton.h
 856    lllandmarkactions.h
 857    lllandmarklist.h
 858    lllightconstants.h
 859    lllistbrowser.h
 860    lllistcontextmenu.h
 861    lllistview.h
 862    lllocaltextureobject.h
 863    lllocationhistory.h
 864    lllocationinputctrl.h
 865    lllogchat.h
 866    llloginhandler.h
 867    lllogininstance.h
 868    llmachineid.h
 869    llmainlooprepeater.h
 870    llmanip.h
 871    llmaniprotate.h
 872    llmanipscale.h
 873    llmaniptranslate.h
 874    llmarketplacefunctions.h
 875    llmarketplacenotifications.h
 876    llmediactrl.h
 877    llmediadataclient.h
 878    llmemoryview.h
 879    llmeshrepository.h
 880    llmimetypes.h
 881    llmorphview.h
 882    llmoveview.h
 883    llmutelist.h
 884    llnamebox.h
 885    llnameeditor.h
 886    llnamelistctrl.h
 887    llnavigationbar.h
 888    llnearbychat.h
 889    llnearbychatbar.h
 890    llnearbychathandler.h
 891    llnearbychatbarlistener.h
 892    llnetmap.h
 893    llnotificationhandler.h
 894    llnotificationmanager.h
 895    llnotificationstorage.h
 896    lloutfitslist.h
 897    lloutfitobserver.h
 898    lloutputmonitorctrl.h
 899    llpanelappearancetab.h
 900    llpanelavatar.h
 901    llpanelavatartag.h
 902    llpanelblockedlist.h
 903    llpanelclassified.h
 904    llpanelcontents.h
 905    llpaneleditwearable.h
 906    llpanelface.h
 907    llpanelgenerictip.h
 908    llpanelgroup.h
 909    llpanelgroupgeneral.h
 910    llpanelgroupinvite.h
 911    llpanelgrouplandmoney.h
 912    llpanelgroupnotices.h
 913    llpanelgrouproles.h
 914    llpanelhome.h
 915    llpanelimcontrolpanel.h
 916    llpanelland.h
 917    llpanellandaudio.h
 918    llpanellandmarkinfo.h
 919    llpanellandmarks.h
 920    llpanellandmedia.h
 921    llpanellogin.h
 922    llpanelloginlistener.h
 923    llpanelmaininventory.h
 924    llpanelmarketplaceinbox.h
 925    llpanelmarketplaceinboxinventory.h
 926    llpanelmarketplaceoutboxinventory.h
 927    llpanelmediasettingsgeneral.h
 928    llpanelmediasettingspermissions.h
 929    llpanelmediasettingssecurity.h
 930    llpanelme.h
 931    llpanelnearbymedia.h
 932    llpanelobject.h
 933    llpanelobjectinventory.h
 934    llpanelonlinestatus.h
 935    llpaneloutfitedit.h
 936    llpaneloutfitsinventory.h
 937    llpanelpeople.h
 938    llpanelpeoplemenus.h
 939    llpanelpermissions.h
 940    llpanelpick.h
 941    llpanelpicks.h
 942    llpanelplaceinfo.h
 943    llpanelplaceprofile.h
 944    llpanelplaces.h
 945    llpanelplacestab.h
 946    llpanelprimmediacontrols.h
 947    llpanelprofile.h
 948    llpanelsnapshot.h
 949    llpanelteleporthistory.h
 950    llpaneltiptoast.h
 951    llpanelvoicedevicesettings.h
 952    llpanelvoiceeffect.h
 953    llpaneltopinfobar.h
 954    llpanelvolume.h
 955    llpanelvolumepulldown.h
 956    llpanelwearing.h
 957    llparcelselection.h
 958    llparticipantlist.h
 959    llpatchvertexarray.h
 960    llphysicsmotion.h
 961    llphysicsshapebuilderutil.h
 962    llplacesinventorybridge.h
 963    llplacesinventorypanel.h
 964    llpolymesh.h
 965    llpolymorph.h
 966    llpopupview.h
 967    llpostcard.h
 968    llpreview.h
 969    llpreviewanim.h
 970    llpreviewgesture.h
 971    llpreviewnotecard.h
 972    llpreviewscript.h
 973    llpreviewsound.h
 974    llpreviewtexture.h
 975    llproductinforequest.h
 976    llprogressview.h
 977    llrecentpeople.h
 978    llregioninfomodel.h
 979    llregionposition.h
 980    llremoteparcelrequest.h
 981    llresourcedata.h
 982    llrootview.h
 983    llsavedsettingsglue.h
 984    llsaveoutfitcombobtn.h
 985    llsceneview.h
 986    llscreenchannel.h
 987    llscriptfloater.h
 988    llscrollingpanelparam.h
 989    llscrollingpanelparambase.h
 990    llsearchcombobox.h
 991    llsearchhistory.h
 992    llsecapi.h
 993    llsechandler_basic.h
 994    llselectmgr.h
 995    llsidepanelappearance.h
 996    llsidepanelinventory.h
 997    llsidepanelinventorysubpanel.h
 998    llsidepaneliteminfo.h
 999    llsidepaneltaskinfo.h
1000    llsidetraypanelcontainer.h
1001    llsky.h
1002    llslurl.h
1003    llspatialpartition.h
1004    llspeakers.h
1005    llspeakingindicatormanager.h
1006    llsplitbutton.h
1007    llsprite.h
1008    llstartup.h
1009    llstartuplistener.h
1010    llstatusbar.h
1011    llstylemap.h
1012    llsurface.h
1013    llsurfacepatch.h
1014    llsyswellitem.h
1015    llsyswellwindow.h
1016    lltable.h
1017    llteleporthistory.h
1018    llteleporthistorystorage.h
1019    lltexglobalcolor.h
1020    lltexlayer.h
1021    lltexlayerparams.h
1022    lltextureatlas.h
1023    lltextureatlasmanager.h
1024    lltexturecache.h
1025    lltexturectrl.h
1026    lltexturefetch.h
1027    lltextureinfo.h
1028    lltextureinfodetails.h
1029    lltexturestats.h
1030    lltexturestatsuploader.h
1031    lltextureview.h
1032    lltoast.h
1033    lltoastalertpanel.h
1034    lltoastgroupnotifypanel.h
1035    lltoastimpanel.h
1036    lltoastnotifypanel.h
1037    lltoastpanel.h
1038    lltoastscripttextbox.h
1039    lltool.h
1040    lltoolbarview.h
1041    lltoolbrush.h
1042    lltoolcomp.h
1043    lltooldraganddrop.h
1044    lltoolface.h
1045    lltoolfocus.h
1046    lltoolgrab.h
1047    lltoolgun.h
1048    lltoolindividual.h
1049    lltoolmgr.h
1050    lltoolmorph.h
1051    lltoolobjpicker.h
1052    lltoolpie.h
1053    lltoolpipette.h
1054    lltoolplacer.h
1055    lltoolselect.h
1056    lltoolselectland.h
1057    lltoolselectrect.h
1058    lltracker.h
1059    lltransientdockablefloater.h
1060    lltransientfloatermgr.h
1061    lltranslate.h
1062    lluiconstants.h
1063    lluilistener.h
1064    lluploaddialog.h
1065    lluploadfloaterobservers.h
1066    llurl.h
1067    llurldispatcher.h
1068    llurldispatcherlistener.h
1069    llurlhistory.h
1070    llurllineeditorctrl.h
1071    llurlwhitelist.h
1072    llvectorperfoptions.h
1073    llversioninfo.h
1074    llviewchildren.h
1075    llviewerassetstats.h
1076    llviewerassetstorage.h
1077    llviewerassettype.h
1078    llviewerattachmenu.h
1079    llvieweraudio.h
1080    llviewercamera.h
1081    llviewerchat.h
1082    llviewercontrol.h
1083    llviewercontrollistener.h
1084    llviewerdisplay.h
1085    llviewerdisplayname.h
1086    llviewerfloaterreg.h
1087    llviewerfoldertype.h
1088    llviewergenericmessage.h
1089    llviewergesture.h
1090    llviewerhelp.h
1091    llviewerhome.h
1092    llviewerinventory.h
1093    llviewerjoint.h
1094    llviewerjointattachment.h
1095    llviewerjointmesh.h
1096    llviewerjoystick.h
1097    llviewerkeyboard.h
1098    llviewerlayer.h
1099    llviewermedia.h
1100    llviewermediafocus.h
1101    llviewermediaobserver.h
1102    llviewermenu.h
1103    llviewermenufile.h
1104    llviewermessage.h
1105    llviewernetwork.h
1106    llviewerobject.h
1107    llviewerobjectlist.h
1108    llviewerparcelmedia.h
1109    llviewerparcelmediaautoplay.h
1110    llviewerparcelmgr.h
1111    llviewerparceloverlay.h
1112    llviewerpartsim.h
1113    llviewerpartsource.h
1114    llviewerprecompiledheaders.h
1115    llviewerregion.h
1116    llviewershadermgr.h
1117    llviewerstats.h
1118    llviewerstatsrecorder.h
1119    llviewertexteditor.h
1120    llviewertexture.h
1121    llviewertextureanim.h
1122    llviewertexturelist.h
1123    llviewerthrottle.h
1124    llviewervisualparam.h
1125    llviewerwindow.h
1126    llviewerwindowlistener.h
1127    llvlcomposition.h
1128    llvlmanager.h
1129    llvoavatar.h
1130    llvoavatardefines.h
1131    llvoavatarself.h
1132    llvocache.h
1133    llvograss.h
1134    llvoground.h
1135    llvoicechannel.h
1136    llvoiceclient.h
1137    llvoicevisualizer.h
1138    llvoicevivox.h
1139    llvoinventorylistener.h
1140    llvopartgroup.h
1141    llvosky.h
1142    llvosurfacepatch.h
1143    llvotree.h
1144    llvotreenew.h
1145    llvovolume.h
1146    llvowater.h
1147    llvowlsky.h
1148    llwatchdog.h
1149    llwaterparammanager.h
1150    llwaterparamset.h
1151    llwearable.h
1152    llwearableitemslist.h
1153    llwearablelist.h
1154    llwearabletype.h
1155    llweb.h
1156    llwebprofile.h
1157    llwebsharing.h
1158    llwind.h
1159    llwindowlistener.h
1160    llwlanimator.h
1161    llwldaycycle.h
1162    llwlhandlers.h
1163    llwlparammanager.h
1164    llwlparamset.h
1165    llworld.h
1166    llworldmap.h
1167    llworldmapmessage.h
1168    llworldmipmap.h
1169    llworldmapview.h
1170    llxmlrpclistener.h
1171    llxmlrpctransaction.h
1172    macmain.h
1173    noise.h
1174    pipeline.h
1175    VertexCache.h
1176    VorbisFramework.h
1177    )
1178
1179source_group("CMake Rules" FILES ViewerInstall.cmake)
1180
1181if (DARWIN)
1182  LIST(APPEND viewer_SOURCE_FILES llappviewermacosx.cpp)
1183
1184  find_library(AGL_LIBRARY AGL)
1185  find_library(APPKIT_LIBRARY AppKit)
1186  find_library(COCOA_LIBRARY Cocoa)
1187  find_library(IOKIT_LIBRARY IOKit)
1188  find_library(COREAUDIO_LIBRARY CoreAudio)
1189
1190  set(viewer_LIBRARIES
1191    ${COCOA_LIBRARY}
1192    ${AGL_LIBRARY}
1193    ${IOKIT_LIBRARY}
1194    ${COREAUDIO_LIBRARY}
1195    )
1196
1197  # Add resource files to the project.
1198  set(viewer_RESOURCE_FILES
1199    secondlife.icns
1200    macview.r
1201    gpu_table.txt
1202    Info-SecondLife.plist
1203    SecondLife.nib/
1204    # CMake doesn't seem to support Xcode language variants well just yet
1205    English.lproj/InfoPlist.strings
1206    English.lproj/language.txt
1207    German.lproj/language.txt
1208    Japanese.lproj/language.txt
1209    Korean.lproj/language.txt
1210    )
1211  set_source_files_properties(
1212    ${viewer_RESOURCE_FILES}
1213    PROPERTIES
1214    HEADER_FILE_ONLY TRUE
1215    #MACOSX_PACKAGE_LOCATION Resources #don't do this! this tells cmake to copy the files.
1216    )
1217  SOURCE_GROUP("Resources" FILES ${viewer_RESOURCE_FILES})
1218  list(APPEND viewer_SOURCE_FILES ${viewer_RESOURCE_FILES})
1219endif (DARWIN)
1220
1221if (LINUX)
1222    LIST(APPEND viewer_SOURCE_FILES llappviewerlinux.cpp)
1223    LIST(APPEND viewer_SOURCE_FILES llappviewerlinux_api_dbus.cpp)
1224    SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed")
1225
1226    set(viewer_LIBRARIES
1227        Xinerama
1228        )
1229endif (LINUX)
1230
1231if (WINDOWS)
1232    list(APPEND viewer_SOURCE_FILES
1233         llappviewerwin32.cpp
1234         llwindebug.cpp
1235         )
1236
1237    list(APPEND viewer_HEADER_FILES
1238         llappviewerwin32.h
1239         llwindebug.h
1240         )
1241
1242    # precompiled header configuration
1243    # llviewerprecompiledheaders.cpp generates
1244    # the .pch file.
1245    # All sources added to viewer_SOURCE_FILES
1246    # at this point use it.
1247    if(USE_PRECOMPILED_HEADERS)
1248        set_source_files_properties(llviewerprecompiledheaders.cpp
1249            PROPERTIES
1250            COMPILE_FLAGS "/Ycllviewerprecompiledheaders.h"
1251            )
1252        set(viewer_SOURCE_FILES "${viewer_SOURCE_FILES}" llviewerprecompiledheaders.cpp)
1253    endif(USE_PRECOMPILED_HEADERS)
1254
1255    # Replace the icons with the appropriate ones for the channel
1256    # ('test' is the default)
1257    set(ICON_PATH "test")
1258    string(TOLOWER ${VIEWER_CHANNEL} channel_lower)
1259    if(channel_lower MATCHES "^second life release")
1260        set(ICON_PATH "release")
1261    elseif(channel_lower MATCHES "^second life beta viewer")
1262        set(ICON_PATH "beta")
1263    elseif(channel_lower MATCHES "^second life development")
1264        set(ICON_PATH "development")
1265    elseif(channel_lower MATCHES "project")
1266        set(ICON_PATH "project")
1267    endif()
1268    message("Copying icons for ${ICON_PATH}")
1269    execute_process(
1270      COMMAND ${CMAKE_COMMAND} -E copy_if_different
1271        "${CMAKE_CURRENT_SOURCE_DIR}/icons/${ICON_PATH}/secondlife.ico"
1272        "${CMAKE_CURRENT_SOURCE_DIR}/res/ll_icon.ico"
1273      )
1274    execute_process(
1275      COMMAND ${CMAKE_COMMAND} -E copy_if_different
1276        "${CMAKE_CURRENT_SOURCE_DIR}/icons/${ICON_PATH}/secondlife_256.BMP"
1277        "${CMAKE_CURRENT_SOURCE_DIR}/res/ll_icon.BMP"
1278      )
1279    execute_process(
1280      COMMAND ${CMAKE_COMMAND} -E copy_if_different
1281        "${CMAKE_CURRENT_SOURCE_DIR}/icons/${ICON_PATH}/secondlife_256.BMP"
1282        "${CMAKE_CURRENT_SOURCE_DIR}/res-sdl/ll_icon.BMP"
1283      )
1284
1285    # Add resource files to the project.
1286    # viewerRes.rc is the only buildable file, but
1287    # the rest are all dependencies of it.
1288    set(viewer_RESOURCE_FILES
1289        res/arrow.cur
1290        res/arrowcop.cur
1291        res/arrowcopmulti.cur
1292        res/arrowdrag.cur
1293        res/circleandline.cur
1294        res/icon1.ico
1295        res/llarrow.cur
1296        res/llarrowdrag.cur
1297        res/llarrowdragmulti.cur
1298        res/llarrowlocked.cur
1299        res/llgrablocked.cur
1300        res/llno.cur
1301        res/llnolocked.cur
1302        res/lltoolcamera.cur
1303        res/lltoolcreate.cur
1304        res/lltoolfocus.cur
1305        res/lltoolgrab.cur
1306        res/lltoolland.cur
1307        res/lltoolpan.cur
1308        res/lltoolpipette.cur
1309        res/lltoolrotate.cur
1310        res/lltoolscale.cur
1311        res/lltooltranslate.cur
1312        res/lltoolzoomin.cur
1313        res/lltoolzoomout.cur
1314        res-sdl/ll_icon.BMP
1315        res/ll_icon.BMP
1316        res/ll_icon.ico
1317        res/resource.h
1318        res/toolpickobject.cur
1319        res/toolpickobject2.cur
1320        res/toolpickobject3.cur
1321        res/toolpipette.cur
1322        res/toolbuy.cur
1323        res/toolopen.cur
1324        res/toolsit.cur
1325        )
1326
1327    set_source_files_properties(${viewer_RESOURCE_FILES}
1328                                PROPERTIES HEADER_FILE_ONLY TRUE)
1329
1330    set(viewer_RESOURCE_FILES
1331        res/viewerRes.rc
1332        ${viewer_RESOURCE_FILES}
1333        )
1334
1335    SOURCE_GROUP("Resource Files" FILES ${viewer_RESOURCE_FILES})
1336
1337    if (NOT STANDALONE)
1338        list(APPEND viewer_SOURCE_FILES ${viewer_RESOURCE_FILES})
1339    endif (NOT STANDALONE)
1340
1341    find_library(DINPUT_LIBRARY dinput8 ${DIRECTX_LIBRARY_DIR})
1342    find_library(DXGUID_LIBRARY dxguid ${DIRECTX_LIBRARY_DIR})
1343    mark_as_advanced(
1344        DINPUT_LIBRARY
1345        DXGUID_LIBRARY
1346        )
1347
1348    set(viewer_LIBRARIES
1349        ${WINDOWS_LIBRARIES}
1350        comdlg32
1351        ${DINPUT_LIBRARY}
1352        ${DXGUID_LIBRARY}
1353        kernel32
1354        odbc32
1355        odbccp32
1356        ole32
1357        oleaut32
1358        opengl32
1359        shell32
1360        Vfw32
1361        winspool
1362        )
1363
1364    find_library(INTEL_MEMOPS_LIBRARY
1365                 NAMES ll_intel_memops
1366                 PATHS
1367                 optimized ${ARCH_PREBUILT_DIRS_RELEASE}
1368                 debug ${ARCH_PREBUILT_DIRS_DEBUG}
1369                 )
1370    mark_as_advanced(INTEL_MEMOPS_LIBRARY)
1371
1372    if (INTEL_MEMOPS_LIBRARY)
1373      list(APPEND viewer_LIBRARIES ${INTEL_MEMOPS_LIBRARY})
1374    endif (INTEL_MEMOPS_LIBRARY)
1375endif (WINDOWS)
1376
1377# Add the xui files. This is handy for searching for xui elements
1378# from within the IDE.
1379set(viewer_XUI_FILES
1380    skins/default/colors.xml
1381    skins/default/textures/textures.xml
1382    )
1383file(GLOB DEFAULT_XUI_FILE_GLOB_LIST
1384     ${CMAKE_CURRENT_SOURCE_DIR}/skins/*/xui/en/*.xml)
1385list(APPEND viewer_XUI_FILES ${DEFAULT_XUI_FILE_GLOB_LIST})
1386
1387file(GLOB DEFAULT_WIDGET_FILE_GLOB_LIST
1388     ${CMAKE_CURRENT_SOURCE_DIR}/skins/*/xui/en/widgets/*.xml)
1389list(APPEND viewer_XUI_FILES ${DEFAULT_WIDGET_FILE_GLOB_LIST})
1390
1391# Cannot append empty lists in CMake, wait until we have files here.
1392#file(GLOB SILVER_WIDGET_FILE_GLOB_LIST
1393#     ${CMAKE_CURRENT_SOURCE_DIR}/skins/silver/xui/en-us/widgets/*.xml)
1394#list(APPEND viewer_XUI_FILES ${SILVER_WIDGET_FILE_GLOB_LIST})
1395
1396list(SORT viewer_XUI_FILES)
1397
1398source_group("XUI Files" FILES ${viewer_XUI_FILES})
1399
1400set_source_files_properties(${viewer_XUI_FILES}
1401                            PROPERTIES HEADER_FILE_ONLY TRUE)
1402
1403list(APPEND viewer_SOURCE_FILES ${viewer_XUI_FILES})
1404
1405set(viewer_APPSETTINGS_FILES
1406    app_settings/anim.ini
1407    app_settings/cmd_line.xml
1408    app_settings/commands.xml
1409    app_settings/grass.xml
1410    app_settings/high_graphics.xml
1411    app_settings/ignorable_dialogs.xml
1412    app_settings/keys.xml
1413    app_settings/keywords.ini
1414    app_settings/logcontrol.xml
1415    app_settings/low_graphics.xml
1416    app_settings/mid_graphics.xml
1417    app_settings/settings.xml
1418    app_settings/settings_crash_behavior.xml
1419    app_settings/settings_files.xml
1420    app_settings/settings_per_account.xml
1421    app_settings/std_bump.ini
1422    app_settings/toolbars.xml
1423    app_settings/trees.xml
1424    app_settings/ultra_graphics.xml
1425    app_settings/viewerart.xml
1426    ${CMAKE_SOURCE_DIR}/../etc/message.xml
1427    ${CMAKE_SOURCE_DIR}/../scripts/messages/message_template.msg
1428    )
1429
1430source_group("App Settings" FILES ${viewer_APPSETTINGS_FILES})
1431
1432set_source_files_properties(${viewer_APPSETTINGS_FILES}
1433                            PROPERTIES HEADER_FILE_ONLY TRUE)
1434
1435list(APPEND viewer_SOURCE_FILES ${viewer_APPSETTINGS_FILES})
1436
1437set(viewer_CHARACTER_FILES
1438    character/attentions.xml
1439    character/attentionsN.xml
1440    character/avatar_lad.xml
1441    character/avatar_skeleton.xml
1442    character/genepool.xml
1443    )
1444
1445source_group("Character File" FILES ${viewer_CHARACTER_FILES})
1446
1447set_source_files_properties(${viewer_CHARACTER_FILES}
1448                            PROPERTIES HEADER_FILE_ONLY TRUE)
1449if (NOT STANDALONE)
1450    list(APPEND viewer_SOURCE_FILES ${viewer_CHARACTER_FILES})
1451endif (NOT STANDALONE)
1452
1453if (WINDOWS)
1454  file(GLOB viewer_INSTALLER_FILES installers/windows/*.nsi)
1455
1456  source_group("Installer Files" FILES ${viewer_INSTALLER_FILES})
1457
1458  set_source_files_properties(${viewer_INSTALLER_FILES}
1459                              PROPERTIES HEADER_FILE_ONLY TRUE)
1460
1461  list(APPEND viewer_SOURCE_FILES ${viewer_INSTALLER_FILES})
1462endif (WINDOWS)
1463
1464if (OPENAL)
1465  set(LLSTARTUP_COMPILE_FLAGS "${LLSTARTUP_COMPILE_FLAGS} -DLL_OPENAL")
1466endif (OPENAL)
1467
1468if (FMOD)
1469  set(LLSTARTUP_COMPILE_FLAGS "${LLSTARTUP_COMPILE_FLAGS} -DLL_FMOD")
1470
1471  if (DARWIN)
1472    set(fmodwrapper_SOURCE_FILES fmodwrapper.cpp)
1473    add_library(fmodwrapper SHARED ${fmodwrapper_SOURCE_FILES})
1474    set(fmodwrapper_needed_LIBRARIES ${FMOD_LIBRARY} ${CARBON_LIBRARY})
1475    set_target_properties(
1476      fmodwrapper
1477      PROPERTIES
1478      BUILD_WITH_INSTALL_RPATH 1
1479      INSTALL_NAME_DIR "@executable_path/../Resources"
1480      LINK_FLAGS "-unexported_symbols_list ${CMAKE_CURRENT_SOURCE_DIR}/fmod_hidden_symbols.exp"
1481      )
1482    set(FMODWRAPPER_LIBRARY fmodwrapper)
1483    target_link_libraries(fmodwrapper ${fmodwrapper_needed_LIBRARIES})
1484  else (DARWIN)
1485    # fmodwrapper unnecessary on linux or windows
1486    set(FMODWRAPPER_LIBRARY ${FMOD_LIBRARY})
1487  endif (DARWIN)
1488endif (FMOD)
1489
1490set_source_files_properties(llstartup.cpp PROPERTIES COMPILE_FLAGS "${LLSTARTUP_COMPILE_FLAGS}")
1491
1492list(APPEND viewer_SOURCE_FILES ${viewer_HEADER_FILES})
1493
1494set_source_files_properties(${viewer_HEADER_FILES}
1495                            PROPERTIES HEADER_FILE_ONLY TRUE)
1496
1497add_executable(${VIEWER_BINARY_NAME}
1498    WIN32
1499    MACOSX_BUNDLE
1500    ${viewer_SOURCE_FILES}
1501    )
1502
1503# add package files
1504file(GLOB EVENT_HOST_SCRIPT_GLOB_LIST
1505     ${CMAKE_CURRENT_SOURCE_DIR}/../viewer_components/*.py)
1506list(APPEND EVENT_HOST_SCRIPTS ${EVENT_HOST_SCRIPT_GLOB_LIST})
1507
1508set(PACKAGE ON CACHE BOOL
1509    "Add a package target that builds an installer package.")
1510
1511if (WINDOWS)
1512    set_target_properties(${VIEWER_BINARY_NAME}
1513        PROPERTIES
1514        # *TODO -reenable this once we get server usage sorted out
1515        #LINK_FLAGS "/debug /NODEFAULTLIB:LIBCMT /SUBSYSTEM:WINDOWS /INCLUDE:\"__tcmalloc\""
1516        LINK_FLAGS "/debug /NODEFAULTLIB:LIBCMT /SUBSYSTEM:WINDOWS /INCLUDE:__tcmalloc"
1517        LINK_FLAGS_DEBUG "/NODEFAULTLIB:\"LIBCMT;LIBCMTD;MSVCRT\" /INCREMENTAL:NO"
1518        LINK_FLAGS_RELEASE ""
1519        )
1520    if(USE_PRECOMPILED_HEADERS)
1521        set_target_properties(
1522            ${VIEWER_BINARY_NAME}
1523            PROPERTIES
1524            COMPILE_FLAGS "/Yullviewerprecompiledheaders.h"
1525            )
1526    endif(USE_PRECOMPILED_HEADERS)
1527
1528    # If adding a file to viewer_manifest.py in the WindowsManifest.construct() method, be sure to add the dependency
1529    # here.
1530    # *NOTE:Mani - This is a crappy hack to have important dependencies for the viewer_manifest copy action
1531    # be met. I'm looking forward to a source-code split-up project next year that will address this kind of thing.
1532    # In the meantime, if you have any ideas on how to easily maintain one list, either here or in viewer_manifest.py
1533    # and have the build deps get tracked *please* tell me about it.
1534
1535    if(USE_GOOGLE_PERFTOOLS)
1536      # Configure a var for tcmalloc location, if used.
1537      # Note the need to specify multiple names explicitly.
1538      set(GOOGLE_PERF_TOOLS_SOURCE
1539        ${SHARED_LIB_STAGING_DIR}/Release/libtcmalloc_minimal.dll
1540        ${SHARED_LIB_STAGING_DIR}/RelWithDebInfo/libtcmalloc_minimal.dll
1541        ${SHARED_LIB_STAGING_DIR}/Debug/libtcmalloc_minimal-debug.dll
1542        )
1543     endif(USE_GOOGLE_PERFTOOLS)
1544
1545
1546    set(COPY_INPUT_DEPENDENCIES
1547      # The following commented dependencies are determined at variably at build time. Can't do this here.
1548      #${SHARED_LIB_STAGING_DIR}/${CMAKE_CFG_INTDIR}/libtcmalloc_minimal.dll => None ... Skipping libtcmalloc_minimal.dll
1549      ${CMAKE_SOURCE_DIR}/../etc/message.xml
1550      ${CMAKE_SOURCE_DIR}/../scripts/messages/message_template.msg
1551      ${SHARED_LIB_STAGING_DIR}/${CMAKE_CFG_INTDIR}/llcommon.dll
1552      ${SHARED_LIB_STAGING_DIR}/${CMAKE_CFG_INTDIR}/libapr-1.dll
1553      ${SHARED_LIB_STAGING_DIR}/${CMAKE_CFG_INTDIR}/libaprutil-1.dll
1554      ${SHARED_LIB_STAGING_DIR}/${CMAKE_CFG_INTDIR}/libapriconv-1.dll
1555      ${SHARED_LIB_STAGING_DIR}/Release/glod.dll
1556      ${SHARED_LIB_STAGING_DIR}/RelWithDebInfo/glod.dll
1557      ${SHARED_LIB_STAGING_DIR}/Debug/glod.dll
1558      ${SHARED_LIB_STAGING_DIR}/Release/libcollada14dom22.dll
1559      ${SHARED_LIB_STAGING_DIR}/RelWithDebInfo/libcollada14dom22.dll
1560      ${SHARED_LIB_STAGING_DIR}/Debug/libcollada14dom22-d.dll
1561      ${SHARED_LIB_STAGING_DIR}/Release/openjpeg.dll
1562      ${SHARED_LIB_STAGING_DIR}/RelWithDebInfo/openjpeg.dll
1563      ${SHARED_LIB_STAGING_DIR}/Debug/openjpegd.dll
1564      ${SHARED_LIB_STAGING_DIR}/Release/fmod.dll
1565      ${SHARED_LIB_STAGING_DIR}/RelWithDebInfo/fmod.dll
1566      ${SHARED_LIB_STAGING_DIR}/Debug/fmod.dll
1567      ${SHARED_LIB_STAGING_DIR}/Release/msvcr100.dll
1568      ${SHARED_LIB_STAGING_DIR}/Release/msvcp100.dll
1569      ${SHARED_LIB_STAGING_DIR}/RelWithDebInfo/msvcr100.dll
1570      ${SHARED_LIB_STAGING_DIR}/RelWithDebInfo/msvcp100.dll
1571      ${SHARED_LIB_STAGING_DIR}/Debug/msvcr100d.dll
1572      ${SHARED_LIB_STAGING_DIR}/Debug/msvcp100d.dll
1573      ${SHARED_LIB_STAGING_DIR}/${CMAKE_CFG_INTDIR}/SLVoice.exe
1574      ${SHARED_LIB_STAGING_DIR}/${CMAKE_CFG_INTDIR}/vivoxsdk.dll
1575      ${SHARED_LIB_STAGING_DIR}/${CMAKE_CFG_INTDIR}/ortp.dll
1576      ${SHARED_LIB_STAGING_DIR}/${CMAKE_CFG_INTDIR}/libsndfile-1.dll
1577      ${SHARED_LIB_STAGING_DIR}/${CMAKE_CFG_INTDIR}/zlib1.dll
1578      ${SHARED_LIB_STAGING_DIR}/${CMAKE_CFG_INTDIR}/vivoxplatform.dll
1579      ${SHARED_LIB_STAGING_DIR}/${CMAKE_CFG_INTDIR}/vivoxoal.dll
1580      ${GOOGLE_PERF_TOOLS_SOURCE}
1581      ${CMAKE_CURRENT_SOURCE_DIR}/licenses-win32.txt
1582      ${CMAKE_CURRENT_SOURCE_DIR}/featuretable.txt
1583      ${CMAKE_CURRENT_SOURCE_DIR}/featuretable_xp.txt
1584      ${ARCH_PREBUILT_DIRS_RELEASE}/libeay32.dll
1585      ${ARCH_PREBUILT_DIRS_RELEASE}/qtcore4.dll
1586      ${ARCH_PREBUILT_DIRS_RELEASE}/qtgui4.dll
1587      ${ARCH_PREBUILT_DIRS_RELEASE}/qtnetwork4.dll
1588      ${ARCH_PREBUILT_DIRS_RELEASE}/qtopengl4.dll
1589      ${ARCH_PREBUILT_DIRS_RELEASE}/qtwebkit4.dll
1590      ${ARCH_PREBUILT_DIRS_RELEASE}/qtxmlpatterns4.dll
1591      ${ARCH_PREBUILT_DIRS_RELEASE}/ssleay32.dll
1592      ${ARCH_PREBUILT_DIRS_RELEASE}/imageformats/qgif4.dll
1593      ${ARCH_PREBUILT_DIRS_RELEASE}/imageformats/qico4.dll
1594      ${ARCH_PREBUILT_DIRS_RELEASE}/imageformats/qjpeg4.dll
1595      ${ARCH_PREBUILT_DIRS_RELEASE}/imageformats/qmng4.dll
1596      ${ARCH_PREBUILT_DIRS_RELEASE}/imageformats/qsvg4.dll
1597      ${ARCH_PREBUILT_DIRS_RELEASE}/imageformats/qtiff4.dll
1598      ${ARCH_PREBUILT_DIRS_RELEASE}/codecs/qcncodecs4.dll
1599      ${ARCH_PREBUILT_DIRS_RELEASE}/codecs/qjpcodecs4.dll
1600      ${ARCH_PREBUILT_DIRS_RELEASE}/codecs/qkrcodecs4.dll
1601      ${ARCH_PREBUILT_DIRS_RELEASE}/codecs/qtwcodecs4.dll
1602      ${ARCH_PREBUILT_DIRS_DEBUG}/libeay32.dll
1603      ${ARCH_PREBUILT_DIRS_DEBUG}/qtcored4.dll
1604      ${ARCH_PREBUILT_DIRS_DEBUG}/qtguid4.dll
1605      ${ARCH_PREBUILT_DIRS_DEBUG}/qtnetworkd4.dll
1606      ${ARCH_PREBUILT_DIRS_DEBUG}/qtopengld4.dll
1607      ${ARCH_PREBUILT_DIRS_DEBUG}/qtwebkitd4.dll
1608      ${ARCH_PREBUILT_DIRS_DEBUG}/qtxmlpatternsd4.dll
1609      ${ARCH_PREBUILT_DIRS_DEBUG}/ssleay32.dll
1610      ${ARCH_PREBUILT_DIRS_DEBUG}/imageformats/qgifd4.dll
1611      ${ARCH_PREBUILT_DIRS_DEBUG}/imageformats/qicod4.dll
1612      ${ARCH_PREBUILT_DIRS_DEBUG}/imageformats/qjpegd4.dll
1613      ${ARCH_PREBUILT_DIRS_DEBUG}/imageformats/qmngd4.dll
1614      ${ARCH_PREBUILT_DIRS_DEBUG}/imageformats/qsvgd4.dll
1615      ${ARCH_PREBUILT_DIRS_DEBUG}/imageformats/qtiffd4.dll
1616      ${ARCH_PREBUILT_DIRS_RELEASE}/codecs/qcncodecsd4.dll
1617      ${ARCH_PREBUILT_DIRS_RELEASE}/codecs/qjpcodecsd4.dll
1618      ${ARCH_PREBUILT_DIRS_RELEASE}/codecs/qkrcodecsd4.dll
1619      ${ARCH_PREBUILT_DIRS_RELEASE}/codecs/qtwcodecsd4.dll
1620      SLPlugin
1621      media_plugin_quicktime
1622      media_plugin_webkit
1623      winmm_shim
1624      windows-crash-logger
1625      windows-updater
1626      )
1627
1628    add_custom_command(
1629      OUTPUT  ${CMAKE_CFG_INTDIR}/copy_touched.bat
1630      COMMAND ${PYTHON_EXECUTABLE}
1631      ARGS
1632        ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
1633        --actions=copy
1634        --artwork=${ARTWORK_DIR}
1635        --build=${CMAKE_CURRENT_BINARY_DIR}
1636        --buildtype=${CMAKE_BUILD_TYPE}
1637        --configuration=${CMAKE_CFG_INTDIR}
1638        --dest=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}
1639        --grid=${GRID}
1640        --source=${CMAKE_CURRENT_SOURCE_DIR}
1641        --touch=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/copy_touched.bat
1642      DEPENDS
1643        ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
1644        stage_third_party_libs
1645        ${COPY_INPUT_DEPENDENCIES}
1646      COMMENT "Performing viewer_manifest copy"
1647      )
1648
1649    add_custom_target(copy_w_viewer_manifest ALL DEPENDS ${CMAKE_CFG_INTDIR}/copy_touched.bat)
1650
1651    add_dependencies(${VIEWER_BINARY_NAME} stage_third_party_libs llcommon copy_w_viewer_manifest)
1652
1653    if (EXISTS ${CMAKE_SOURCE_DIR}/copy_win_scripts)
1654      add_dependencies(${VIEWER_BINARY_NAME} copy_win_scripts)
1655    endif (EXISTS ${CMAKE_SOURCE_DIR}/copy_win_scripts)
1656
1657    add_dependencies(${VIEWER_BINARY_NAME}
1658      SLPlugin
1659      windows-updater
1660      windows-crash-logger
1661      )
1662
1663    # sets the 'working directory' for debugging from visual studio.
1664    if (NOT UNATTENDED)
1665        add_custom_command(
1666            TARGET ${VIEWER_BINARY_NAME} POST_BUILD
1667            COMMAND ${CMAKE_SOURCE_DIR}/tools/vstool/vstool.exe
1668            ARGS
1669              --solution
1670              ${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}.sln
1671              --workingdir
1672              ${VIEWER_BINARY_NAME}
1673              "${CMAKE_CURRENT_SOURCE_DIR}"
1674            COMMENT "Setting the ${VIEWER_BINARY_NAME} working directory for debugging."
1675            )
1676    endif (NOT UNATTENDED)
1677
1678    if (PACKAGE)
1679      add_custom_command(
1680        OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/event_host.tar.bz2
1681        COMMAND ${PYTHON_EXECUTABLE}
1682        ARGS
1683          ${CMAKE_CURRENT_SOURCE_DIR}/event_host_manifest.py
1684          ${CMAKE_CURRENT_SOURCE_DIR}/..
1685          ${CMAKE_CURRENT_BINARY_DIR}
1686          ${CMAKE_CFG_INTDIR}
1687        DEPENDS
1688          lleventhost
1689          ${EVENT_HOST_SCRIPTS}
1690          ${CMAKE_CURRENT_SOURCE_DIR}/event_host_manifest.py
1691        )
1692
1693      add_custom_command(
1694        OUTPUT ${CMAKE_CFG_INTDIR}/touched.bat
1695        COMMAND ${PYTHON_EXECUTABLE}
1696        ARGS
1697          ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
1698          --artwork=${ARTWORK_DIR}
1699          --build=${CMAKE_CURRENT_BINARY_DIR}
1700          --buildtype=${CMAKE_BUILD_TYPE}
1701          --channel=${VIEWER_CHANNEL}
1702          --configuration=${CMAKE_CFG_INTDIR}
1703          --dest=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}
1704          --grid=${GRID}
1705          --login_channel=${VIEWER_LOGIN_CHANNEL}
1706          --source=${CMAKE_CURRENT_SOURCE_DIR}
1707          --touch=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/touched.bat
1708        DEPENDS
1709            ${VIEWER_BINARY_NAME}
1710            ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
1711            ${COPY_INPUT_DEPENDENCIES}
1712        )
1713
1714      add_custom_target(package ALL DEPENDS
1715        ${CMAKE_CFG_INTDIR}/touched.bat
1716        windows-setup-build-all
1717        )
1718        # temporarily disable packaging of event_host until hg subrepos get
1719        # sorted out on the parabuild cluster...
1720        #${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/event_host.tar.bz2)
1721
1722    endif (PACKAGE)
1723endif (WINDOWS)
1724
1725# *NOTE - this list is very sensitive to ordering, test carefully on all
1726# platforms if you change the releative order of the entries here.
1727# In particular, cmake 2.6.4 (when buidling with linux/makefile generators)
1728# appears to sometimes de-duplicate redundantly listed dependencies improperly.
1729# To work around this, higher level modules should be listed before the modules
1730# that they depend upon. -brad
1731target_link_libraries(${VIEWER_BINARY_NAME}
1732    ${UPDATER_LIBRARIES}
1733    ${GOOGLE_PERFTOOLS_LIBRARIES}
1734    ${LLAUDIO_LIBRARIES}
1735    ${LLCHARACTER_LIBRARIES}
1736    ${LLIMAGE_LIBRARIES}
1737    ${LLINVENTORY_LIBRARIES}
1738    ${LLMESSAGE_LIBRARIES}
1739    ${LLPLUGIN_LIBRARIES}
1740    ${LLPRIMITIVE_LIBRARIES}
1741    ${LLRENDER_LIBRARIES}
1742    ${FREETYPE_LIBRARIES}
1743    ${LLUI_LIBRARIES}
1744    ${LLVFS_LIBRARIES}
1745    ${LLWINDOW_LIBRARIES}
1746    ${LLXML_LIBRARIES}
1747    ${LLXUIXML_LIBRARIES}
1748    ${LSCRIPT_LIBRARIES}
1749    ${LLMATH_LIBRARIES}
1750    ${LLCOMMON_LIBRARIES}
1751    ${NDOF_LIBRARY}
1752    ${viewer_LIBRARIES}
1753    ${BOOST_PROGRAM_OPTIONS_LIBRARY}
1754    ${BOOST_REGEX_LIBRARY}
1755    ${DBUSGLIB_LIBRARIES}
1756    ${OPENGL_LIBRARIES}
1757    ${FMODWRAPPER_LIBRARY} # must come after LLAudio
1758    ${GLOD_LIBRARIES}
1759    ${OPENGL_LIBRARIES}
1760    ${JSONCPP_LIBRARIES}
1761    ${SDL_LIBRARY}
1762    ${SMARTHEAP_LIBRARY}
1763    ${UI_LIBRARIES}
1764    ${WINDOWS_LIBRARIES}
1765    ${EXPAT_LIBRARIES}
1766    ${XMLRPCEPI_LIBRARIES}
1767    ${OPENSSL_LIBRARIES}
1768    ${CRYPTO_LIBRARIES}
1769    ${LLLOGIN_LIBRARIES}
1770    ${LLCONVEXDECOMP_LIBRARY}
1771    ${TCMALLOC_LIBRARIES}
1772    )
1773
1774if (USE_KDU)
1775    target_link_libraries(${VIEWER_BINARY_NAME}
1776        ${LLKDU_LIBRARIES}
1777        ${KDU_LIBRARY}
1778        )
1779else (USE_KDU)
1780    target_link_libraries(${VIEWER_BINARY_NAME}
1781        ${LLIMAGEJ2COJ_LIBRARIES}
1782        )
1783endif (USE_KDU)
1784
1785build_version(viewer)
1786
1787set(ARTWORK_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH
1788    "Path to artwork files.")
1789
1790
1791if (LINUX)
1792  set(product SecondLife-${ARCH}-${viewer_VERSION})
1793
1794  # These are the generated targets that are copied to package/
1795  set(COPY_INPUT_DEPENDENCIES
1796    ${VIEWER_BINARY_NAME}
1797    linux-crash-logger
1798    linux-updater
1799    SLPlugin
1800    media_plugin_webkit
1801    media_plugin_gstreamer010
1802    llcommon
1803    )
1804
1805  add_custom_command(
1806      OUTPUT ${product}.tar.bz2
1807      COMMAND ${PYTHON_EXECUTABLE}
1808      ARGS
1809

Large files files are truncated, but you can click here to view the full file