CMakeLists.txt
上传用户:king477883
上传日期:2021-03-01
资源大小:9553k
文件大小:2k
源码类别:

游戏引擎

开发平台:

C++ Builder

  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.     llcamera.cpp
  12.     llcoordframe.cpp
  13.     llline.cpp
  14.     llmodularmath.cpp
  15.     llperlin.cpp
  16.     llquaternion.cpp
  17.     llrect.cpp
  18.     llsphere.cpp
  19.     llvolume.cpp
  20.     llvolumemgr.cpp
  21.     llsdutil_math.cpp
  22.     m3math.cpp
  23.     m4math.cpp
  24.     raytrace.cpp
  25.     v2math.cpp
  26.     v3color.cpp
  27.     v3dmath.cpp
  28.     v3math.cpp
  29.     v4color.cpp
  30.     v4coloru.cpp
  31.     v4math.cpp
  32.     xform.cpp
  33.     )
  34. set(llmath_HEADER_FILES
  35.     CMakeLists.txt
  36.     camera.h
  37.     coordframe.h
  38.     llbbox.h
  39.     llbboxlocal.h
  40.     llcamera.h
  41.     llcoord.h
  42.     llcoordframe.h
  43.     llinterp.h
  44.     llline.h
  45.     llmath.h
  46.     llmodularmath.h
  47.     lloctree.h
  48.     llperlin.h
  49.     llplane.h
  50.     llquantize.h
  51.     llquaternion.h
  52.     llrect.h
  53.     llsphere.h
  54.     lltreenode.h
  55.     llv4math.h
  56.     llv4matrix3.h
  57.     llv4matrix4.h
  58.     llv4vector3.h
  59.     llvolume.h
  60.     llvolumemgr.h
  61.     llsdutil_math.h
  62.     m3math.h
  63.     m4math.h
  64.     raytrace.h
  65.     v2math.h
  66.     v3color.h
  67.     v3dmath.h
  68.     v3math.h
  69.     v4color.h
  70.     v4coloru.h
  71.     v4math.h
  72.     xform.h
  73.     )
  74. set_source_files_properties(${llmath_HEADER_FILES}
  75.                             PROPERTIES HEADER_FILE_ONLY TRUE)
  76. list(APPEND llmath_SOURCE_FILES ${llmath_HEADER_FILES})
  77. add_library (llmath ${llmath_SOURCE_FILES})
  78. # Add tests
  79. if (LL_TESTS)
  80.   include(LLAddBuildTest)
  81.   # UNIT TESTS
  82.   SET(llmath_TEST_SOURCE_FILES
  83.     llbboxlocal.cpp
  84.     llmodularmath.cpp
  85.     llrect.cpp
  86.     v2math.cpp
  87.     v3color.cpp
  88.     v4color.cpp
  89.     v4coloru.cpp
  90.     )
  91.   LL_ADD_PROJECT_UNIT_TESTS(llmath "${llmath_TEST_SOURCE_FILES}")
  92.   # INTEGRATION TESTS
  93.   set(test_libs llmath llcommon ${LLCOMMON_LIBRARIES} ${WINDOWS_LIBRARIES})
  94.   # TODO: Some of these need refactoring to be proper Unit tests rather than Integration tests.
  95.   LL_ADD_INTEGRATION_TEST(llbbox llbbox.cpp "${test_libs}")
  96.   LL_ADD_INTEGRATION_TEST(llquaternion llquaternion.cpp "${test_libs}")
  97.   LL_ADD_INTEGRATION_TEST(mathmisc "" "${test_libs}")
  98.   LL_ADD_INTEGRATION_TEST(m3math "" "${test_libs}")
  99.   LL_ADD_INTEGRATION_TEST(v3dmath v3dmath.cpp "${test_libs}")
  100.   LL_ADD_INTEGRATION_TEST(v3math v3math.cpp "${test_libs}")
  101.   LL_ADD_INTEGRATION_TEST(v4math v4math.cpp "${test_libs}")
  102.   LL_ADD_INTEGRATION_TEST(xform xform.cpp "${test_libs}")
  103. endif (LL_TESTS)