CMakeLists.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # -*- cmake -*-
  2. project(llappearance)
  3. include(00-Common)
  4. include(LLCommon)
  5. include(LLCharacter)
  6. include(LLFilesystem)
  7. include(LLImage)
  8. include(LLInventory)
  9. include(LLMath)
  10. include(LLMessage)
  11. include(LLPrimitive)
  12. include(LLRender)
  13. include(LLWindow)
  14. include(LLXML)
  15. set(llappearance_SOURCE_FILES
  16. llavatarappearance.cpp
  17. llavatarjoint.cpp
  18. llavatarjointmesh.cpp
  19. lldriverparam.cpp
  20. lllocaltextureobject.cpp
  21. llpolyskeletaldistortion.cpp
  22. llpolymesh.cpp
  23. llpolymorph.cpp
  24. lltexglobalcolor.cpp
  25. lltexlayer.cpp
  26. lltexlayerparams.cpp
  27. lltexturemanagerbridge.cpp
  28. llwearable.cpp
  29. llwearabledata.cpp
  30. llwearabletype.cpp
  31. llviewervisualparam.cpp
  32. llavatarappearancedefines.cpp
  33. )
  34. set(llappearance_HEADER_FILES
  35. CMakeLists.txt
  36. llavatarappearance.h
  37. llavatarjoint.h
  38. llavatarjointmesh.h
  39. lldriverparam.h
  40. lllocaltextureobject.h
  41. llpolyskeletaldistortion.h
  42. llpolymesh.h
  43. llpolymorph.h
  44. lltexglobalcolor.h
  45. lltexlayer.h
  46. lltexlayerparams.h
  47. lltexturemanagerbridge.h
  48. llwearable.h
  49. llwearabledata.h
  50. llwearabletype.h
  51. llviewervisualparam.h
  52. llavatarappearancedefines.h
  53. )
  54. set_source_files_properties(${llappearance_HEADER_FILES}
  55. PROPERTIES HEADER_FILE_ONLY TRUE)
  56. list(APPEND llappearance_SOURCE_FILES ${llappearance_HEADER_FILES})
  57. add_library (llappearance ${llappearance_SOURCE_FILES})
  58. add_dependencies(llappearance prepare)
  59. target_link_libraries(llappearance
  60. ${LLCHARACTER_LIBRARIES}
  61. ${LLINVENTORY_LIBRARIES}
  62. ${LLIMAGE_LIBRARIES}
  63. ${LLRENDER_LIBRARIES}
  64. ${LLFILESYSTEM_LIBRARIES}
  65. ${LLXML_LIBRARIES}
  66. ${LLMATH_LIBRARIES}
  67. )
  68. if (NOT ${CMAKE_VERSION} VERSION_LESS "3.16.0")
  69. target_precompile_headers(llappearance PRIVATE <linden_common.h> <lljoint.h> <hbfastmap.h>)
  70. if (USEUNITYBUILD)
  71. set_target_properties(llappearance PROPERTIES UNITY_BUILD ON)
  72. endif (USEUNITYBUILD)
  73. endif ()
  74. get_directory_property(ALLDEFINES COMPILE_DEFINITIONS)
  75. message("llappearance COMPILE_DEFINITIONS = ${ALLDEFINES}")