CMakeSources.cmake 9.5 KB

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