mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 05:40:05 +00:00
7df9b69039
option is disabled by default. When using cmake, use cmake -DBUILD_PYBULLET=ON -DBUILD_PYBULLET_NUMPY=ON then both testrender.py and testrender_np.py will work without numpy only testrender.py works. The numpy.reshape is likely a no-op when using numpy array, so we could remove testrender_np.py... See https://github.com/bulletphysics/bullet3/pull/774
89 lines
3.8 KiB
CMake
89 lines
3.8 KiB
CMake
|
|
INCLUDE_DIRECTORIES(
|
|
${BULLET_PHYSICS_SOURCE_DIR}/src
|
|
${BULLET_PHYSICS_SOURCE_DIR}/examples
|
|
${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs
|
|
${PYTHON_INCLUDE_DIRS}
|
|
)
|
|
IF(BUILD_PYBULLET_NUMPY)
|
|
INCLUDE_DIRECTORIES(
|
|
${PYTHON_NUMPY_INCLUDE_DIR}
|
|
)
|
|
ENDIF()
|
|
|
|
SET(pybullet_SRCS
|
|
pybullet.c
|
|
../../examples/SharedMemory/IKTrajectoryHelper.cpp
|
|
../../examples/SharedMemory/IKTrajectoryHelper.h
|
|
../../examples/ExampleBrowser/InProcessExampleBrowser.cpp
|
|
../../examples/SharedMemory/TinyRendererVisualShapeConverter.cpp
|
|
../../examples/SharedMemory/TinyRendererVisualShapeConverter.h
|
|
../../examples/OpenGLWindow/SimpleCamera.cpp
|
|
../../examples/OpenGLWindow/SimpleCamera.h
|
|
../../examples/TinyRenderer/geometry.cpp
|
|
../../examples/TinyRenderer/model.cpp
|
|
../../examples/TinyRenderer/tgaimage.cpp
|
|
../../examples/TinyRenderer/our_gl.cpp
|
|
../../examples/TinyRenderer/TinyRenderer.cpp
|
|
../../examples/SharedMemory/InProcessMemory.cpp
|
|
../../examples/SharedMemory/PhysicsClient.cpp
|
|
../../examples/SharedMemory/PhysicsClient.h
|
|
../../examples/SharedMemory/PhysicsServer.cpp
|
|
../../examples/SharedMemory/PhysicsServer.h
|
|
../../examples/SharedMemory/PhysicsServerExample.cpp
|
|
../../examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp
|
|
../../examples/SharedMemory/PhysicsServerSharedMemory.cpp
|
|
../../examples/SharedMemory/PhysicsServerSharedMemory.h
|
|
../../examples/SharedMemory/PhysicsDirect.cpp
|
|
../../examples/SharedMemory/PhysicsDirect.h
|
|
../../examples/SharedMemory/PhysicsDirectC_API.cpp
|
|
../../examples/SharedMemory/PhysicsDirectC_API.h
|
|
../../examples/SharedMemory/PhysicsServerCommandProcessor.cpp
|
|
../../examples/SharedMemory/PhysicsServerCommandProcessor.h
|
|
../../examples/SharedMemory/PhysicsClientSharedMemory.cpp
|
|
../../examples/SharedMemory/PhysicsClientSharedMemory.h
|
|
../../examples/SharedMemory/PhysicsClientC_API.cpp
|
|
../../examples/SharedMemory/PhysicsClientC_API.h
|
|
../../examples/SharedMemory/Win32SharedMemory.cpp
|
|
../../examples/SharedMemory/Win32SharedMemory.h
|
|
../../examples/SharedMemory/PosixSharedMemory.cpp
|
|
../../examples/SharedMemory/PosixSharedMemory.h
|
|
../../examples/Utils/b3ResourcePath.cpp
|
|
../../examples/Utils/b3ResourcePath.h
|
|
../../examples/ThirdPartyLibs/tinyxml/tinystr.cpp
|
|
../../examples/ThirdPartyLibs/tinyxml/tinyxml.cpp
|
|
../../examples/ThirdPartyLibs/tinyxml/tinyxmlerror.cpp
|
|
../../examples/ThirdPartyLibs/tinyxml/tinyxmlparser.cpp
|
|
../../examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.cpp
|
|
../../examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.h
|
|
../../examples/ThirdPartyLibs/stb_image/stb_image.cpp
|
|
../../examples/Importers/ImportColladaDemo/LoadMeshFromCollada.cpp
|
|
../../examples/Importers/ImportObjDemo/LoadMeshFromObj.cpp
|
|
../../examples/Importers/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.cpp
|
|
../../examples/Importers/ImportURDFDemo/BulletUrdfImporter.cpp
|
|
../../examples/Importers/ImportURDFDemo/MyMultiBodyCreator.cpp
|
|
../../examples/Importers/ImportURDFDemo/URDF2Bullet.cpp
|
|
../../examples/Importers/ImportURDFDemo/UrdfParser.cpp
|
|
../../examples/Importers/ImportURDFDemo/urdfStringSplit.cpp
|
|
../../examples/Importers/ImportMeshUtility/b3ImportMeshUtility.cpp
|
|
../../examples/MultiThreading/b3PosixThreadSupport.cpp
|
|
../../examples/MultiThreading/b3Win32ThreadSupport.cpp
|
|
../../examples/MultiThreading/b3ThreadSupportInterface.cpp
|
|
)
|
|
|
|
IF(WIN32)
|
|
LINK_LIBRARIES(
|
|
${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}
|
|
)
|
|
|
|
ENDIF(WIN32)
|
|
|
|
ADD_LIBRARY(pybullet SHARED ${pybullet_SRCS})
|
|
|
|
SET_TARGET_PROPERTIES(pybullet PROPERTIES VERSION ${BULLET_VERSION})
|
|
SET_TARGET_PROPERTIES(pybullet PROPERTIES SOVERSION ${BULLET_VERSION})
|
|
|
|
TARGET_LINK_LIBRARIES(pybullet BulletExampleBrowserLib BulletFileLoader BulletWorldImporter BulletSoftBody BulletDynamics BulletCollision BulletInverseDynamicsUtils BulletInverseDynamics LinearMath OpenGLWindow gwen BussIK Bullet3Common ${PYTHON_LIBRARIES})
|
|
|
|
|