CMakeSources.cmake 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. set(BS_BANSHEEUTILITY_INC_THREADING
  2. "Include/BsThreadDefines.h"
  3. "Include/BsAsyncOp.h"
  4. "Include/BsSpinLock.h"
  5. "Include/BsThreadPool.h"
  6. "Include/BsTaskScheduler.h"
  7. )
  8. set(BS_BANSHEEUTILITY_SRC_THIRDPARTY
  9. "Source/ThirdParty/md5.cpp"
  10. "Source/ThirdParty/TetGen/tetgen.cxx"
  11. "Source/ThirdParty/TetGen/predicates.cxx"
  12. )
  13. set(BS_BANSHEEUTILITY_INC_PREREQUISITES
  14. "Include/BsTypes.h"
  15. "Include/BsStdHeaders.h"
  16. "Include/BsPrerequisitesUtil.h"
  17. "Include/BsPlatformDefines.h"
  18. "Include/BsFwdDeclUtil.h"
  19. "Include/BsRTTIPrerequisites.h"
  20. )
  21. set(BS_BANSHEEUTILITY_SRC_WIN32
  22. "Source/Win32/BsWin32FileSystem.cpp"
  23. "Source/Win32/BsWin32CrashHandler.cpp"
  24. "Source/Win32/BsWin32PlatformUtility.cpp"
  25. "Source/Win32/BsWin32Window.cpp"
  26. )
  27. set(BS_BANSHEEUTILITY_SRC_UNIX
  28. "Source/Unix/BsUnixCrashHandler.cpp"
  29. "Source/Unix/BsUnixFileSystem.cpp"
  30. "Source/Unix/BsUnixPlatformUtility.cpp"
  31. )
  32. set(BS_BANSHEEUTILITY_INC_IMAGE
  33. "Include/BsColor.h"
  34. "Include/BsTextureAtlasLayout.h"
  35. )
  36. set(BS_BANSHEEUTILITY_INC_STRING
  37. "Include/BsString.h"
  38. "Include/BsStringFormat.h"
  39. "Include/BsStringID.h"
  40. )
  41. set(BS_BANSHEEUTILITY_SRC_IMAGE
  42. "Source/BsColor.cpp"
  43. "Source/BsTextureAtlasLayout.cpp"
  44. )
  45. set(BS_BANSHEEUTILITY_SRC_GENERAL
  46. "Source/BsDynLib.cpp"
  47. "Source/BsDynLibManager.cpp"
  48. "Source/BsMessageHandler.cpp"
  49. "Source/BsTimer.cpp"
  50. "Source/BsTime.cpp"
  51. "Source/BsUtil.cpp"
  52. "Source/BsCompression.cpp"
  53. "Source/BsTriangulation.cpp"
  54. )
  55. set(BS_BANSHEEUTILITY_INC_DEBUG
  56. "Include/BsBitmapWriter.h"
  57. "Include/BsDebug.h"
  58. "Include/BsLog.h"
  59. )
  60. set(BS_BANSHEEUTILITY_INC_FILESYSTEM
  61. "Include/BsFileSystem.h"
  62. "Include/BsDataStream.h"
  63. "Include/BsPath.h"
  64. )
  65. set(BS_BANSHEEUTILITY_SRC_FILESYSTEM
  66. "Source/BsDataStream.cpp"
  67. "Source/BsFileSystem.cpp"
  68. "Source/BsPath.cpp"
  69. )
  70. set(BS_BANSHEEUTILITY_SRC_THREADING
  71. "Source/BsAsyncOp.cpp"
  72. "Source/BsTaskScheduler.cpp"
  73. "Source/BsThreadPool.cpp"
  74. )
  75. set(BS_BANSHEEUTILITY_INC_GENERAL
  76. "Include/BsAny.h"
  77. "Include/BsBitwise.h"
  78. "Include/BsDynLib.h"
  79. "Include/BsDynLibManager.h"
  80. "Include/BsEvent.h"
  81. "Include/BsMessageHandler.h"
  82. "Include/BsMessageHandlerFwd.h"
  83. "Include/BsModule.h"
  84. "Include/BsPlatformUtility.h"
  85. "Include/BsServiceLocator.h"
  86. "Include/BsTime.h"
  87. "Include/BsTimer.h"
  88. "Include/BsUtil.h"
  89. "Include/BsFlags.h"
  90. "Include/BsCompression.h"
  91. "Include/BsTriangulation.h"
  92. )
  93. set(BS_BANSHEEUTILITY_SRC_ALLOCATORS
  94. "Source/BsFrameAlloc.cpp"
  95. "Source/BsGlobalFrameAlloc.cpp"
  96. "Source/BsMemStack.cpp"
  97. "Source/BsMemoryAllocator.cpp"
  98. )
  99. set(BS_BANSHEEUTILITY_SRC_RTTI
  100. "Source/BsIReflectable.cpp"
  101. "Source/BsRTTIField.cpp"
  102. "Source/BsRTTIType.cpp"
  103. )
  104. set(BS_BANSHEEUTILITY_SRC_DEBUG
  105. "Source/BsBitmapWriter.cpp"
  106. "Source/BsLog.cpp"
  107. "Source/BsDebug.cpp"
  108. )
  109. set(BS_BANSHEEUTILITY_INC_RTTI
  110. "Include/BsSerializedObjectRTTI.h"
  111. "Include/BsIReflectableRTTI.h"
  112. )
  113. set(BS_BANSHEEUTILITY_INC_ALLOCATORS
  114. "Include/BsFrameAlloc.h"
  115. "Include/BsGlobalFrameAlloc.h"
  116. "Include/BsMemAllocProfiler.h"
  117. "Include/BsMemoryAllocator.h"
  118. "Include/BsMemStack.h"
  119. "Include/BsStaticAlloc.h"
  120. "Include/BsGroupAlloc.h"
  121. )
  122. set(BS_BANSHEEUTILITY_INC_THIRDPARTY
  123. "Include/ThirdParty/md5.h"
  124. "Include/ThirdParty/json.hpp"
  125. "Include/ThirdParty/TetGen/tetgen.h"
  126. )
  127. set(BS_BANSHEEUTILITY_INC_ERROR
  128. "Include/BsException.h"
  129. "Include/BsCrashHandler.h"
  130. )
  131. set(BS_BANSHEEUTILITY_SRC_MATH
  132. "Source/BsAABox.cpp"
  133. "Source/BsDegree.cpp"
  134. "Source/BsMath.cpp"
  135. "Source/BsMatrix3.cpp"
  136. "Source/BsMatrix4.cpp"
  137. "Source/BsPlane.cpp"
  138. "Source/BsQuaternion.cpp"
  139. "Source/BsRadian.cpp"
  140. "Source/BsRay.cpp"
  141. "Source/BsSphere.cpp"
  142. "Source/BsVector2.cpp"
  143. "Source/BsVector2I.cpp"
  144. "Source/BsVector3.cpp"
  145. "Source/BsVector4.cpp"
  146. "Source/BsBounds.cpp"
  147. "Source/BsConvexVolume.cpp"
  148. "Source/BsTorus.cpp"
  149. "Source/BsRect3.cpp"
  150. "Source/BsRect2.cpp"
  151. "Source/BsRect2I.cpp"
  152. "Source/BsLineSegment3.cpp"
  153. "Source/BsCapsule.cpp"
  154. "Source/BsLine2.cpp"
  155. )
  156. set(BS_BANSHEEUTILITY_INC_TESTING
  157. "Include/BsFileSystemTestSuite.h"
  158. "Include/BsTestSuite.h"
  159. "Include/BsTestOutput.h"
  160. "Include/BsConsoleTestOutput.h"
  161. )
  162. set(BS_BANSHEEUTILITY_SRC_TESTING
  163. "Source/BsFileSystemTestSuite.cpp"
  164. "Source/BsTestSuite.cpp"
  165. "Source/BsTestOutput.cpp"
  166. "Source/BsConsoleTestOutput.cpp"
  167. )
  168. set(BS_BANSHEEUTILITY_SRC_SERIALIZATION
  169. "Source/BsMemorySerializer.cpp"
  170. "Source/BsFileSerializer.cpp"
  171. "Source/BsBinarySerializer.cpp"
  172. "Source/BsBinaryDiff.cpp"
  173. "Source/BsSerializedObject.cpp"
  174. "Source/BsBinaryCloner.cpp"
  175. )
  176. set(BS_BANSHEEUTILITY_INC_MATH
  177. "Include/BsAABox.h"
  178. "Include/BsDegree.h"
  179. "Include/BsMath.h"
  180. "Include/BsMatrix3.h"
  181. "Include/BsMatrix4.h"
  182. "Include/BsPlane.h"
  183. "Include/BsQuaternion.h"
  184. "Include/BsRadian.h"
  185. "Include/BsRay.h"
  186. "Include/BsSphere.h"
  187. "Include/BsVector2.h"
  188. "Include/BsVector2I.h"
  189. "Include/BsVector3.h"
  190. "Include/BsVector4.h"
  191. "Include/BsBounds.h"
  192. "Include/BsConvexVolume.h"
  193. "Include/BsTorus.h"
  194. "Include/BsLineSegment3.h"
  195. "Include/BsRect3.h"
  196. "Include/BsRect2.h"
  197. "Include/BsRect2I.h"
  198. "Include/BsCapsule.h"
  199. "Include/BsMatrixNxM.h"
  200. "Include/BsVectorNI.h"
  201. "Include/BsLine2.h"
  202. )
  203. set(BS_BANSHEEUTILITY_SRC_ERROR
  204. "Source/BsException.cpp"
  205. "Source/BsCrashHandler.cpp"
  206. )
  207. set(BS_BANSHEEUTILITY_INC_SERIALIZATION
  208. "Include/BsBinarySerializer.h"
  209. "Include/BsFileSerializer.h"
  210. "Include/BsMemorySerializer.h"
  211. "Include/BsBinaryDiff.h"
  212. "Include/BsSerializedObject.h"
  213. "Include/BsBinaryCloner.h"
  214. )
  215. set(BS_BANSHEEUTILITY_SRC_STRING
  216. "Source/BsStringID.cpp"
  217. "Source/BsString.cpp"
  218. )
  219. set(BS_BANSHEEUTILITY_INC_REFLECTION
  220. "Include/BsIReflectable.h"
  221. "Include/BsRTTIField.h"
  222. "Include/BsRTTIManagedDataBlockField.h"
  223. "Include/BsRTTIPlainField.h"
  224. "Include/BsRTTIReflectableField.h"
  225. "Include/BsRTTIReflectablePtrField.h"
  226. "Include/BsRTTIType.h"
  227. )
  228. set(BS_BANSHEEUTILITY_INC_WIN32
  229. "Include/Win32/BsWin32PlatformUtility.h"
  230. "Include/Win32/BsWin32Window.h"
  231. )
  232. source_group("Header Files\\Threading" FILES ${BS_BANSHEEUTILITY_INC_THREADING})
  233. source_group("Source Files\\ThirdParty" FILES ${BS_BANSHEEUTILITY_SRC_THIRDPARTY})
  234. source_group("Header Files\\Prerequisites" FILES ${BS_BANSHEEUTILITY_INC_PREREQUISITES})
  235. source_group("Source Files\\Win32" FILES ${BS_BANSHEEUTILITY_SRC_WIN32})
  236. source_group("Header Files\\Image" FILES ${BS_BANSHEEUTILITY_INC_IMAGE})
  237. source_group("Header Files\\String" FILES ${BS_BANSHEEUTILITY_INC_STRING})
  238. source_group("Source Files\\Image" FILES ${BS_BANSHEEUTILITY_SRC_IMAGE})
  239. source_group("Source Files\\General" FILES ${BS_BANSHEEUTILITY_SRC_GENERAL})
  240. source_group("Header Files\\Debug" FILES ${BS_BANSHEEUTILITY_INC_DEBUG})
  241. source_group("Header Files\\Filesystem" FILES ${BS_BANSHEEUTILITY_INC_FILESYSTEM})
  242. source_group("Source Files\\Filesystem" FILES ${BS_BANSHEEUTILITY_SRC_FILESYSTEM})
  243. source_group("Source Files\\Threading" FILES ${BS_BANSHEEUTILITY_SRC_THREADING})
  244. source_group("Header Files\\General" FILES ${BS_BANSHEEUTILITY_INC_GENERAL})
  245. source_group("Source Files\\Allocators" FILES ${BS_BANSHEEUTILITY_SRC_ALLOCATORS})
  246. source_group("Source Files\\RTTI" FILES ${BS_BANSHEEUTILITY_SRC_RTTI})
  247. source_group("Source Files\\Debug" FILES ${BS_BANSHEEUTILITY_SRC_DEBUG})
  248. source_group("Header Files\\RTTI" FILES ${BS_BANSHEEUTILITY_INC_RTTI})
  249. source_group("Header Files\\Allocators" FILES ${BS_BANSHEEUTILITY_INC_ALLOCATORS})
  250. source_group("Header Files\\ThirdParty" FILES ${BS_BANSHEEUTILITY_INC_THIRDPARTY})
  251. source_group("Header Files\\Error" FILES ${BS_BANSHEEUTILITY_INC_ERROR})
  252. source_group("Source Files\\Math" FILES ${BS_BANSHEEUTILITY_SRC_MATH})
  253. source_group("Header Files\\Testing" FILES ${BS_BANSHEEUTILITY_INC_TESTING})
  254. source_group("Source Files\\Testing" FILES ${BS_BANSHEEUTILITY_SRC_TESTING})
  255. source_group("Source Files\\Serialization" FILES ${BS_BANSHEEUTILITY_SRC_SERIALIZATION})
  256. source_group("Header Files\\Math" FILES ${BS_BANSHEEUTILITY_INC_MATH})
  257. source_group("Source Files\\Error" FILES ${BS_BANSHEEUTILITY_SRC_ERROR})
  258. source_group("Header Files\\Serialization" FILES ${BS_BANSHEEUTILITY_INC_SERIALIZATION})
  259. source_group("Source Files\\String" FILES ${BS_BANSHEEUTILITY_SRC_STRING})
  260. source_group("Header Files\\Reflection" FILES ${BS_BANSHEEUTILITY_INC_REFLECTION})
  261. source_group("Header Files\\Win32" FILES ${BS_BANSHEEUTILITY_INC_WIN32})
  262. set(BS_BANSHEEUTILITY_SRC
  263. ${BS_BANSHEEUTILITY_INC_THREADING}
  264. ${BS_BANSHEEUTILITY_SRC_THIRDPARTY}
  265. ${BS_BANSHEEUTILITY_INC_PREREQUISITES}
  266. ${BS_BANSHEEUTILITY_INC_IMAGE}
  267. ${BS_BANSHEEUTILITY_INC_STRING}
  268. ${BS_BANSHEEUTILITY_SRC_IMAGE}
  269. ${BS_BANSHEEUTILITY_SRC_GENERAL}
  270. ${BS_BANSHEEUTILITY_INC_DEBUG}
  271. ${BS_BANSHEEUTILITY_INC_FILESYSTEM}
  272. ${BS_BANSHEEUTILITY_SRC_FILESYSTEM}
  273. ${BS_BANSHEEUTILITY_SRC_THREADING}
  274. ${BS_BANSHEEUTILITY_INC_GENERAL}
  275. ${BS_BANSHEEUTILITY_SRC_ALLOCATORS}
  276. ${BS_BANSHEEUTILITY_SRC_RTTI}
  277. ${BS_BANSHEEUTILITY_SRC_DEBUG}
  278. ${BS_BANSHEEUTILITY_INC_RTTI}
  279. ${BS_BANSHEEUTILITY_INC_ALLOCATORS}
  280. ${BS_BANSHEEUTILITY_INC_THIRDPARTY}
  281. ${BS_BANSHEEUTILITY_INC_ERROR}
  282. ${BS_BANSHEEUTILITY_SRC_MATH}
  283. ${BS_BANSHEEUTILITY_INC_TESTING}
  284. ${BS_BANSHEEUTILITY_SRC_TESTING}
  285. ${BS_BANSHEEUTILITY_SRC_SERIALIZATION}
  286. ${BS_BANSHEEUTILITY_INC_MATH}
  287. ${BS_BANSHEEUTILITY_SRC_ERROR}
  288. ${BS_BANSHEEUTILITY_INC_SERIALIZATION}
  289. ${BS_BANSHEEUTILITY_SRC_STRING}
  290. ${BS_BANSHEEUTILITY_INC_REFLECTION}
  291. )
  292. if(WIN32)
  293. list(APPEND BS_BANSHEEUTILITY_SRC ${BS_BANSHEEUTILITY_SRC_WIN32})
  294. list(APPEND BS_BANSHEEUTILITY_SRC ${BS_BANSHEEUTILITY_INC_WIN32})
  295. else()
  296. list(APPEND BS_BANSHEEUTILITY_SRC ${BS_BANSHEEUTILITY_SRC_UNIX})
  297. endif()