CMakeSources.cmake 8.7 KB

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