2
0

Samples.cmake 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. # Root
  2. set(SAMPLES_ROOT ${PHYSICS_REPO_ROOT}/Samples)
  3. # Source files
  4. set(SAMPLES_SRC_FILES
  5. ${SAMPLES_ROOT}/Layers.h
  6. ${SAMPLES_ROOT}/Samples.cmake
  7. ${SAMPLES_ROOT}/SamplesApp.cpp
  8. ${SAMPLES_ROOT}/SamplesApp.h
  9. ${SAMPLES_ROOT}/Tests/BroadPhase/BroadPhaseCastRayTest.cpp
  10. ${SAMPLES_ROOT}/Tests/BroadPhase/BroadPhaseCastRayTest.h
  11. ${SAMPLES_ROOT}/Tests/BroadPhase/BroadPhaseInsertionTest.cpp
  12. ${SAMPLES_ROOT}/Tests/BroadPhase/BroadPhaseInsertionTest.h
  13. ${SAMPLES_ROOT}/Tests/BroadPhase/BroadPhaseTest.cpp
  14. ${SAMPLES_ROOT}/Tests/BroadPhase/BroadPhaseTest.h
  15. ${SAMPLES_ROOT}/Tests/Character/CharacterBaseTest.cpp
  16. ${SAMPLES_ROOT}/Tests/Character/CharacterBaseTest.h
  17. ${SAMPLES_ROOT}/Tests/Character/CharacterTest.cpp
  18. ${SAMPLES_ROOT}/Tests/Character/CharacterTest.h
  19. ${SAMPLES_ROOT}/Tests/Character/CharacterVirtualTest.cpp
  20. ${SAMPLES_ROOT}/Tests/Character/CharacterVirtualTest.h
  21. ${SAMPLES_ROOT}/Tests/Constraints/ConeConstraintTest.cpp
  22. ${SAMPLES_ROOT}/Tests/Constraints/ConeConstraintTest.h
  23. ${SAMPLES_ROOT}/Tests/Constraints/ConstraintSingularityTest.cpp
  24. ${SAMPLES_ROOT}/Tests/Constraints/ConstraintSingularityTest.h
  25. ${SAMPLES_ROOT}/Tests/Constraints/DistanceConstraintTest.cpp
  26. ${SAMPLES_ROOT}/Tests/Constraints/DistanceConstraintTest.h
  27. ${SAMPLES_ROOT}/Tests/Constraints/FixedConstraintTest.cpp
  28. ${SAMPLES_ROOT}/Tests/Constraints/FixedConstraintTest.h
  29. ${SAMPLES_ROOT}/Tests/Constraints/GearConstraintTest.cpp
  30. ${SAMPLES_ROOT}/Tests/Constraints/GearConstraintTest.h
  31. ${SAMPLES_ROOT}/Tests/Constraints/HingeConstraintTest.cpp
  32. ${SAMPLES_ROOT}/Tests/Constraints/HingeConstraintTest.h
  33. ${SAMPLES_ROOT}/Tests/Constraints/PointConstraintTest.cpp
  34. ${SAMPLES_ROOT}/Tests/Constraints/PointConstraintTest.h
  35. ${SAMPLES_ROOT}/Tests/Constraints/PathConstraintTest.cpp
  36. ${SAMPLES_ROOT}/Tests/Constraints/PathConstraintTest.h
  37. ${SAMPLES_ROOT}/Tests/Constraints/PoweredHingeConstraintTest.cpp
  38. ${SAMPLES_ROOT}/Tests/Constraints/PoweredHingeConstraintTest.h
  39. ${SAMPLES_ROOT}/Tests/Constraints/PoweredSwingTwistConstraintTest.cpp
  40. ${SAMPLES_ROOT}/Tests/Constraints/PoweredSwingTwistConstraintTest.h
  41. ${SAMPLES_ROOT}/Tests/Constraints/PoweredSliderConstraintTest.cpp
  42. ${SAMPLES_ROOT}/Tests/Constraints/PoweredSliderConstraintTest.h
  43. ${SAMPLES_ROOT}/Tests/Constraints/PulleyConstraintTest.cpp
  44. ${SAMPLES_ROOT}/Tests/Constraints/PulleyConstraintTest.h
  45. ${SAMPLES_ROOT}/Tests/Constraints/RackAndPinionConstraintTest.cpp
  46. ${SAMPLES_ROOT}/Tests/Constraints/RackAndPinionConstraintTest.h
  47. ${SAMPLES_ROOT}/Tests/Constraints/SwingTwistConstraintFrictionTest.cpp
  48. ${SAMPLES_ROOT}/Tests/Constraints/SwingTwistConstraintFrictionTest.h
  49. ${SAMPLES_ROOT}/Tests/Constraints/SwingTwistConstraintTest.cpp
  50. ${SAMPLES_ROOT}/Tests/Constraints/SwingTwistConstraintTest.h
  51. ${SAMPLES_ROOT}/Tests/Constraints/SixDOFConstraintTest.cpp
  52. ${SAMPLES_ROOT}/Tests/Constraints/SixDOFConstraintTest.h
  53. ${SAMPLES_ROOT}/Tests/Constraints/SliderConstraintTest.cpp
  54. ${SAMPLES_ROOT}/Tests/Constraints/SliderConstraintTest.h
  55. ${SAMPLES_ROOT}/Tests/Constraints/SpringTest.cpp
  56. ${SAMPLES_ROOT}/Tests/Constraints/SpringTest.h
  57. ${SAMPLES_ROOT}/Tests/ConvexCollision/CapsuleVsBoxTest.cpp
  58. ${SAMPLES_ROOT}/Tests/ConvexCollision/CapsuleVsBoxTest.h
  59. ${SAMPLES_ROOT}/Tests/ConvexCollision/ClosestPointTest.cpp
  60. ${SAMPLES_ROOT}/Tests/ConvexCollision/ClosestPointTest.h
  61. ${SAMPLES_ROOT}/Tests/ConvexCollision/ConvexHullTest.cpp
  62. ${SAMPLES_ROOT}/Tests/ConvexCollision/ConvexHullTest.h
  63. ${SAMPLES_ROOT}/Tests/ConvexCollision/ConvexHullShrinkTest.cpp
  64. ${SAMPLES_ROOT}/Tests/ConvexCollision/ConvexHullShrinkTest.h
  65. ${SAMPLES_ROOT}/Tests/ConvexCollision/EPATest.cpp
  66. ${SAMPLES_ROOT}/Tests/ConvexCollision/EPATest.h
  67. ${SAMPLES_ROOT}/Tests/ConvexCollision/InteractivePairsTest.cpp
  68. ${SAMPLES_ROOT}/Tests/ConvexCollision/InteractivePairsTest.h
  69. ${SAMPLES_ROOT}/Tests/ConvexCollision/RandomRayTest.cpp
  70. ${SAMPLES_ROOT}/Tests/ConvexCollision/RandomRayTest.h
  71. ${SAMPLES_ROOT}/Tests/General/ActiveEdgesTest.cpp
  72. ${SAMPLES_ROOT}/Tests/General/ActiveEdgesTest.h
  73. ${SAMPLES_ROOT}/Tests/General/BigVsSmallTest.cpp
  74. ${SAMPLES_ROOT}/Tests/General/BigVsSmallTest.h
  75. ${SAMPLES_ROOT}/Tests/General/CenterOfMassTest.cpp
  76. ${SAMPLES_ROOT}/Tests/General/CenterOfMassTest.h
  77. ${SAMPLES_ROOT}/Tests/General/ChangeMotionTypeTest.cpp
  78. ${SAMPLES_ROOT}/Tests/General/ChangeMotionTypeTest.h
  79. ${SAMPLES_ROOT}/Tests/General/ChangeShapeTest.cpp
  80. ${SAMPLES_ROOT}/Tests/General/ChangeShapeTest.h
  81. ${SAMPLES_ROOT}/Tests/General/ChangeObjectLayerTest.cpp
  82. ${SAMPLES_ROOT}/Tests/General/ChangeObjectLayerTest.h
  83. ${SAMPLES_ROOT}/Tests/General/ContactListenerTest.cpp
  84. ${SAMPLES_ROOT}/Tests/General/ContactListenerTest.h
  85. ${SAMPLES_ROOT}/Tests/General/ContactManifoldTest.cpp
  86. ${SAMPLES_ROOT}/Tests/General/ContactManifoldTest.h
  87. ${SAMPLES_ROOT}/Tests/General/DampingTest.cpp
  88. ${SAMPLES_ROOT}/Tests/General/DampingTest.h
  89. ${SAMPLES_ROOT}/Tests/General/DynamicMeshTest.cpp
  90. ${SAMPLES_ROOT}/Tests/General/DynamicMeshTest.h
  91. ${SAMPLES_ROOT}/Tests/General/FrictionTest.cpp
  92. ${SAMPLES_ROOT}/Tests/General/FrictionTest.h
  93. ${SAMPLES_ROOT}/Tests/General/FrictionPerTriangleTest.cpp
  94. ${SAMPLES_ROOT}/Tests/General/FrictionPerTriangleTest.h
  95. ${SAMPLES_ROOT}/Tests/General/FunnelTest.cpp
  96. ${SAMPLES_ROOT}/Tests/General/FunnelTest.h
  97. ${SAMPLES_ROOT}/Tests/General/GravityFactorTest.cpp
  98. ${SAMPLES_ROOT}/Tests/General/GravityFactorTest.h
  99. ${SAMPLES_ROOT}/Tests/General/HeavyOnLightTest.cpp
  100. ${SAMPLES_ROOT}/Tests/General/HeavyOnLightTest.h
  101. ${SAMPLES_ROOT}/Tests/General/HighSpeedTest.cpp
  102. ${SAMPLES_ROOT}/Tests/General/HighSpeedTest.h
  103. ${SAMPLES_ROOT}/Tests/General/IslandTest.cpp
  104. ${SAMPLES_ROOT}/Tests/General/IslandTest.h
  105. ${SAMPLES_ROOT}/Tests/General/KinematicTest.cpp
  106. ${SAMPLES_ROOT}/Tests/General/KinematicTest.h
  107. ${SAMPLES_ROOT}/Tests/General/LoadSaveBinaryTest.cpp
  108. ${SAMPLES_ROOT}/Tests/General/LoadSaveBinaryTest.h
  109. ${SAMPLES_ROOT}/Tests/General/LoadSaveSceneTest.cpp
  110. ${SAMPLES_ROOT}/Tests/General/LoadSaveSceneTest.h
  111. ${SAMPLES_ROOT}/Tests/General/ManifoldReductionTest.cpp
  112. ${SAMPLES_ROOT}/Tests/General/ManifoldReductionTest.h
  113. ${SAMPLES_ROOT}/Tests/General/MultithreadedTest.cpp
  114. ${SAMPLES_ROOT}/Tests/General/MultithreadedTest.h
  115. ${SAMPLES_ROOT}/Tests/General/RestitutionTest.cpp
  116. ${SAMPLES_ROOT}/Tests/General/RestitutionTest.h
  117. ${SAMPLES_ROOT}/Tests/General/SensorTest.cpp
  118. ${SAMPLES_ROOT}/Tests/General/SensorTest.h
  119. ${SAMPLES_ROOT}/Tests/General/SimpleTest.cpp
  120. ${SAMPLES_ROOT}/Tests/General/SimpleTest.h
  121. ${SAMPLES_ROOT}/Tests/General/StackTest.cpp
  122. ${SAMPLES_ROOT}/Tests/General/StackTest.h
  123. ${SAMPLES_ROOT}/Tests/General/WallTest.cpp
  124. ${SAMPLES_ROOT}/Tests/General/WallTest.h
  125. ${SAMPLES_ROOT}/Tests/General/ActivateDuringUpdateTest.cpp
  126. ${SAMPLES_ROOT}/Tests/General/ActivateDuringUpdateTest.h
  127. ${SAMPLES_ROOT}/Tests/Rig/CreateRigTest.cpp
  128. ${SAMPLES_ROOT}/Tests/Rig/CreateRigTest.h
  129. ${SAMPLES_ROOT}/Tests/Rig/KinematicRigTest.cpp
  130. ${SAMPLES_ROOT}/Tests/Rig/KinematicRigTest.h
  131. ${SAMPLES_ROOT}/Tests/Rig/LoadSaveBinaryRigTest.cpp
  132. ${SAMPLES_ROOT}/Tests/Rig/LoadSaveBinaryRigTest.h
  133. ${SAMPLES_ROOT}/Tests/Rig/LoadRigTest.cpp
  134. ${SAMPLES_ROOT}/Tests/Rig/LoadRigTest.h
  135. ${SAMPLES_ROOT}/Tests/Rig/PoweredRigTest.cpp
  136. ${SAMPLES_ROOT}/Tests/Rig/PoweredRigTest.h
  137. ${SAMPLES_ROOT}/Tests/Rig/RigPileTest.cpp
  138. ${SAMPLES_ROOT}/Tests/Rig/RigPileTest.h
  139. ${SAMPLES_ROOT}/Tests/Rig/SkeletonMapperTest.cpp
  140. ${SAMPLES_ROOT}/Tests/Rig/SkeletonMapperTest.h
  141. ${SAMPLES_ROOT}/Tests/Test.cpp
  142. ${SAMPLES_ROOT}/Tests/Test.h
  143. ${SAMPLES_ROOT}/Tests/Tools/LoadSnapshotTest.cpp
  144. ${SAMPLES_ROOT}/Tests/Tools/LoadSnapshotTest.h
  145. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledBoxShapeTest.cpp
  146. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledBoxShapeTest.h
  147. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledCapsuleShapeTest.cpp
  148. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledCapsuleShapeTest.h
  149. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledStaticCompoundShapeTest.cpp
  150. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledStaticCompoundShapeTest.h
  151. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledMutableCompoundShapeTest.cpp
  152. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledMutableCompoundShapeTest.h
  153. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledOffsetCenterOfMassShapeTest.cpp
  154. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledOffsetCenterOfMassShapeTest.h
  155. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledConvexHullShapeTest.cpp
  156. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledConvexHullShapeTest.h
  157. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledCylinderShapeTest.cpp
  158. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledCylinderShapeTest.h
  159. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledHeightFieldShapeTest.cpp
  160. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledHeightFieldShapeTest.h
  161. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledMeshShapeTest.cpp
  162. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledMeshShapeTest.h
  163. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledSphereShapeTest.cpp
  164. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledSphereShapeTest.h
  165. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledTaperedCapsuleShapeTest.cpp
  166. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledTaperedCapsuleShapeTest.h
  167. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledTriangleShapeTest.cpp
  168. ${SAMPLES_ROOT}/Tests/ScaledShapes/ScaledTriangleShapeTest.h
  169. ${SAMPLES_ROOT}/Tests/Shapes/BoxShapeTest.cpp
  170. ${SAMPLES_ROOT}/Tests/Shapes/BoxShapeTest.h
  171. ${SAMPLES_ROOT}/Tests/Shapes/CapsuleShapeTest.cpp
  172. ${SAMPLES_ROOT}/Tests/Shapes/CapsuleShapeTest.h
  173. ${SAMPLES_ROOT}/Tests/Shapes/StaticCompoundShapeTest.cpp
  174. ${SAMPLES_ROOT}/Tests/Shapes/StaticCompoundShapeTest.h
  175. ${SAMPLES_ROOT}/Tests/Shapes/MutableCompoundShapeTest.cpp
  176. ${SAMPLES_ROOT}/Tests/Shapes/MutableCompoundShapeTest.h
  177. ${SAMPLES_ROOT}/Tests/Shapes/OffsetCenterOfMassShapeTest.cpp
  178. ${SAMPLES_ROOT}/Tests/Shapes/OffsetCenterOfMassShapeTest.h
  179. ${SAMPLES_ROOT}/Tests/Shapes/ConvexHullShapeTest.cpp
  180. ${SAMPLES_ROOT}/Tests/Shapes/ConvexHullShapeTest.h
  181. ${SAMPLES_ROOT}/Tests/Shapes/CylinderShapeTest.cpp
  182. ${SAMPLES_ROOT}/Tests/Shapes/CylinderShapeTest.h
  183. ${SAMPLES_ROOT}/Tests/Shapes/HeightFieldShapeTest.cpp
  184. ${SAMPLES_ROOT}/Tests/Shapes/HeightFieldShapeTest.h
  185. ${SAMPLES_ROOT}/Tests/Shapes/MeshShapeTest.cpp
  186. ${SAMPLES_ROOT}/Tests/Shapes/MeshShapeTest.h
  187. ${SAMPLES_ROOT}/Tests/Shapes/SphereShapeTest.cpp
  188. ${SAMPLES_ROOT}/Tests/Shapes/SphereShapeTest.h
  189. ${SAMPLES_ROOT}/Tests/Shapes/RotatedTranslatedShapeTest.cpp
  190. ${SAMPLES_ROOT}/Tests/Shapes/RotatedTranslatedShapeTest.h
  191. ${SAMPLES_ROOT}/Tests/Shapes/TaperedCapsuleShapeTest.cpp
  192. ${SAMPLES_ROOT}/Tests/Shapes/TaperedCapsuleShapeTest.h
  193. ${SAMPLES_ROOT}/Tests/Shapes/TriangleShapeTest.cpp
  194. ${SAMPLES_ROOT}/Tests/Shapes/TriangleShapeTest.h
  195. ${SAMPLES_ROOT}/Tests/Vehicle/TankTest.cpp
  196. ${SAMPLES_ROOT}/Tests/Vehicle/TankTest.h
  197. ${SAMPLES_ROOT}/Tests/Vehicle/VehicleConstraintTest.cpp
  198. ${SAMPLES_ROOT}/Tests/Vehicle/VehicleConstraintTest.h
  199. ${SAMPLES_ROOT}/Tests/Vehicle/VehicleSixDOFTest.cpp
  200. ${SAMPLES_ROOT}/Tests/Vehicle/VehicleSixDOFTest.h
  201. ${SAMPLES_ROOT}/Tests/Vehicle/VehicleTest.cpp
  202. ${SAMPLES_ROOT}/Tests/Vehicle/VehicleTest.h
  203. ${SAMPLES_ROOT}/Tests/Water/WaterShapeTest.cpp
  204. ${SAMPLES_ROOT}/Tests/Water/WaterShapeTest.h
  205. ${SAMPLES_ROOT}/Utils/ContactListenerImpl.cpp
  206. ${SAMPLES_ROOT}/Utils/ContactListenerImpl.h
  207. ${SAMPLES_ROOT}/Utils/RagdollLoader.cpp
  208. ${SAMPLES_ROOT}/Utils/RagdollLoader.h
  209. ${SAMPLES_ROOT}/Utils/ShapeCreator.cpp
  210. ${SAMPLES_ROOT}/Utils/ShapeCreator.h
  211. )
  212. # Group source files
  213. source_group(TREE ${SAMPLES_ROOT} FILES ${SAMPLES_SRC_FILES})
  214. # Create Samples executable
  215. add_executable(Samples ${SAMPLES_SRC_FILES})
  216. target_include_directories(Samples PUBLIC ${SAMPLES_ROOT})
  217. target_link_libraries(Samples LINK_PUBLIC TestFramework d3d12.lib shcore.lib)
  218. # Set the correct working directory
  219. set_property(TARGET Samples PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${PHYSICS_REPO_ROOT}")
  220. # Make this project the startup project
  221. set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT "Samples")