PageRenderTime 28ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/llmath/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 128 lines | 112 code | 11 blank | 5 comment | 1 complexity | 66fe84b53de4a9b19a56e3e5b0f779da MD5 | raw file
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. project(llmath)
  3. include(00-Common)
  4. include(LLCommon)
  5. include_directories(
  6. ${LLCOMMON_INCLUDE_DIRS}
  7. )
  8. set(llmath_SOURCE_FILES
  9. llbbox.cpp
  10. llbboxlocal.cpp
  11. llcalc.cpp
  12. llcalcparser.cpp
  13. llcamera.cpp
  14. llcoordframe.cpp
  15. llline.cpp
  16. llmatrix3a.cpp
  17. llmodularmath.cpp
  18. llperlin.cpp
  19. llquaternion.cpp
  20. llrect.cpp
  21. llsphere.cpp
  22. llvector4a.cpp
  23. llvolume.cpp
  24. llvolumemgr.cpp
  25. llvolumeoctree.cpp
  26. llsdutil_math.cpp
  27. m3math.cpp
  28. m4math.cpp
  29. raytrace.cpp
  30. v2math.cpp
  31. v3color.cpp
  32. v3dmath.cpp
  33. v3math.cpp
  34. v4color.cpp
  35. v4coloru.cpp
  36. v4math.cpp
  37. xform.cpp
  38. )
  39. set(llmath_HEADER_FILES
  40. CMakeLists.txt
  41. camera.h
  42. coordframe.h
  43. llbbox.h
  44. llbboxlocal.h
  45. llcalc.h
  46. llcalcparser.h
  47. llcamera.h
  48. llcoord.h
  49. llcoordframe.h
  50. llinterp.h
  51. llline.h
  52. llmath.h
  53. llmatrix3a.h
  54. llmatrix3a.inl
  55. llmodularmath.h
  56. lloctree.h
  57. llperlin.h
  58. llplane.h
  59. llquantize.h
  60. llquaternion.h
  61. llquaternion2.h
  62. llquaternion2.inl
  63. llrect.h
  64. llsimdmath.h
  65. llsimdtypes.h
  66. llsimdtypes.inl
  67. llsphere.h
  68. lltreenode.h
  69. llvector4a.h
  70. llvector4a.inl
  71. llvector4logical.h
  72. llvolume.h
  73. llvolumemgr.h
  74. llvolumeoctree.h
  75. llsdutil_math.h
  76. m3math.h
  77. m4math.h
  78. raytrace.h
  79. v2math.h
  80. v3color.h
  81. v3dmath.h
  82. v3math.h
  83. v4color.h
  84. v4coloru.h
  85. v4math.h
  86. xform.h
  87. )
  88. set_source_files_properties(${llmath_HEADER_FILES}
  89. PROPERTIES HEADER_FILE_ONLY TRUE)
  90. list(APPEND llmath_SOURCE_FILES ${llmath_HEADER_FILES})
  91. add_library (llmath ${llmath_SOURCE_FILES})
  92. # Add tests
  93. if (LL_TESTS)
  94. include(LLAddBuildTest)
  95. # UNIT TESTS
  96. SET(llmath_TEST_SOURCE_FILES
  97. llbboxlocal.cpp
  98. llmodularmath.cpp
  99. llrect.cpp
  100. v2math.cpp
  101. v3color.cpp
  102. v4color.cpp
  103. v4coloru.cpp
  104. )
  105. LL_ADD_PROJECT_UNIT_TESTS(llmath "${llmath_TEST_SOURCE_FILES}")
  106. # INTEGRATION TESTS
  107. set(test_libs llmath llcommon ${LLCOMMON_LIBRARIES} ${WINDOWS_LIBRARIES})
  108. # TODO: Some of these need refactoring to be proper Unit tests rather than Integration tests.
  109. LL_ADD_INTEGRATION_TEST(llbbox llbbox.cpp "${test_libs}")
  110. LL_ADD_INTEGRATION_TEST(llquaternion llquaternion.cpp "${test_libs}")
  111. LL_ADD_INTEGRATION_TEST(mathmisc "" "${test_libs}")
  112. LL_ADD_INTEGRATION_TEST(m3math "" "${test_libs}")
  113. LL_ADD_INTEGRATION_TEST(v3dmath v3dmath.cpp "${test_libs}")
  114. LL_ADD_INTEGRATION_TEST(v3math v3math.cpp "${test_libs}")
  115. LL_ADD_INTEGRATION_TEST(v4math v4math.cpp "${test_libs}")
  116. LL_ADD_INTEGRATION_TEST(xform xform.cpp "${test_libs}")
  117. endif (LL_TESTS)