PageRenderTime 37ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/llmessage/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 262 lines | 243 code | 15 blank | 4 comment | 1 complexity | 088746bf41d31e47d96502cb49b0b8b4 MD5 | raw file
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. project(llmessage)
  3. include(00-Common)
  4. include(GoogleMock)
  5. include(LLAddBuildTest)
  6. include(LLCommon)
  7. include(LLMath)
  8. include(LLMessage)
  9. include(LLVFS)
  10. include(LLAddBuildTest)
  11. include(Python)
  12. include(Tut)
  13. include(Python)
  14. include_directories (${CMAKE_CURRENT_SOURCE_DIR})
  15. include_directories(
  16. ${LLCOMMON_INCLUDE_DIRS}
  17. ${LLMATH_INCLUDE_DIRS}
  18. ${LLMESSAGE_INCLUDE_DIRS}
  19. ${LLVFS_INCLUDE_DIRS}
  20. )
  21. set(llmessage_SOURCE_FILES
  22. llares.cpp
  23. llareslistener.cpp
  24. llassetstorage.cpp
  25. llavatarnamecache.cpp
  26. llblowfishcipher.cpp
  27. llbuffer.cpp
  28. llbufferstream.cpp
  29. llcachename.cpp
  30. llchainio.cpp
  31. llcircuit.cpp
  32. llclassifiedflags.cpp
  33. llcurl.cpp
  34. lldatapacker.cpp
  35. lldispatcher.cpp
  36. llfiltersd2xmlrpc.cpp
  37. llhost.cpp
  38. llhttpassetstorage.cpp
  39. llhttpclient.cpp
  40. llhttpclientadapter.cpp
  41. llhttpnode.cpp
  42. llhttpsender.cpp
  43. llinstantmessage.cpp
  44. lliobuffer.cpp
  45. lliohttpserver.cpp
  46. lliopipe.cpp
  47. lliosocket.cpp
  48. llioutil.cpp
  49. llmail.cpp
  50. llmessagebuilder.cpp
  51. llmessageconfig.cpp
  52. llmessagereader.cpp
  53. llmessagetemplate.cpp
  54. llmessagetemplateparser.cpp
  55. llmessagethrottle.cpp
  56. llmime.cpp
  57. llnamevalue.cpp
  58. llnullcipher.cpp
  59. llpacketack.cpp
  60. llpacketbuffer.cpp
  61. llpacketring.cpp
  62. llpartdata.cpp
  63. llproxy.cpp
  64. llpumpio.cpp
  65. llregionpresenceverifier.cpp
  66. llsdappservices.cpp
  67. llsdhttpserver.cpp
  68. llsdmessage.cpp
  69. llsdmessagebuilder.cpp
  70. llsdmessagereader.cpp
  71. llsdrpcclient.cpp
  72. llsdrpcserver.cpp
  73. llservicebuilder.cpp
  74. llservice.cpp
  75. llstoredmessage.cpp
  76. lltemplatemessagebuilder.cpp
  77. lltemplatemessagedispatcher.cpp
  78. lltemplatemessagereader.cpp
  79. llthrottle.cpp
  80. lltransfermanager.cpp
  81. lltransfersourceasset.cpp
  82. lltransfersourcefile.cpp
  83. lltransfertargetfile.cpp
  84. lltransfertargetvfile.cpp
  85. lltrustedmessageservice.cpp
  86. llurlrequest.cpp
  87. lluseroperation.cpp
  88. llxfer.cpp
  89. llxfer_file.cpp
  90. llxfermanager.cpp
  91. llxfer_mem.cpp
  92. llxfer_vfile.cpp
  93. llxorcipher.cpp
  94. machine.cpp
  95. message.cpp
  96. message_prehash.cpp
  97. message_string_table.cpp
  98. net.cpp
  99. partsyspacket.cpp
  100. patch_code.cpp
  101. patch_dct.cpp
  102. patch_idct.cpp
  103. sound_ids.cpp
  104. )
  105. set(llmessage_HEADER_FILES
  106. CMakeLists.txt
  107. llares.h
  108. llareslistener.h
  109. llassetstorage.h
  110. llavatarnamecache.h
  111. llblowfishcipher.h
  112. llbuffer.h
  113. llbufferstream.h
  114. llcachename.h
  115. llchainio.h
  116. llcipher.h
  117. llcircuit.h
  118. llclassifiedflags.h
  119. llcurl.h
  120. lldatapacker.h
  121. lldbstrings.h
  122. lldispatcher.h
  123. lleventflags.h
  124. llfiltersd2xmlrpc.h
  125. llfollowcamparams.h
  126. llhost.h
  127. llhttpassetstorage.h
  128. llhttpclient.h
  129. llhttpclientinterface.h
  130. llhttpclientadapter.h
  131. llhttpnode.h
  132. llhttpnodeadapter.h
  133. llhttpsender.h
  134. llinstantmessage.h
  135. llinvite.h
  136. lliobuffer.h
  137. lliohttpserver.h
  138. lliopipe.h
  139. lliosocket.h
  140. llioutil.h
  141. llloginflags.h
  142. llmail.h
  143. llmessagebuilder.h
  144. llmessageconfig.h
  145. llmessagereader.h
  146. llmessagetemplate.h
  147. llmessagetemplateparser.h
  148. llmessagethrottle.h
  149. llmime.h
  150. llmsgvariabletype.h
  151. llnamevalue.h
  152. llnullcipher.h
  153. llpacketack.h
  154. llpacketbuffer.h
  155. llpacketring.h
  156. llpartdata.h
  157. llpumpio.h
  158. llproxy.h
  159. llqueryflags.h
  160. llregionflags.h
  161. llregionhandle.h
  162. llregionpresenceverifier.h
  163. llsdappservices.h
  164. llsdhttpserver.h
  165. llsdmessage.h
  166. llsdmessagebuilder.h
  167. llsdmessagereader.h
  168. llsdrpcclient.h
  169. llsdrpcserver.h
  170. llservice.h
  171. llservicebuilder.h
  172. llstoredmessage.h
  173. lltaskname.h
  174. llteleportflags.h
  175. lltemplatemessagebuilder.h
  176. lltemplatemessagedispatcher.h
  177. lltemplatemessagereader.h
  178. llthrottle.h
  179. lltransfermanager.h
  180. lltransfersourceasset.h
  181. lltransfersourcefile.h
  182. lltransfertargetfile.h
  183. lltransfertargetvfile.h
  184. lltrustedmessageservice.h
  185. llurlrequest.h
  186. lluseroperation.h
  187. llvehicleparams.h
  188. llxfer.h
  189. llxfermanager.h
  190. llxfer_file.h
  191. llxfer_mem.h
  192. llxfer_vfile.h
  193. llxorcipher.h
  194. machine.h
  195. mean_collision_data.h
  196. message.h
  197. message_prehash.h
  198. net.h
  199. partsyspacket.h
  200. patch_code.h
  201. patch_dct.h
  202. sound_ids.h
  203. )
  204. set_source_files_properties(${llmessage_HEADER_FILES}
  205. PROPERTIES HEADER_FILE_ONLY TRUE)
  206. list(APPEND llmessage_SOURCE_FILES ${llmessage_HEADER_FILES})
  207. add_library (llmessage ${llmessage_SOURCE_FILES})
  208. target_link_libraries(
  209. llmessage
  210. ${CURL_LIBRARIES}
  211. ${CARES_LIBRARIES}
  212. ${OPENSSL_LIBRARIES}
  213. ${CRYPTO_LIBRARIES}
  214. ${XMLRPCEPI_LIBRARIES}
  215. )
  216. # tests
  217. if (LL_TESTS)
  218. SET(llmessage_TEST_SOURCE_FILES
  219. # llhttpclientadapter.cpp
  220. llmime.cpp
  221. llnamevalue.cpp
  222. lltrustedmessageservice.cpp
  223. lltemplatemessagedispatcher.cpp
  224. llregionpresenceverifier.cpp
  225. )
  226. LL_ADD_PROJECT_UNIT_TESTS(llmessage "${llmessage_TEST_SOURCE_FILES}")
  227. # set(TEST_DEBUG on)
  228. set(test_libs
  229. ${LLMESSAGE_LIBRARIES}
  230. ${WINDOWS_LIBRARIES}
  231. ${LLVFS_LIBRARIES}
  232. ${LLMATH_LIBRARIES}
  233. ${LLCOMMON_LIBRARIES}
  234. ${GOOGLEMOCK_LIBRARIES}
  235. )
  236. LL_ADD_INTEGRATION_TEST(
  237. llsdmessage
  238. "llsdmessage.cpp"
  239. "${test_libs}"
  240. ${PYTHON_EXECUTABLE}
  241. "${CMAKE_CURRENT_SOURCE_DIR}/tests/test_llsdmessage_peer.py"
  242. )
  243. LL_ADD_INTEGRATION_TEST(llavatarnamecache "" "${test_libs}")
  244. LL_ADD_INTEGRATION_TEST(llhost "" "${test_libs}")
  245. LL_ADD_INTEGRATION_TEST(llpartdata "" "${test_libs}")
  246. LL_ADD_INTEGRATION_TEST(llxfer_file "" "${test_libs}")
  247. endif (LL_TESTS)