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