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

游戏引擎

开发平台:

C++ Builder

  1. # -*- cmake -*-
  2. project(llprimitive)
  3. include(00-Common)
  4. include(LLCommon)
  5. include(LLMath)
  6. include(LLMessage)
  7. include(LLXML)
  8. include_directories(
  9.     ${LLCOMMON_INCLUDE_DIRS}
  10.     ${LLMATH_INCLUDE_DIRS}
  11.     ${LLMESSAGE_INCLUDE_DIRS}
  12.     ${LLXML_INCLUDE_DIRS}
  13.     )
  14. set(llprimitive_SOURCE_FILES
  15.     llmaterialtable.cpp
  16.     llmediaentry.cpp
  17.     llprimitive.cpp
  18.     llprimtexturelist.cpp
  19.     lltextureanim.cpp
  20.     lltextureentry.cpp
  21.     lltreeparams.cpp
  22.     llvolumemessage.cpp
  23.     llvolumexml.cpp
  24.     material_codes.cpp
  25.     )
  26. set(llprimitive_HEADER_FILES
  27.     CMakeLists.txt
  28.     legacy_object_types.h
  29.     llmaterialtable.h
  30.     llmediaentry.h
  31.     llprimitive.h
  32.     llprimtexturelist.h
  33.     lltextureanim.h
  34.     lltextureentry.h
  35.     lltreeparams.h
  36.     lltree_common.h
  37.     llvolumemessage.h
  38.     llvolumexml.h
  39.     material_codes.h
  40.     object_flags.h
  41.     )
  42.         
  43. set_source_files_properties(${llprimitive_HEADER_FILES}
  44.                             PROPERTIES HEADER_FILE_ONLY TRUE)
  45. list(APPEND llprimitive_SOURCE_FILES ${llprimitive_HEADER_FILES})
  46. add_library (llprimitive ${llprimitive_SOURCE_FILES})
  47. #add unit tests
  48. INCLUDE(LLAddBuildTest)
  49. SET(llprimitive_TEST_SOURCE_FILES
  50.   llmediaentry.cpp
  51.   )
  52. LL_ADD_PROJECT_UNIT_TESTS(llprimitive "${llprimitive_TEST_SOURCE_FILES}")