Home | History | Annotate | Download | only in BulletDynamics
      1 INCLUDE_DIRECTORIES( ${BULLET_PHYSICS_SOURCE_DIR}/src  )
      2 
      3 
      4 
      5 SET(BulletDynamics_SRCS
      6 	Character/btKinematicCharacterController.cpp
      7 	ConstraintSolver/btConeTwistConstraint.cpp
      8 	ConstraintSolver/btContactConstraint.cpp
      9 	ConstraintSolver/btFixedConstraint.cpp
     10 	ConstraintSolver/btGearConstraint.cpp
     11 	ConstraintSolver/btGeneric6DofConstraint.cpp
     12 	ConstraintSolver/btGeneric6DofSpringConstraint.cpp
     13 	ConstraintSolver/btGeneric6DofSpring2Constraint.cpp
     14 	ConstraintSolver/btHinge2Constraint.cpp
     15 	ConstraintSolver/btHingeConstraint.cpp
     16 	ConstraintSolver/btPoint2PointConstraint.cpp
     17 	ConstraintSolver/btSequentialImpulseConstraintSolver.cpp
     18 	ConstraintSolver/btNNCGConstraintSolver.cpp
     19 	ConstraintSolver/btSliderConstraint.cpp
     20 	ConstraintSolver/btSolve2LinearConstraint.cpp
     21 	ConstraintSolver/btTypedConstraint.cpp
     22 	ConstraintSolver/btUniversalConstraint.cpp
     23 	Dynamics/btDiscreteDynamicsWorld.cpp
     24 	Dynamics/btRigidBody.cpp
     25 	Dynamics/btSimpleDynamicsWorld.cpp
     26 #	Dynamics/Bullet-C-API.cpp
     27 	Vehicle/btRaycastVehicle.cpp
     28 	Vehicle/btWheelInfo.cpp
     29 	Featherstone/btMultiBody.cpp
     30 	Featherstone/btMultiBodyConstraintSolver.cpp
     31 	Featherstone/btMultiBodyDynamicsWorld.cpp
     32 	Featherstone/btMultiBodyJointLimitConstraint.cpp
     33 	Featherstone/btMultiBodyConstraint.cpp
     34 	Featherstone/btMultiBodyPoint2Point.cpp
     35 	Featherstone/btMultiBodyJointMotor.cpp
     36 	MLCPSolvers/btDantzigLCP.cpp
     37 	MLCPSolvers/btMLCPSolver.cpp
     38 	MLCPSolvers/btLemkeAlgorithm.cpp
     39 )
     40 
     41 SET(Root_HDRS
     42 	../btBulletDynamicsCommon.h
     43 	../btBulletCollisionCommon.h
     44 )
     45 SET(ConstraintSolver_HDRS
     46 	ConstraintSolver/btConeTwistConstraint.h
     47 	ConstraintSolver/btConstraintSolver.h
     48 	ConstraintSolver/btContactConstraint.h
     49 	ConstraintSolver/btContactSolverInfo.h
     50 	ConstraintSolver/btFixedConstraint.h
     51 	ConstraintSolver/btGearConstraint.h
     52 	ConstraintSolver/btGeneric6DofConstraint.h
     53 	ConstraintSolver/btGeneric6DofSpringConstraint.h
     54 	ConstraintSolver/btGeneric6DofSpring2Constraint.h
     55 	ConstraintSolver/btHinge2Constraint.h
     56 	ConstraintSolver/btHingeConstraint.h
     57 	ConstraintSolver/btJacobianEntry.h
     58 	ConstraintSolver/btPoint2PointConstraint.h
     59 	ConstraintSolver/btSequentialImpulseConstraintSolver.h
     60 	ConstraintSolver/btNNCGConstraintSolver.h
     61 	ConstraintSolver/btSliderConstraint.h
     62 	ConstraintSolver/btSolve2LinearConstraint.h
     63 	ConstraintSolver/btSolverBody.h
     64 	ConstraintSolver/btSolverConstraint.h
     65 	ConstraintSolver/btTypedConstraint.h
     66 	ConstraintSolver/btUniversalConstraint.h
     67 )
     68 SET(Dynamics_HDRS
     69 	Dynamics/btActionInterface.h
     70 	Dynamics/btDiscreteDynamicsWorld.h
     71 	Dynamics/btDynamicsWorld.h
     72 	Dynamics/btSimpleDynamicsWorld.h
     73 	Dynamics/btRigidBody.h
     74 )
     75 SET(Vehicle_HDRS
     76 	Vehicle/btRaycastVehicle.h
     77 	Vehicle/btVehicleRaycaster.h
     78 	Vehicle/btWheelInfo.h
     79 )
     80 
     81 SET(Featherstone_HDRS
     82 	Featherstone/btMultiBody.h
     83 	Featherstone/btMultiBodyConstraintSolver.h
     84 	Featherstone/btMultiBodyDynamicsWorld.h
     85 	Featherstone/btMultiBodyLink.h
     86 	Featherstone/btMultiBodyLinkCollider.h
     87 	Featherstone/btMultiBodySolverConstraint.h
     88 	Featherstone/btMultiBodyConstraint.h
     89 	Featherstone/btMultiBodyJointLimitConstraint.h
     90 	Featherstone/btMultiBodyConstraint.h
     91 	Featherstone/btMultiBodyPoint2Point.h
     92 	Featherstone/btMultiBodyJointMotor.h
     93 )
     94 
     95 SET(MLCPSolvers_HDRS
     96 	MLCPSolvers/btDantzigLCP.h
     97 	MLCPSolvers/btDantzigSolver.h
     98 	MLCPSolvers/btMLCPSolver.h
     99 	MLCPSolvers/btMLCPSolverInterface.h
    100 	MLCPSolvers/btPATHSolver.h
    101 	MLCPSolvers/btSolveProjectedGaussSeidel.h	
    102 	MLCPSolvers/btLemkeSolver.h
    103 	MLCPSolvers/btLemkeAlgorithm.h
    104 )
    105 
    106 SET(Character_HDRS
    107 	Character/btCharacterControllerInterface.h
    108 	Character/btKinematicCharacterController.h
    109 )
    110 
    111 
    112 
    113 SET(BulletDynamics_HDRS
    114 	${Root_HDRS}
    115 	${ConstraintSolver_HDRS}
    116 	${Dynamics_HDRS}
    117 	${Vehicle_HDRS}
    118 	${Character_HDRS}
    119 	${Featherstone_HDRS}
    120 	${MLCPSolvers_HDRS}
    121 )
    122 
    123 
    124 ADD_LIBRARY(BulletDynamics ${BulletDynamics_SRCS} ${BulletDynamics_HDRS})
    125 SET_TARGET_PROPERTIES(BulletDynamics PROPERTIES VERSION ${BULLET_VERSION})
    126 SET_TARGET_PROPERTIES(BulletDynamics PROPERTIES SOVERSION ${BULLET_VERSION})
    127 IF (BUILD_SHARED_LIBS)
    128 	TARGET_LINK_LIBRARIES(BulletDynamics BulletCollision LinearMath)
    129 ENDIF (BUILD_SHARED_LIBS)
    130 
    131 IF (INSTALL_LIBS)
    132 	IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
    133 		IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5)
    134 			IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
    135 				INSTALL(TARGETS BulletDynamics DESTINATION .)
    136 			ELSE (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
    137 				INSTALL(TARGETS BulletDynamics RUNTIME DESTINATION bin
    138 								LIBRARY DESTINATION lib${LIB_SUFFIX}
    139 								ARCHIVE DESTINATION lib${LIB_SUFFIX})
    140 				INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
    141 DESTINATION ${INCLUDE_INSTALL_DIR} FILES_MATCHING PATTERN "*.h"  PATTERN
    142 ".svn" EXCLUDE PATTERN "CMakeFiles" EXCLUDE)
    143 				INSTALL(FILES ../btBulletDynamicsCommon.h
    144 DESTINATION ${INCLUDE_INSTALL_DIR}/BulletDynamics)
    145 			ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
    146 		ENDIF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5)
    147 
    148 		IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
    149 			SET_TARGET_PROPERTIES(BulletDynamics PROPERTIES FRAMEWORK true)
    150 			SET_TARGET_PROPERTIES(BulletDynamics PROPERTIES PUBLIC_HEADER "${Root_HDRS}")
    151 			# Have to list out sub-directories manually:
    152 			SET_PROPERTY(SOURCE ${ConstraintSolver_HDRS} PROPERTY MACOSX_PACKAGE_LOCATION Headers/ConstraintSolver)
    153 			SET_PROPERTY(SOURCE ${Dynamics_HDRS} PROPERTY MACOSX_PACKAGE_LOCATION Headers/Dynamics)
    154 			SET_PROPERTY(SOURCE ${Vehicle_HDRS} PROPERTY MACOSX_PACKAGE_LOCATION Headers/Vehicle)
    155 			SET_PROPERTY(SOURCE ${Character_HDRS} PROPERTY MACOSX_PACKAGE_LOCATION Headers/Character)
    156 			SET_PROPERTY(SOURCE ${Featherstone_HDRS} PROPERTY MACOSX_PACKAGE_LOCATION Headers/Featherstone)
    157 			SET_PROPERTY(SOURCE ${MLCPSolvers_HDRS} PROPERTY MACOSX_PACKAGE_LOCATION Headers/MLCPSolvers)
    158 		ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
    159 	ENDIF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
    160 ENDIF (INSTALL_LIBS)
    161