CMakeLists.txt 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. INCLUDE_DIRECTORIES(
  2. ${BULLET_PHYSICS_SOURCE_DIR}/src
  3. ${BULLET_PHYSICS_SOURCE_DIR}/examples
  4. ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs
  5. ${PYTHON_INCLUDE_DIRS}
  6. )
  7. IF(BUILD_PYBULLET_NUMPY)
  8. INCLUDE_DIRECTORIES(
  9. ${PYTHON_NUMPY_INCLUDE_DIR}
  10. )
  11. ENDIF()
  12. SET(pybullet_SRCS
  13. pybullet.c
  14. ../../examples/SharedMemory/IKTrajectoryHelper.cpp
  15. ../../examples/SharedMemory/IKTrajectoryHelper.h
  16. ../../examples/ExampleBrowser/InProcessExampleBrowser.cpp
  17. ../../examples/SharedMemory/TinyRendererVisualShapeConverter.cpp
  18. ../../examples/SharedMemory/TinyRendererVisualShapeConverter.h
  19. ../../examples/OpenGLWindow/SimpleCamera.cpp
  20. ../../examples/OpenGLWindow/SimpleCamera.h
  21. ../../examples/TinyRenderer/geometry.cpp
  22. ../../examples/TinyRenderer/model.cpp
  23. ../../examples/TinyRenderer/tgaimage.cpp
  24. ../../examples/TinyRenderer/our_gl.cpp
  25. ../../examples/TinyRenderer/TinyRenderer.cpp
  26. ../../examples/SharedMemory/InProcessMemory.cpp
  27. ../../examples/SharedMemory/PhysicsClient.cpp
  28. ../../examples/SharedMemory/PhysicsClient.h
  29. ../../examples/SharedMemory/PhysicsServer.cpp
  30. ../../examples/SharedMemory/PhysicsServer.h
  31. ../../examples/SharedMemory/PhysicsServerExample.cpp
  32. ../../examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp
  33. ../../examples/SharedMemory/PhysicsServerSharedMemory.cpp
  34. ../../examples/SharedMemory/PhysicsServerSharedMemory.h
  35. ../../examples/SharedMemory/PhysicsDirect.cpp
  36. ../../examples/SharedMemory/PhysicsDirect.h
  37. ../../examples/SharedMemory/PhysicsDirectC_API.cpp
  38. ../../examples/SharedMemory/PhysicsDirectC_API.h
  39. ../../examples/SharedMemory/PhysicsServerCommandProcessor.cpp
  40. ../../examples/SharedMemory/PhysicsServerCommandProcessor.h
  41. ../../examples/SharedMemory/PhysicsClientSharedMemory.cpp
  42. ../../examples/SharedMemory/PhysicsClientSharedMemory.h
  43. ../../examples/SharedMemory/PhysicsClientC_API.cpp
  44. ../../examples/SharedMemory/PhysicsClientC_API.h
  45. ../../examples/SharedMemory/Win32SharedMemory.cpp
  46. ../../examples/SharedMemory/Win32SharedMemory.h
  47. ../../examples/SharedMemory/PosixSharedMemory.cpp
  48. ../../examples/SharedMemory/PosixSharedMemory.h
  49. ../../examples/Utils/b3ResourcePath.cpp
  50. ../../examples/Utils/b3ResourcePath.h
  51. ../../examples/ThirdPartyLibs/tinyxml/tinystr.cpp
  52. ../../examples/ThirdPartyLibs/tinyxml/tinyxml.cpp
  53. ../../examples/ThirdPartyLibs/tinyxml/tinyxmlerror.cpp
  54. ../../examples/ThirdPartyLibs/tinyxml/tinyxmlparser.cpp
  55. ../../examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.cpp
  56. ../../examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.h
  57. ../../examples/ThirdPartyLibs/stb_image/stb_image.cpp
  58. ../../examples/Importers/ImportColladaDemo/LoadMeshFromCollada.cpp
  59. ../../examples/Importers/ImportObjDemo/LoadMeshFromObj.cpp
  60. ../../examples/Importers/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.cpp
  61. ../../examples/Importers/ImportURDFDemo/BulletUrdfImporter.cpp
  62. ../../examples/Importers/ImportURDFDemo/MyMultiBodyCreator.cpp
  63. ../../examples/Importers/ImportURDFDemo/URDF2Bullet.cpp
  64. ../../examples/Importers/ImportURDFDemo/UrdfParser.cpp
  65. ../../examples/Importers/ImportURDFDemo/urdfStringSplit.cpp
  66. ../../examples/Importers/ImportMeshUtility/b3ImportMeshUtility.cpp
  67. ../../examples/MultiThreading/b3PosixThreadSupport.cpp
  68. ../../examples/MultiThreading/b3Win32ThreadSupport.cpp
  69. ../../examples/MultiThreading/b3ThreadSupportInterface.cpp
  70. )
  71. IF(WIN32)
  72. LINK_LIBRARIES(
  73. ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}
  74. )
  75. ENDIF(WIN32)
  76. ADD_LIBRARY(pybullet SHARED ${pybullet_SRCS})
  77. SET_TARGET_PROPERTIES(pybullet PROPERTIES VERSION ${BULLET_VERSION})
  78. SET_TARGET_PROPERTIES(pybullet PROPERTIES SOVERSION ${BULLET_VERSION})
  79. TARGET_LINK_LIBRARIES(pybullet BulletExampleBrowserLib BulletFileLoader BulletWorldImporter BulletSoftBody BulletDynamics BulletCollision BulletInverseDynamicsUtils BulletInverseDynamics LinearMath OpenGLWindow gwen BussIK Bullet3Common ${PYTHON_LIBRARIES})