CMakeLists.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # -*- cmake -*-
  2. project(llinventory)
  3. include(00-Common)
  4. include(LLCommon)
  5. include(LLMath)
  6. include(LLMessage)
  7. include(LLPrimitive)
  8. include(LLXML)
  9. set(llinventory_SOURCE_FILES
  10. llcategory.cpp
  11. lleconomy.cpp
  12. llfoldertype.cpp
  13. llinventory.cpp
  14. llinventorytype.cpp
  15. lllandmark.cpp
  16. llnotecard.cpp
  17. llparcel.cpp
  18. llpermissions.cpp
  19. llsaleinfo.cpp
  20. llscriptpermissions.cpp
  21. llsettingsbase.cpp
  22. llsettingsdaycycle.cpp
  23. llsettingssky.cpp
  24. llsettingstype.cpp
  25. llsettingswater.cpp
  26. lltransactionflags.cpp
  27. )
  28. set(llinventory_HEADER_FILES
  29. CMakeLists.txt
  30. llcategory.h
  31. lleconomy.h
  32. llfoldertype.h
  33. llinventory.h
  34. llinventorytype.h
  35. lllandmark.h
  36. llnotecard.h
  37. llparcel.h
  38. llparcelflags.h
  39. llpermissions.h
  40. llpermissionsflags.h
  41. llregionhandle.h
  42. llsaleinfo.h
  43. llscriptpermissions.h
  44. llsettingsbase.h
  45. llsettingsdaycycle.h
  46. llsettingssky.h
  47. llsettingstype.h
  48. llsettingswater.h
  49. lltransactionflags.h
  50. lltransactiontypes.h
  51. lluserrelations.h
  52. )
  53. set_source_files_properties(${llinventory_HEADER_FILES}
  54. PROPERTIES HEADER_FILE_ONLY TRUE)
  55. list(APPEND llinventory_SOURCE_FILES ${llinventory_HEADER_FILES})
  56. add_library (llinventory ${llinventory_SOURCE_FILES})
  57. add_dependencies(llinventory prepare)
  58. if (NOT ${CMAKE_VERSION} VERSION_LESS "3.16.0")
  59. target_precompile_headers(llinventory PRIVATE <linden_common.h> <hbfastmap.h>)
  60. if (USEUNITYBUILD)
  61. set_target_properties(llinventory PROPERTIES UNITY_BUILD ON)
  62. endif (USEUNITYBUILD)
  63. endif ()
  64. get_directory_property(ALLDEFINES COMPILE_DEFINITIONS)
  65. message("llinventory COMPILE_DEFINITIONS = ${ALLDEFINES}")