mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
CMake: Build p3bullet
This commit is contained in:
parent
e48b78bc50
commit
23f46d8a84
@ -290,10 +290,10 @@ package_option(GTK2)
|
|||||||
# Bullet
|
# Bullet
|
||||||
find_package(Bullet QUIET)
|
find_package(Bullet QUIET)
|
||||||
|
|
||||||
package_option(Bullet
|
package_option(BULLET
|
||||||
"Enable this option to support game dynamics with the Bullet physics library.")
|
"Enable this option to support game dynamics with the Bullet physics library.")
|
||||||
|
|
||||||
config_package(Bullet "Bullet physics")
|
config_package(BULLET "Bullet physics")
|
||||||
|
|
||||||
# ODE
|
# ODE
|
||||||
find_package(ODE QUIET)
|
find_package(ODE QUIET)
|
||||||
|
@ -68,6 +68,8 @@ add_subdirectory(src/testbed)
|
|||||||
# physics
|
# physics
|
||||||
add_subdirectory(src/physics)
|
add_subdirectory(src/physics)
|
||||||
add_subdirectory(src/particlesystem)
|
add_subdirectory(src/particlesystem)
|
||||||
|
# bullet
|
||||||
|
add_subdirectory(src/bullet)
|
||||||
# ode
|
# ode
|
||||||
add_subdirectory(src/ode)
|
add_subdirectory(src/ode)
|
||||||
|
|
||||||
@ -96,6 +98,10 @@ endif()
|
|||||||
if(HAVE_PYTHON)
|
if(HAVE_PYTHON)
|
||||||
add_python_module(core ${CORE_MODULE_COMPONENTS} LINK panda)
|
add_python_module(core ${CORE_MODULE_COMPONENTS} LINK panda)
|
||||||
|
|
||||||
|
if(HAVE_BULLET)
|
||||||
|
add_python_module(bullet p3bullet IMPORT panda3d.core)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(HAVE_EGG)
|
if(HAVE_EGG)
|
||||||
add_python_module(egg p3egg p3egg2pg LINK pandaegg IMPORT panda3d.core)
|
add_python_module(egg p3egg p3egg2pg LINK pandaegg IMPORT panda3d.core)
|
||||||
endif()
|
endif()
|
||||||
|
117
panda/src/bullet/CMakeLists.txt
Normal file
117
panda/src/bullet/CMakeLists.txt
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
if(NOT HAVE_BULLET)
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(P3BULLET_HEADERS
|
||||||
|
config_bullet.h
|
||||||
|
bullet_includes.h
|
||||||
|
bullet_utils.I bullet_utils.h
|
||||||
|
bulletAllHitsRayResult.I bulletAllHitsRayResult.h
|
||||||
|
bulletBaseCharacterControllerNode.I bulletBaseCharacterControllerNode.h
|
||||||
|
bulletBodyNode.I bulletBodyNode.h
|
||||||
|
bulletBoxShape.I bulletBoxShape.h
|
||||||
|
bulletCapsuleShape.I bulletCapsuleShape.h
|
||||||
|
bulletCharacterControllerNode.I bulletCharacterControllerNode.h
|
||||||
|
bulletClosestHitRayResult.I bulletClosestHitRayResult.h
|
||||||
|
bulletClosestHitSweepResult.I bulletClosestHitSweepResult.h
|
||||||
|
bulletConeShape.I bulletConeShape.h
|
||||||
|
bulletConeTwistConstraint.I bulletConeTwistConstraint.h
|
||||||
|
bulletConstraint.I bulletConstraint.h
|
||||||
|
bulletContactCallbackData.I bulletContactCallbackData.h
|
||||||
|
bulletContactCallbacks.h
|
||||||
|
bulletContactResult.I bulletContactResult.h
|
||||||
|
bulletConvexHullShape.I bulletConvexHullShape.h
|
||||||
|
bulletConvexPointCloudShape.I bulletConvexPointCloudShape.h
|
||||||
|
bulletCylinderShape.I bulletCylinderShape.h
|
||||||
|
bulletDebugNode.I bulletDebugNode.h
|
||||||
|
bulletFilterCallbackData.I bulletFilterCallbackData.h
|
||||||
|
bulletGenericConstraint.I bulletGenericConstraint.h
|
||||||
|
bulletGhostNode.I bulletGhostNode.h
|
||||||
|
bulletHeightfieldShape.I bulletHeightfieldShape.h
|
||||||
|
bulletHelper.I bulletHelper.h
|
||||||
|
bulletHingeConstraint.I bulletHingeConstraint.h
|
||||||
|
bulletManifoldPoint.I bulletManifoldPoint.h
|
||||||
|
bulletMinkowskiSumShape.I bulletMinkowskiSumShape.h
|
||||||
|
bulletMultiSphereShape.I bulletMultiSphereShape.h
|
||||||
|
bulletPersistentManifold.I bulletPersistentManifold.h
|
||||||
|
bulletPlaneShape.I bulletPlaneShape.h
|
||||||
|
bulletRigidBodyNode.I bulletRigidBodyNode.h
|
||||||
|
bulletRotationalLimitMotor.I bulletRotationalLimitMotor.h
|
||||||
|
bulletShape.I bulletShape.h
|
||||||
|
bulletSliderConstraint.I bulletSliderConstraint.h
|
||||||
|
bulletSoftBodyConfig.I bulletSoftBodyConfig.h
|
||||||
|
bulletSoftBodyControl.I bulletSoftBodyControl.h
|
||||||
|
bulletSoftBodyMaterial.I bulletSoftBodyMaterial.h
|
||||||
|
bulletSoftBodyNode.I bulletSoftBodyNode.h
|
||||||
|
bulletSoftBodyShape.I bulletSoftBodyShape.h
|
||||||
|
bulletSoftBodyWorldInfo.I bulletSoftBodyWorldInfo.h
|
||||||
|
bulletSphereShape.I bulletSphereShape.h
|
||||||
|
bulletSphericalConstraint.I bulletSphericalConstraint.h
|
||||||
|
bulletTickCallbackData.I bulletTickCallbackData.h
|
||||||
|
bulletTranslationalLimitMotor.I bulletTranslationalLimitMotor.h
|
||||||
|
bulletTriangleMesh.I bulletTriangleMesh.h
|
||||||
|
bulletTriangleMeshShape.I bulletTriangleMeshShape.h
|
||||||
|
bulletVehicle.I bulletVehicle.h
|
||||||
|
bulletWheel.I bulletWheel.h
|
||||||
|
bulletWorld.I bulletWorld.h)
|
||||||
|
|
||||||
|
set(P3BULLET_SOURCES
|
||||||
|
config_bullet.cxx
|
||||||
|
bullet_utils.cxx
|
||||||
|
bulletAllHitsRayResult.cxx
|
||||||
|
bulletBaseCharacterControllerNode.cxx
|
||||||
|
bulletBodyNode.cxx
|
||||||
|
bulletBoxShape.cxx
|
||||||
|
bulletCapsuleShape.cxx
|
||||||
|
bulletCharacterControllerNode.cxx
|
||||||
|
bulletClosestHitRayResult.cxx
|
||||||
|
bulletClosestHitSweepResult.cxx
|
||||||
|
bulletConeShape.cxx
|
||||||
|
bulletConeTwistConstraint.cxx
|
||||||
|
bulletConstraint.cxx
|
||||||
|
bulletContactCallbackData.cxx
|
||||||
|
bulletContactResult.cxx
|
||||||
|
bulletConvexHullShape.cxx
|
||||||
|
bulletConvexPointCloudShape.cxx
|
||||||
|
bulletCylinderShape.cxx
|
||||||
|
bulletDebugNode.cxx
|
||||||
|
bulletFilterCallbackData.cxx
|
||||||
|
bulletGenericConstraint.cxx
|
||||||
|
bulletGhostNode.cxx
|
||||||
|
bulletHeightfieldShape.cxx
|
||||||
|
bulletHelper.cxx
|
||||||
|
bulletHingeConstraint.cxx
|
||||||
|
bulletManifoldPoint.cxx
|
||||||
|
bulletMinkowskiSumShape.cxx
|
||||||
|
bulletMultiSphereShape.cxx
|
||||||
|
bulletPersistentManifold.cxx
|
||||||
|
bulletPlaneShape.cxx
|
||||||
|
bulletRigidBodyNode.cxx
|
||||||
|
bulletRotationalLimitMotor.cxx
|
||||||
|
bulletShape.cxx
|
||||||
|
bulletSliderConstraint.cxx
|
||||||
|
bulletSoftBodyConfig.cxx
|
||||||
|
bulletSoftBodyControl.cxx
|
||||||
|
bulletSoftBodyMaterial.cxx
|
||||||
|
bulletSoftBodyNode.cxx
|
||||||
|
bulletSoftBodyShape.cxx
|
||||||
|
bulletSoftBodyWorldInfo.cxx
|
||||||
|
bulletSphereShape.cxx
|
||||||
|
bulletSphericalConstraint.cxx
|
||||||
|
bulletTickCallbackData.cxx
|
||||||
|
bulletTranslationalLimitMotor.cxx
|
||||||
|
bulletTriangleMesh.cxx
|
||||||
|
bulletTriangleMeshShape.cxx
|
||||||
|
bulletVehicle.cxx
|
||||||
|
bulletWheel.cxx
|
||||||
|
bulletWorld.cxx)
|
||||||
|
|
||||||
|
composite_sources(p3bullet P3BULLET_SOURCES)
|
||||||
|
add_library(p3bullet ${P3BULLET_SOURCES} ${P3BULLET_HEADERS})
|
||||||
|
set_target_properties(p3bullet PROPERTIES DEFINE_SYMBOL BUILDING_PANDABULLET)
|
||||||
|
target_link_libraries(p3bullet panda)
|
||||||
|
target_use_packages(p3bullet BULLET)
|
||||||
|
target_interrogate(p3bullet ALL)
|
||||||
|
|
||||||
|
install(TARGETS p3bullet DESTINATION lib RUNTIME DESTINATION bin)
|
||||||
|
install(FILES ${P3BULLET_HEADERS} DESTINATION include/panda3d)
|
Loading…
x
Reference in New Issue
Block a user