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

游戏引擎

开发平台:

C++ Builder

  1. # -*- cmake -*-
  2. project(llinventory)
  3. include(00-Common)
  4. include(LLCommon)
  5. include(LLMath)
  6. include(LLMessage)
  7. include(LLVFS)
  8. include(LLXML)
  9. include_directories(
  10.     ${LLCOMMON_INCLUDE_DIRS}
  11.     ${LLMATH_INCLUDE_DIRS}
  12.     ${LLMESSAGE_INCLUDE_DIRS}
  13.     ${LLXML_INCLUDE_DIRS}
  14.     )
  15. set(llinventory_SOURCE_FILES
  16.     llcategory.cpp
  17.     lleconomy.cpp
  18.     llinventory.cpp
  19.     llinventorytype.cpp
  20.     lllandmark.cpp
  21.     llnotecard.cpp
  22.     llparcel.cpp
  23.     llpermissions.cpp
  24.     llsaleinfo.cpp
  25.     lltransactionflags.cpp
  26.     lluserrelations.cpp
  27.     )
  28.     
  29. set(llinventory_HEADER_FILES
  30.     CMakeLists.txt
  31.     llcategory.h
  32.     lleconomy.h
  33.     llinventory.h
  34.     llinventorytype.h
  35.     lllandmark.h
  36.     llnotecard.h
  37.     llparcel.h
  38.     llparcelflags.h
  39.     llpermissions.h
  40.     llpermissionsflags.h
  41.     llsaleinfo.h
  42.     lltransactionflags.h
  43.     lltransactiontypes.h
  44.     lluserrelations.h
  45.     )
  46. set_source_files_properties(${llinventory_HEADER_FILES}
  47.                             PROPERTIES HEADER_FILE_ONLY TRUE)
  48. list(APPEND llinventory_SOURCE_FILES ${llinventory_HEADER_FILES})
  49. add_library (llinventory ${llinventory_SOURCE_FILES})
  50. #add unit tests
  51. INCLUDE(LLAddBuildTest)
  52. SET(llinventory_TEST_SOURCE_FILES
  53.   # no real unit tests yet!
  54.   )
  55. LL_ADD_PROJECT_UNIT_TESTS(llinventory "${llinventory_TEST_SOURCE_FILES}")
  56. #set(TEST_DEBUG on)
  57. set(test_libs llinventory ${LLMESSAGE_LIBRARIES} ${LLVFS_LIBRARIES} ${LLMATH_LIBRARIES} ${LLCOMMON_LIBRARIES} ${WINDOWS_LIBRARIES})
  58. LL_ADD_INTEGRATION_TEST(inventorymisc "" "${test_libs}")
  59. LL_ADD_INTEGRATION_TEST(llparcel "" "${test_libs}")