CMakeLists.txt
上传用户:gb3593
上传日期:2022-01-07
资源大小:3028k
文件大小:2k
源码类别:

游戏引擎

开发平台:

Visual C++

  1. # Some flags for Freeglut and GLUI.
  2. add_definitions( -DFREEGLUT_EXPORTS -DFREEGLUT_STATIC -D_CRT_SECURE_NO_WARNINGS )
  3. # Define the framework files.
  4. set(Testbed_Framework_SRCS
  5. Framework/Main.cpp
  6. Framework/Render.cpp
  7. Framework/Render.h
  8. Framework/Test.cpp
  9. Framework/Test.h
  10. )
  11. #define the test files.
  12. set(Testbed_Tests_SRCS
  13. Tests/TestEntries.cpp
  14. Tests/ApplyForce.h
  15. Tests/BodyTypes.h
  16. Tests/Breakable.h
  17. Tests/Bridge.h
  18. Tests/Cantilever.h
  19. Tests/Chain.h
  20. Tests/CharacterCollision.h
  21. Tests/CollisionFiltering.h
  22. Tests/CollisionProcessing.h
  23. Tests/CompoundShapes.h
  24. Tests/Confined.h
  25. Tests/ContinuousTest.h
  26. Tests/DistanceTest.h
  27. Tests/Dominos.h
  28. Tests/DynamicTreeTest.h
  29. Tests/EdgeShapes.h
  30. Tests/Gears.h
  31. Tests/LineJoint.h
  32. Tests/OneSidedPlatform.h
  33. Tests/PolyCollision.h
  34. Tests/PolyShapes.h
  35. Tests/Prismatic.h
  36. Tests/Pulleys.h
  37. Tests/Pyramid.h
  38. Tests/RayCast.h
  39. Tests/Revolute.h
  40. Tests/SensorTest.h
  41. Tests/ShapeEditing.h
  42. Tests/SliderCrank.h
  43. Tests/SphereStack.h
  44. Tests/TheoJansen.h
  45. Tests/TimeOfImpact.h
  46. Tests/VaryingFriction.h
  47. Tests/VaryingRestitution.h
  48. Tests/VerticalStack.h
  49. Tests/Web.h
  50. )
  51. # These are used to create visual studio folders.
  52. source_group(Framework FILES ${Testbed_Framework_SRCS})
  53. source_group(Tests FILES ${Testbed_Tests_SRCS})
  54. include_directories (
  55. ${OPENGL_INCLUDE_DIR}
  56. ${Box2D_SOURCE_DIR}
  57. )
  58. if(APPLE)
  59. # We are not using the Apple's framework version, but X11's
  60. include_directories( /usr/X11/include )
  61. link_directories( /usr/X11/lib )
  62. set (OPENGL_LIBRARIES GL GLU GLUT X11)
  63. endif(APPLE)
  64. add_executable(Testbed
  65. ${Testbed_Framework_SRCS}
  66. ${Testbed_Tests_SRCS}
  67. )
  68. target_link_libraries (
  69. Testbed
  70. Box2D
  71. freeglut_static
  72. glui
  73. ${OPENGL_LIBRARIES}