Improve CMake support:
Add CMake install support for libbulletmath,libbulletcollision,libbulletdynamics,libbulletsoftbody,and toplevel include files Options to enable/disable BUILD_DEMOS and BUILD_ETRAS Fixed compile issue in BulletMultiThreaded Fixed double-precision issues with btMatrix3x3::getEulerZYX
This commit is contained in:
@@ -2,35 +2,43 @@ INCLUDE_DIRECTORIES(
|
||||
${BULLET_PHYSICS_SOURCE_DIR}/src }
|
||||
)
|
||||
|
||||
ADD_LIBRARY(LibBulletDynamics
|
||||
|
||||
SET(LibBulletDynamics_SRCS
|
||||
ConstraintSolver/btContactConstraint.cpp
|
||||
ConstraintSolver/btContactConstraint.h
|
||||
ConstraintSolver/btConeTwistConstraint.cpp
|
||||
ConstraintSolver/btConeTwistConstraint.h
|
||||
ConstraintSolver/btGeneric6DofConstraint.cpp
|
||||
ConstraintSolver/btGeneric6DofConstraint.h
|
||||
ConstraintSolver/btHingeConstraint.cpp
|
||||
ConstraintSolver/btHingeConstraint.h
|
||||
ConstraintSolver/btPoint2PointConstraint.cpp
|
||||
ConstraintSolver/btPoint2PointConstraint.h
|
||||
ConstraintSolver/btSequentialImpulseConstraintSolver.cpp
|
||||
ConstraintSolver/btSequentialImpulseConstraintSolver.h
|
||||
ConstraintSolver/btSliderConstraint.cpp
|
||||
ConstraintSolver/btSliderConstraint.h
|
||||
ConstraintSolver/btSolve2LinearConstraint.cpp
|
||||
ConstraintSolver/btSolve2LinearConstraint.h
|
||||
ConstraintSolver/btTypedConstraint.cpp
|
||||
ConstraintSolver/btTypedConstraint.h
|
||||
Dynamics/Bullet-C-API.cpp
|
||||
Dynamics/btDiscreteDynamicsWorld.cpp
|
||||
Dynamics/btDiscreteDynamicsWorld.h
|
||||
Dynamics/btSimpleDynamicsWorld.cpp
|
||||
Dynamics/btSimpleDynamicsWorld.h
|
||||
Dynamics/btRigidBody.cpp
|
||||
Dynamics/btRigidBody.h
|
||||
Vehicle/btRaycastVehicle.cpp
|
||||
Vehicle/btRaycastVehicle.h
|
||||
Vehicle/btWheelInfo.cpp
|
||||
)
|
||||
|
||||
SET(LibBulletDynamics_HDRS
|
||||
ConstraintSolver/btContactConstraint.h
|
||||
ConstraintSolver/btConeTwistConstraint.h
|
||||
ConstraintSolver/btGeneric6DofConstraint.h
|
||||
ConstraintSolver/btHingeConstraint.h
|
||||
ConstraintSolver/btPoint2PointConstraint.h
|
||||
ConstraintSolver/btSequentialImpulseConstraintSolver.h
|
||||
ConstraintSolver/btSliderConstraint.h
|
||||
ConstraintSolver/btSolve2LinearConstraint.h
|
||||
ConstraintSolver/btTypedConstraint.h
|
||||
Dynamics/btDiscreteDynamicsWorld.h
|
||||
Dynamics/btSimpleDynamicsWorld.h
|
||||
Dynamics/btRigidBody.h
|
||||
Vehicle/btRaycastVehicle.h
|
||||
Vehicle/btWheelInfo.h
|
||||
)
|
||||
|
||||
#ADD_LIBRARY(LibBulletDynamics SHARED ${LibBulletDynamics_SRCS} ${LibBulletDynamics_HDRS})
|
||||
ADD_LIBRARY(LibBulletDynamics ${LibBulletDynamics_SRCS} ${LibBulletDynamics_HDRS})
|
||||
|
||||
INSTALL(TARGETS LibBulletDynamics DESTINATION lib)
|
||||
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION include FILES_MATCHING PATTERN "*.h")
|
||||
|
||||
Reference in New Issue
Block a user