CMakeLists.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # -*- cmake -*-
  2. project(llmath)
  3. include(00-Common)
  4. include(LLCommon)
  5. set(llmath_SOURCE_FILES
  6. llbbox.cpp
  7. llcamera.cpp
  8. llcolor3.cpp
  9. llcolor4.cpp
  10. llcolor4u.cpp
  11. llcoordframe.cpp
  12. llinterp.cpp
  13. llmatrix3.cpp
  14. llmatrix3a.cpp
  15. llmatrix4.cpp
  16. llmatrix4a.cpp
  17. llnoise.cpp
  18. llquaternion.cpp
  19. llraytrace.cpp
  20. llvector2.cpp
  21. llvector3.cpp
  22. llvector3d.cpp
  23. llvector4.cpp
  24. llvector4a.cpp
  25. llsdutil_math.cpp
  26. )
  27. set(llmath_HEADER_FILES
  28. CMakeLists.txt
  29. llbbox.h
  30. llbboxlocal.h
  31. llcamera.h
  32. llcolor3.h
  33. llcolor4.h
  34. llcolor4u.h
  35. llcoord.h
  36. llcoordframe.h
  37. llinterp.h
  38. llmath.h
  39. llmatrix3.h
  40. llmatrix3a.h
  41. llmatrix3a.inl
  42. llmatrix4.h
  43. llnoise.h
  44. llplane.h
  45. llquantize.h
  46. llquaternion.h
  47. llquaternion2.h
  48. llquaternion2.inl
  49. llraytrace.h
  50. llrect.h
  51. llsimdtypes.h
  52. llvector2.h
  53. llvector3.h
  54. llvector3d.h
  55. llvector4.h
  56. llvector4a.h
  57. llvector4a.inl
  58. llvector4logical.h
  59. llsdutil_math.h
  60. )
  61. set_source_files_properties(${llmath_HEADER_FILES}
  62. PROPERTIES HEADER_FILE_ONLY TRUE)
  63. list(APPEND llmath_SOURCE_FILES ${llmath_HEADER_FILES})
  64. add_library (llmath ${llmath_SOURCE_FILES})
  65. add_dependencies(llmath prepare)
  66. if (NOT ${CMAKE_VERSION} VERSION_LESS "3.16.0")
  67. target_precompile_headers(llmath PRIVATE <linden_common.h>)
  68. endif ()
  69. get_directory_property(ALLDEFINES COMPILE_DEFINITIONS)
  70. message("llmath COMPILE_DEFINITIONS = ${ALLDEFINES}")