CMakeSources.cmake 9.1 KB

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