CMakeLists.txt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # -*- cmake -*-
  2. project(llcharacter)
  3. include(00-Common)
  4. include(LLCommon)
  5. include(LLFilesystem)
  6. include(LLMath)
  7. include(LLPrimitive)
  8. include(LLMessage)
  9. include(LLXML)
  10. set(llcharacter_SOURCE_FILES
  11. llanimationstates.cpp
  12. llbvhloader.cpp
  13. llcharacter.cpp
  14. lleditingmotion.cpp
  15. llemote.cpp
  16. llgesture.cpp
  17. llhandmotion.cpp
  18. llheadrotmotion.cpp
  19. lljoint.cpp
  20. lljointsolverrp3.cpp
  21. llkeyframefallmotion.cpp
  22. llkeyframemotion.cpp
  23. llkeyframestandmotion.cpp
  24. llkeyframewalkmotion.cpp
  25. llmotion.cpp
  26. llmotioncontroller.cpp
  27. llmultigesture.cpp
  28. llpose.cpp
  29. lltargetingmotion.cpp
  30. llvisualparam.cpp
  31. )
  32. set(llcharacter_HEADER_FILES
  33. CMakeLists.txt
  34. llanimationstates.h
  35. llbvhloader.h
  36. llbvhconsts.h
  37. llcharacter.h
  38. lleditingmotion.h
  39. llemote.h
  40. llgesture.h
  41. llhandmotion.h
  42. llheadrotmotion.h
  43. lljoint.h
  44. lljointsolverrp3.h
  45. lljointstate.h
  46. llkeyframefallmotion.h
  47. llkeyframemotion.h
  48. llkeyframestandmotion.h
  49. llkeyframewalkmotion.h
  50. llmotion.h
  51. llmotioncontroller.h
  52. llmultigesture.h
  53. llpose.h
  54. lltargetingmotion.h
  55. llvisualparam.h
  56. )
  57. # LLIK is (at least for now) only used by the Puppetry code and this project
  58. # has been withdrawn by LL. LLIK is therefore only built when puppetry is
  59. # itself enabled at build time, which is not the case any more by default... HB
  60. if (ENABLE_PUPPETRY)
  61. list(APPEND llcharacter_SOURCE_FILES llik.cpp)
  62. list(APPEND llcharacter_HEADER_FILES llik.h)
  63. endif (ENABLE_PUPPETRY)
  64. set_source_files_properties(${llcharacter_HEADER_FILES}
  65. PROPERTIES HEADER_FILE_ONLY TRUE)
  66. list(APPEND llcharacter_SOURCE_FILES ${llcharacter_HEADER_FILES})
  67. add_library (llcharacter ${llcharacter_SOURCE_FILES})
  68. add_dependencies(llcharacter prepare)
  69. if (NOT ${CMAKE_VERSION} VERSION_LESS "3.16.0")
  70. target_precompile_headers(llcharacter PRIVATE <linden_common.h> <llfasttimer.h> <hbfastmap.h>)
  71. if (USEUNITYBUILD)
  72. set_target_properties(llcharacter PROPERTIES UNITY_BUILD ON)
  73. endif (USEUNITYBUILD)
  74. endif ()
  75. get_directory_property(ALLDEFINES COMPILE_DEFINITIONS)
  76. message("llcharacter COMPILE_DEFINITIONS = ${ALLDEFINES}")