CMakeSources.cmake 8.8 KB

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