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

游戏引擎

开发平台:

C++ Builder

  1. # -*- cmake -*-
  2. project(llcommon)
  3. include(00-Common)
  4. include(LLCommon)
  5. include(Linking)
  6. include(Boost)
  7. include(Pth)
  8. include(LLSharedLibs)
  9. include(GooglePerfTools)
  10. include(Copy3rdPartyLibs)
  11. include_directories(
  12.     ${EXPAT_INCLUDE_DIRS}
  13.     ${LLCOMMON_INCLUDE_DIRS}
  14.     ${ZLIB_INCLUDE_DIRS}
  15.     ${PTH_INCLUDE_DIRS}
  16.     )
  17. # add_executable(lltreeiterators lltreeiterators.cpp)
  18. # target_link_libraries(lltreeiterators
  19. #     ${LLCOMMON_LIBRARIES})
  20. set(llcommon_SOURCE_FILES
  21.     imageids.cpp
  22.     indra_constants.cpp
  23.     llallocator.cpp
  24.     llallocator_heap_profile.cpp
  25.     llapp.cpp
  26.     llapr.cpp
  27.     llassettype.cpp
  28.     llbase32.cpp
  29.     llbase64.cpp
  30.     llcommon.cpp
  31.     llcoros.cpp
  32.     llcrc.cpp
  33.     llcriticaldamp.cpp
  34.     llcursortypes.cpp
  35.     lldate.cpp
  36.     lldependencies.cpp
  37.     lldictionary.cpp
  38.     llerror.cpp
  39.     llerrorthread.cpp
  40.     llevent.cpp
  41.     lleventapi.cpp
  42.     lleventcoro.cpp
  43.     lleventdispatcher.cpp
  44.     lleventfilter.cpp
  45.     llevents.cpp
  46.     lleventtimer.cpp
  47.     llfasttimer_class.cpp
  48.     llfile.cpp
  49.     llfindlocale.cpp
  50.     llfixedbuffer.cpp
  51.     llfoldertype.cpp
  52.     llformat.cpp
  53.     llframetimer.cpp
  54.     llheartbeat.cpp
  55.     llliveappconfig.cpp
  56.     lllivefile.cpp
  57.     lllog.cpp
  58.     llmd5.cpp
  59.     llmemory.cpp
  60.     llmemorystream.cpp
  61.     llmemtype.cpp
  62.     llmetrics.cpp
  63.     llmortician.cpp
  64.     lloptioninterface.cpp
  65.     llptrto.cpp 
  66.     llprocesslauncher.cpp
  67.     llprocessor.cpp
  68.     llqueuedthread.cpp
  69.     llrand.cpp
  70.     llrefcount.cpp
  71.     llrun.cpp
  72.     llsd.cpp
  73.     llsdserialize.cpp
  74.     llsdserialize_xml.cpp
  75.     llsdutil.cpp
  76.     llsecondlifeurls.cpp
  77.     llsingleton.cpp
  78.     llstat.cpp
  79.     llstacktrace.cpp
  80.     llstreamtools.cpp
  81.     llstring.cpp
  82.     llstringtable.cpp
  83.     llsys.cpp
  84.     llthread.cpp
  85.     lltimer.cpp
  86.     lluri.cpp
  87.     lluuid.cpp
  88.     llworkerthread.cpp
  89.     metaclass.cpp
  90.     metaproperty.cpp
  91.     reflective.cpp
  92.     timing.cpp
  93.     u64.cpp
  94.     )
  95.     
  96. set(llcommon_HEADER_FILES
  97.     CMakeLists.txt
  98.     bitpack.h
  99.     ctype_workaround.h
  100.     doublelinkedlist.h
  101.     imageids.h
  102.     indra_constants.h
  103.     linden_common.h
  104.     linked_lists.h
  105.     llallocator.h
  106.     llallocator_heap_profile.h
  107.     llagentconstants.h
  108.     llapp.h
  109.     llapr.h
  110.     llassettype.h
  111.     llassoclist.h
  112.     llavatarconstants.h
  113.     llbase32.h
  114.     llbase64.h
  115.     llboost.h
  116.     llchat.h
  117.     llclickaction.h
  118.     llcommon.h
  119.     llcoros.h
  120.     llcrc.h
  121.     llcriticaldamp.h
  122.     llcursortypes.h
  123.     lldarray.h
  124.     lldarrayptr.h
  125.     lldate.h
  126.     lldefs.h
  127.     lldependencies.h
  128.     lldeleteutils.h
  129.     lldepthstack.h
  130.     lldictionary.h
  131.     lldlinked.h
  132.     lldoubledispatch.h
  133.     lldqueueptr.h
  134.     llendianswizzle.h
  135.     llenum.h
  136.     llerror.h
  137.     llerrorcontrol.h
  138.     llerrorlegacy.h
  139.     llerrorthread.h
  140.     llevent.h
  141.     lleventapi.h
  142.     lleventcoro.h
  143.     lleventdispatcher.h
  144.     lleventfilter.h
  145.     llevents.h
  146.     lleventemitter.h
  147.     llextendedstatus.h
  148.     llfasttimer.h
  149.     llfile.h
  150.     llfindlocale.h
  151.     llfixedbuffer.h
  152.     llfoldertype.h
  153.     llformat.h
  154.     llframetimer.h
  155.     llhash.h
  156.     llheartbeat.h
  157.     llhttpstatuscodes.h
  158.     llindexedqueue.h
  159.     llinstancetracker.h
  160.     llkeythrottle.h
  161.     lllazy.h
  162.     lllistenerwrapper.h
  163.     lllinkedqueue.h
  164.     llliveappconfig.h
  165.     lllivefile.h
  166.     lllocalidhashmap.h
  167.     lllog.h
  168.     lllslconstants.h
  169.     llmap.h
  170.     llmd5.h
  171.     llmemory.h
  172.     llmemorystream.h
  173.     llmemtype.h
  174.     llmetrics.h
  175.     llmortician.h
  176.     llnametable.h
  177.     lloptioninterface.h
  178.     llpointer.h
  179.     llpreprocessor.h
  180.     llpriqueuemap.h
  181.     llprocesslauncher.h
  182.     llprocessor.h
  183.     llptrskiplist.h
  184.     llptrskipmap.h
  185.     llptrto.h
  186.     llqueuedthread.h
  187.     llrand.h
  188.     llrefcount.h
  189.     llrun.h
  190.     llrefcount.h
  191.     llsafehandle.h
  192.     llsd.h
  193.     llsdserialize.h
  194.     llsdserialize_xml.h
  195.     llsdutil.h
  196.     llsecondlifeurls.h
  197.     llsimplehash.h
  198.     llsingleton.h
  199.     llskiplist.h
  200.     llskipmap.h
  201.     llstack.h
  202.     llstacktrace.h
  203.     llstat.h
  204.     llstatenums.h
  205.     llstl.h
  206.     llstreamtools.h
  207.     llstrider.h
  208.     llstring.h
  209.     llstringtable.h
  210.     llsys.h
  211.     llthread.h
  212.     lltimer.h
  213.     lltreeiterators.h
  214.     lluri.h
  215.     lluuid.h
  216.     lluuidhashmap.h
  217.     llversionserver.h
  218.     llversionviewer.h
  219.     llworkerthread.h
  220.     ll_template_cast.h
  221.     metaclass.h
  222.     metaclasst.h
  223.     metaproperty.h
  224.     metapropertyt.h
  225.     processor.h
  226.     reflective.h
  227.     reflectivet.h
  228.     roles_constants.h
  229.     stdenums.h
  230.     stdtypes.h
  231.     string_table.h
  232.     stringize.h
  233.     timer.h
  234.     timing.h
  235.     u64.h
  236.     )
  237. set_source_files_properties(${llcommon_HEADER_FILES}
  238.                             PROPERTIES HEADER_FILE_ONLY TRUE)
  239. list(APPEND llcommon_SOURCE_FILES ${llcommon_HEADER_FILES})
  240. if(LLCOMMON_LINK_SHARED)
  241.     add_library (llcommon SHARED ${llcommon_SOURCE_FILES})
  242.     ll_stage_sharedlib(llcommon)
  243. else(LLCOMMON_LINK_SHARED)
  244.     add_library (llcommon ${llcommon_SOURCE_FILES})
  245. endif(LLCOMMON_LINK_SHARED)
  246. target_link_libraries(
  247.     llcommon
  248.     ${APRUTIL_LIBRARIES}
  249.     ${APR_LIBRARIES}
  250.     ${EXPAT_LIBRARIES}
  251.     ${ZLIB_LIBRARIES}
  252.     ${WINDOWS_LIBRARIES}
  253.     ${BOOST_PROGRAM_OPTIONS_LIBRARY}
  254.     ${BOOST_REGEX_LIBRARY}
  255.     ${PTH_LIBRARIES}
  256.     ${GOOGLE_PERFTOOLS_LIBRARIES}
  257.     )
  258. add_dependencies(llcommon stage_third_party_libs)
  259. if (LL_TESTS)
  260.   include(LLAddBuildTest)
  261.   SET(llcommon_TEST_SOURCE_FILES
  262.     # unit-testing llcommon is not possible right now as the test-harness *itself* depends upon llcommon, causing a circular dependency.  Add your 'unit' tests as integration tests for now.
  263.     )
  264.   LL_ADD_PROJECT_UNIT_TESTS(llcommon "${llcommon_TEST_SOURCE_FILES}")
  265.   #set(TEST_DEBUG on)
  266.   set(test_libs llcommon ${LLCOMMON_LIBRARIES} ${WINDOWS_LIBRARIES} ${GOOGLEMOCK_LIBRARIES})
  267.   LL_ADD_INTEGRATION_TEST(commonmisc "" "${test_libs}")
  268.   LL_ADD_INTEGRATION_TEST(bitpack "" "${test_libs}")
  269.   LL_ADD_INTEGRATION_TEST(llbase64 "" "${test_libs}")
  270.   LL_ADD_INTEGRATION_TEST(lldate "" "${test_libs}")
  271.   LL_ADD_INTEGRATION_TEST(lldependencies "" "${test_libs}")
  272.   LL_ADD_INTEGRATION_TEST(llerror "" "${test_libs}")
  273.   LL_ADD_INTEGRATION_TEST(llframetimer "" "${test_libs}")
  274.   LL_ADD_INTEGRATION_TEST(llinstancetracker "" "${test_libs}")
  275.   LL_ADD_INTEGRATION_TEST(lllazy "" "${test_libs}")
  276.   LL_ADD_INTEGRATION_TEST(llrand "" "${test_libs}")
  277.   LL_ADD_INTEGRATION_TEST(llsdserialize "" "${test_libs}")
  278.   LL_ADD_INTEGRATION_TEST(llstring "" "${test_libs}")
  279.   LL_ADD_INTEGRATION_TEST(lltreeiterators "" "${test_libs}")
  280.   LL_ADD_INTEGRATION_TEST(lluri "" "${test_libs}")
  281.   LL_ADD_INTEGRATION_TEST(reflection "" "${test_libs}")
  282.   LL_ADD_INTEGRATION_TEST(stringize "" "${test_libs}")
  283.   # *TODO - reenable these once tcmalloc libs no longer break the build.
  284.   #ADD_BUILD_TEST(llallocator llcommon)
  285.   #ADD_BUILD_TEST(llallocator_heap_profile llcommon)
  286.   #ADD_BUILD_TEST(llmemtype llcommon)
  287. endif (LL_TESTS)