2015-04-16 16:55:32 +00:00
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(
|
2015-04-17 05:14:27 +00:00
|
|
|
.
|
2015-12-07 22:08:04 +00:00
|
|
|
${BULLET_PHYSICS_SOURCE_DIR}/src
|
2015-04-17 05:14:27 +00:00
|
|
|
${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs
|
2015-04-16 16:55:32 +00:00
|
|
|
)
|
|
|
|
|
2016-05-03 20:02:06 +00:00
|
|
|
FILE(GLOB GwenGUISupport_SRCS "GwenGUISupport/*" )
|
|
|
|
FILE(GLOB GwenGUISupport_HDRS "GwenGUISupport/*" )
|
2015-04-17 05:14:27 +00:00
|
|
|
|
|
|
|
|
2016-05-03 20:02:06 +00:00
|
|
|
SET(BulletExampleBrowser_SRCS
|
|
|
|
OpenGLExampleBrowser.cpp
|
|
|
|
OpenGLGuiHelper.cpp
|
2016-03-03 02:01:33 +00:00
|
|
|
InProcessExampleBrowser.cpp
|
2016-05-03 20:02:06 +00:00
|
|
|
GL_ShapeDrawer.cpp
|
2015-05-29 22:10:52 +00:00
|
|
|
../SharedMemory/PhysicsServer.cpp
|
2015-09-25 05:50:34 +00:00
|
|
|
../SharedMemory/PhysicsClientSharedMemory.cpp
|
2015-07-14 22:30:17 +00:00
|
|
|
../SharedMemory/PhysicsClient.cpp
|
2015-07-27 20:28:47 +00:00
|
|
|
../SharedMemory/PhysicsClientC_API.cpp
|
2015-07-14 22:30:17 +00:00
|
|
|
../SharedMemory/PhysicsServerExample.cpp
|
|
|
|
../SharedMemory/PhysicsClientExample.cpp
|
|
|
|
../SharedMemory/PosixSharedMemory.cpp
|
|
|
|
../SharedMemory/Win32SharedMemory.cpp
|
2016-03-10 22:36:46 +00:00
|
|
|
../SharedMemory/InProcessMemory.cpp
|
2015-11-23 04:50:32 +00:00
|
|
|
../SharedMemory/PhysicsServerSharedMemory.cpp
|
|
|
|
../SharedMemory/PhysicsDirect.cpp
|
|
|
|
../SharedMemory/PhysicsDirect.h
|
|
|
|
../SharedMemory/PhysicsDirectC_API.cpp
|
|
|
|
../SharedMemory/PhysicsDirectC_API.h
|
2016-03-07 22:56:16 +00:00
|
|
|
../SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp
|
2015-11-23 04:50:32 +00:00
|
|
|
../SharedMemory/PhysicsLoopBack.cpp
|
|
|
|
../SharedMemory/PhysicsLoopBack.h
|
2015-11-23 16:00:42 +00:00
|
|
|
../SharedMemory/PhysicsLoopBackC_API.cpp
|
|
|
|
../SharedMemory/PhysicsLoopBackC_API.h
|
2015-11-23 04:50:32 +00:00
|
|
|
../SharedMemory/PhysicsServerCommandProcessor.cpp
|
|
|
|
../SharedMemory/PhysicsServerCommandProcessor.h
|
2015-04-17 05:14:27 +00:00
|
|
|
../BasicDemo/BasicExample.cpp
|
|
|
|
../BasicDemo/BasicExample.h
|
2015-11-24 19:12:02 +00:00
|
|
|
../InverseDynamics/InverseDynamicsExample.cpp
|
|
|
|
../InverseDynamics/InverseDynamicsExample.h
|
2015-04-17 05:14:27 +00:00
|
|
|
../ForkLift/ForkLiftDemo.cpp
|
|
|
|
../ForkLift/ForkLiftDemo.h
|
2015-08-06 02:22:48 +00:00
|
|
|
../Tutorial/Tutorial.cpp
|
|
|
|
../Tutorial/Tutorial.h
|
2015-08-07 21:18:57 +00:00
|
|
|
../Tutorial/Dof6ConstraintTutorial.cpp
|
|
|
|
../Tutorial/Dof6ConstraintTutorial.h
|
2015-10-17 20:44:00 +00:00
|
|
|
../Collision/CollisionSdkC_Api.cpp
|
|
|
|
../Collision/CollisionSdkC_Api.h
|
|
|
|
../Collision/CollisionTutorialBullet2.cpp
|
|
|
|
../Collision/CollisionTutorialBullet2.h
|
|
|
|
../Collision/Internal/Bullet2CollisionSdk.cpp
|
|
|
|
../Collision/Internal/Bullet2CollisionSdk.h
|
|
|
|
../Collision/Internal/CollisionSdkInterface.h
|
2015-10-20 01:21:45 +00:00
|
|
|
../Collision/Internal/RealTimeBullet3CollisionSdk.cpp
|
|
|
|
../Collision/Internal/RealTimeBullet3CollisionSdk.h
|
2015-04-17 05:14:27 +00:00
|
|
|
../GyroscopicDemo/GyroscopicSetup.cpp
|
|
|
|
../GyroscopicDemo/GyroscopicSetup.h
|
|
|
|
../Planar2D/Planar2D.cpp
|
|
|
|
../Planar2D/Planar2D.h
|
2015-05-03 18:45:30 +00:00
|
|
|
../RollingFrictionDemo/RollingFrictionDemo.cpp
|
|
|
|
../RollingFrictionDemo/RollingFrictionDemo.h
|
2015-05-03 17:01:30 +00:00
|
|
|
../FractureDemo/FractureDemo.cpp
|
|
|
|
../FractureDemo/btFractureBody.cpp
|
|
|
|
../FractureDemo/btFractureDynamicsWorld.cpp
|
|
|
|
../FractureDemo/FractureDemo.h
|
|
|
|
../FractureDemo/btFractureBody.h
|
|
|
|
../FractureDemo/btFractureDynamicsWorld.h
|
2015-05-03 17:46:22 +00:00
|
|
|
../DynamicControlDemo/MotorDemo.cpp
|
|
|
|
../DynamicControlDemo/MotorDemo.h
|
2015-08-21 22:18:18 +00:00
|
|
|
../MultiThreading/MultiThreadingExample.cpp
|
2015-12-07 22:08:04 +00:00
|
|
|
../MultiThreading/b3PosixThreadSupport.cpp
|
2015-08-21 22:18:18 +00:00
|
|
|
../MultiThreading/b3Win32ThreadSupport.cpp
|
2015-12-07 22:08:04 +00:00
|
|
|
../MultiThreading/b3ThreadSupportInterface.cpp
|
2015-08-07 20:17:33 +00:00
|
|
|
../RenderingExamples/TimeSeriesCanvas.cpp
|
|
|
|
../RenderingExamples/TimeSeriesCanvas.h
|
|
|
|
../RenderingExamples/TimeSeriesFontData.cpp
|
|
|
|
../RenderingExamples/TimeSeriesFontData.h
|
2015-12-07 22:08:04 +00:00
|
|
|
|
2015-08-07 20:17:33 +00:00
|
|
|
../RenderingExamples/CoordinateSystemDemo.cpp
|
2015-04-17 05:14:27 +00:00
|
|
|
../RenderingExamples/CoordinateSystemDemo.h
|
|
|
|
../RenderingExamples/RaytracerSetup.cpp
|
|
|
|
../RenderingExamples/RaytracerSetup.h
|
|
|
|
../RenderingExamples/RenderInstancingDemo.cpp
|
|
|
|
../RenderingExamples/RenderInstancingDemo.h
|
2015-07-15 20:02:20 +00:00
|
|
|
../RenderingExamples/TimeSeriesExample.cpp
|
2015-04-17 05:14:27 +00:00
|
|
|
../Benchmarks/BenchmarkDemo.cpp
|
|
|
|
../Benchmarks/BenchmarkDemo.h
|
|
|
|
../Benchmarks/landscapeData.h
|
|
|
|
../Benchmarks/TaruData
|
2015-04-30 22:31:44 +00:00
|
|
|
../Raycast/RaytestDemo.cpp
|
|
|
|
../Importers/ImportBsp/BspConverter.h
|
2015-04-30 21:03:50 +00:00
|
|
|
../Importers/ImportBullet/SerializeSetup.cpp
|
2015-12-07 22:08:04 +00:00
|
|
|
../Importers/ImportBullet/SerializeSetup.h
|
2015-04-30 21:03:50 +00:00
|
|
|
|
|
|
|
../../Extras/Serialize/BulletWorldImporter/btWorldImporter.cpp
|
|
|
|
../../Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp
|
2016-05-03 20:02:06 +00:00
|
|
|
../../Extras/Serialize/BulletFileLoader/bChunk.cpp
|
|
|
|
../../Extras/Serialize/BulletFileLoader/bFile.cpp
|
|
|
|
../../Extras/Serialize/BulletFileLoader/bDNA.cpp
|
|
|
|
../../Extras/Serialize/BulletFileLoader/btBulletFile.cpp
|
2015-04-30 21:03:50 +00:00
|
|
|
|
|
|
|
../Importers/ImportBsp/BspLoader.h
|
2015-04-17 05:14:27 +00:00
|
|
|
../Importers/ImportBsp/ImportBspExample.h
|
|
|
|
../Importers/ImportColladaDemo/btMatrix4x4.h
|
|
|
|
../Importers/ImportColladaDemo/ColladaGraphicsInstance.h
|
|
|
|
../Importers/ImportColladaDemo/ImportColladaSetup.h
|
|
|
|
../Importers/ImportColladaDemo/LoadMeshFromCollada.h
|
|
|
|
../Importers/ImportObjDemo/ImportObjExample.h
|
|
|
|
../Importers/ImportObjDemo/LoadMeshFromObj.h
|
|
|
|
../Importers/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.h
|
|
|
|
../Importers/ImportSTLDemo/ImportSTLSetup.h
|
|
|
|
../Importers/ImportSTLDemo/LoadMeshFromSTL.h
|
|
|
|
../Importers/ImportURDFDemo/ConvertRigidBodies2MultiBody.h
|
|
|
|
../Importers/ImportURDFDemo/ImportURDFSetup.h
|
|
|
|
../Importers/ImportURDFDemo/URDF2Bullet.h
|
|
|
|
../Importers/ImportURDFDemo/urdf_samples.h
|
|
|
|
../Importers/ImportBsp/BspConverter.cpp
|
|
|
|
../Importers/ImportBsp/BspLoader.cpp
|
|
|
|
../Importers/ImportBsp/ImportBspExample.cpp
|
|
|
|
../Importers/ImportColladaDemo/ImportColladaSetup.cpp
|
|
|
|
../Importers/ImportColladaDemo/LoadMeshFromCollada.cpp
|
|
|
|
../Importers/ImportObjDemo/ImportObjExample.cpp
|
|
|
|
../Importers/ImportObjDemo/LoadMeshFromObj.cpp
|
|
|
|
../Importers/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.cpp
|
|
|
|
../Importers/ImportSTLDemo/ImportSTLSetup.cpp
|
|
|
|
../Importers/ImportURDFDemo/ImportURDFSetup.cpp
|
|
|
|
../Importers/ImportURDFDemo/URDF2Bullet.cpp
|
2015-04-29 17:54:40 +00:00
|
|
|
../Importers/ImportURDFDemo/MyMultiBodyCreator.cpp
|
|
|
|
../Importers/ImportURDFDemo/MyMultiBodyCreator.h
|
2015-06-29 04:21:57 +00:00
|
|
|
../Importers/ImportURDFDemo/UrdfParser.cpp
|
|
|
|
../Importers/ImportURDFDemo/urdfStringSplit.cpp
|
|
|
|
../Importers/ImportURDFDemo/urdfStringSplit.h
|
2015-06-29 05:00:03 +00:00
|
|
|
../Importers/ImportURDFDemo/BulletUrdfImporter.cpp
|
|
|
|
../Importers/ImportURDFDemo/BulletUrdfImporter.h
|
2015-04-29 17:54:40 +00:00
|
|
|
../VoronoiFracture/VoronoiFractureDemo.cpp
|
|
|
|
../VoronoiFracture/VoronoiFractureDemo.h
|
|
|
|
../VoronoiFracture/btConvexConvexMprAlgorithm.cpp
|
|
|
|
../VoronoiFracture/btConvexConvexMprAlgorithm.h
|
|
|
|
../Vehicles/Hinge2Vehicle.cpp
|
|
|
|
../Vehicles/Hinge2Vehicle.h
|
2016-01-07 02:08:49 +00:00
|
|
|
../MultiBody/Pendulum.cpp
|
2016-02-23 02:40:00 +00:00
|
|
|
../MultiBody/MultiBodySoftContact.cpp
|
2015-04-29 17:54:40 +00:00
|
|
|
../MultiBody/TestJointTorqueSetup.cpp
|
|
|
|
../MultiBody/TestJointTorqueSetup.h
|
2015-07-17 06:58:36 +00:00
|
|
|
../MultiBody/InvertedPendulumPDControl.cpp
|
|
|
|
../MultiBody/InvertedPendulumPDControl.h
|
2015-07-07 06:00:46 +00:00
|
|
|
../MultiBody/MultiBodyConstraintFeedback.cpp
|
2015-04-29 17:54:40 +00:00
|
|
|
../MultiBody/MultiDofDemo.cpp
|
|
|
|
../MultiBody/MultiDofDemo.h
|
2016-02-23 02:40:00 +00:00
|
|
|
../RigidBody/RigidBodySoftContact.cpp
|
2015-06-16 06:12:29 +00:00
|
|
|
../Constraints/TestHingeTorque.cpp
|
|
|
|
../Constraints/TestHingeTorque.h
|
2015-04-29 17:54:40 +00:00
|
|
|
../Constraints/ConstraintDemo.cpp
|
|
|
|
../Constraints/ConstraintDemo.h
|
|
|
|
../Constraints/Dof6Spring2Setup.cpp
|
|
|
|
../Constraints/Dof6Spring2Setup.h
|
|
|
|
../Constraints/ConstraintPhysicsSetup.cpp
|
|
|
|
../Constraints/ConstraintPhysicsSetup.h
|
2015-12-07 22:08:04 +00:00
|
|
|
|
|
|
|
|
2015-08-06 02:22:48 +00:00
|
|
|
../ThirdPartyLibs/stb_image/stb_image.cpp
|
|
|
|
../ThirdPartyLibs/stb_image/stb_image.h
|
|
|
|
|
2015-12-07 22:08:04 +00:00
|
|
|
../ThirdPartyLibs/Wavefront/tiny_obj_loader.cpp
|
|
|
|
../ThirdPartyLibs/tinyxml/tinystr.cpp
|
|
|
|
../ThirdPartyLibs/tinyxml/tinyxml.cpp
|
|
|
|
../ThirdPartyLibs/tinyxml/tinyxmlerror.cpp
|
|
|
|
../ThirdPartyLibs/tinyxml/tinyxmlparser.cpp
|
|
|
|
|
|
|
|
../ThirdPartyLibs/tinyxml/tinystr.cpp
|
|
|
|
../ThirdPartyLibs/tinyxml/tinyxml.cpp
|
|
|
|
../ThirdPartyLibs/tinyxml/tinyxmlerror.cpp
|
|
|
|
../ThirdPartyLibs/tinyxml/tinyxmlparser.cpp
|
2015-04-17 05:14:27 +00:00
|
|
|
../Utils/b3Clock.cpp
|
|
|
|
../Utils/b3Clock.h
|
2015-07-04 01:17:14 +00:00
|
|
|
../Utils/b3ResourcePath.cpp
|
|
|
|
../Utils/b3ResourcePath.h
|
2016-05-03 20:02:06 +00:00
|
|
|
${GwenGUISupport_SRCS}
|
|
|
|
${GwenGUISupport_HDRS}
|
2015-04-16 16:55:32 +00:00
|
|
|
${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc
|
|
|
|
)
|
|
|
|
|
2016-05-03 20:02:06 +00:00
|
|
|
IF (WIN32)
|
|
|
|
INCLUDE_DIRECTORIES(
|
|
|
|
${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/Glew
|
|
|
|
)
|
|
|
|
IF (BUILD_SHARED_LIBS)
|
|
|
|
TARGET_LINK_LIBRARIES(
|
|
|
|
Bullet3Common BulletSoftBody BulletDynamics BulletCollision BulletInverseDynamicsUtils
|
|
|
|
BulletInverseDynamics LinearMath OpenGLWindow gwen
|
|
|
|
${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}
|
|
|
|
)
|
|
|
|
ENDIF (BUILD_SHARED_LIBS)
|
|
|
|
ADD_DEFINITIONS(-DGLEW_STATIC)
|
|
|
|
ELSE(WIN32)
|
|
|
|
IF(APPLE)
|
|
|
|
find_library(COCOA NAMES Cocoa)
|
|
|
|
MESSAGE(${COCOA})
|
|
|
|
IF (BUILD_SHARED_LIBS)
|
|
|
|
TARGET_LINK_LIBRARIES(
|
|
|
|
Bullet3Common BulletSoftBody BulletDynamics BulletCollision BulletInverseDynamicsUtils
|
|
|
|
BulletInverseDynamics LinearMath OpenGLWindow gwen
|
|
|
|
${COCOA} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}
|
|
|
|
)
|
|
|
|
ELSE(APPLE)
|
|
|
|
ENDIF (BUILD_SHARED_LIBS)
|
|
|
|
ADD_DEFINITIONS("-DGLEW_INIT_OPENGL11_FUNCTIONS=1")
|
|
|
|
ADD_DEFINITIONS("-DGLEW_STATIC")
|
|
|
|
ADD_DEFINITIONS("-DGLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS=1")
|
|
|
|
INCLUDE_DIRECTORIES( ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/Glew )
|
|
|
|
IF (BUILD_SHARED_LIBS)
|
|
|
|
TARGET_LINK_LIBRARIES(
|
|
|
|
Bullet3Common BulletSoftBody BulletDynamics BulletCollision BulletInverseDynamicsUtils
|
|
|
|
BulletInverseDynamics LinearMath OpenGLWindow gwen
|
|
|
|
pthread dl
|
|
|
|
)
|
|
|
|
ENDIF(BUILD_SHARED_LIBS)
|
|
|
|
ENDIF(APPLE)
|
|
|
|
ENDIF(WIN32)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_LIBRARY(BulletExampleBrowserLib ${BulletExampleBrowser_SRCS} )
|
|
|
|
SET_TARGET_PROPERTIES(BulletExampleBrowserLib PROPERTIES VERSION ${BULLET_VERSION})
|
|
|
|
SET_TARGET_PROPERTIES(BulletExampleBrowserLib PROPERTIES SOVERSION ${BULLET_VERSION})
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(
|
|
|
|
.
|
|
|
|
${BULLET_PHYSICS_SOURCE_DIR}/src
|
|
|
|
${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2015-04-16 16:55:32 +00:00
|
|
|
LINK_LIBRARIES(
|
2016-05-03 20:02:06 +00:00
|
|
|
BulletExampleBrowserLib Bullet3Common BulletSoftBody BulletDynamics BulletCollision BulletInverseDynamicsUtils BulletInverseDynamics LinearMath OpenGLWindow gwen
|
2015-04-16 16:55:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
IF (WIN32)
|
|
|
|
INCLUDE_DIRECTORIES(
|
2016-05-03 20:02:06 +00:00
|
|
|
${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/Glew
|
2015-04-16 16:55:32 +00:00
|
|
|
)
|
2015-12-08 00:38:43 +00:00
|
|
|
LINK_LIBRARIES(
|
|
|
|
${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}
|
|
|
|
)
|
2015-04-16 16:55:32 +00:00
|
|
|
ADD_DEFINITIONS(-DGLEW_STATIC)
|
|
|
|
ELSE(WIN32)
|
|
|
|
IF(APPLE)
|
|
|
|
find_library(COCOA NAMES Cocoa)
|
|
|
|
MESSAGE(${COCOA})
|
2015-12-08 00:38:43 +00:00
|
|
|
link_libraries(${COCOA} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY})
|
2015-04-17 05:14:27 +00:00
|
|
|
ELSE(APPLE)
|
2015-04-16 16:55:32 +00:00
|
|
|
ADD_DEFINITIONS("-DGLEW_INIT_OPENGL11_FUNCTIONS=1")
|
|
|
|
ADD_DEFINITIONS("-DGLEW_STATIC")
|
2015-12-07 22:08:04 +00:00
|
|
|
ADD_DEFINITIONS("-DGLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS=1")
|
|
|
|
INCLUDE_DIRECTORIES( ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/Glew )
|
2015-04-16 16:55:32 +00:00
|
|
|
LINK_LIBRARIES( pthread dl)
|
|
|
|
ENDIF(APPLE)
|
|
|
|
ENDIF(WIN32)
|
2015-12-07 22:08:04 +00:00
|
|
|
|
|
|
|
|
2015-04-16 16:55:32 +00:00
|
|
|
|
|
|
|
|
2015-04-17 05:14:27 +00:00
|
|
|
ADD_EXECUTABLE(App_ExampleBrowser
|
2016-05-03 20:02:06 +00:00
|
|
|
main.cpp
|
|
|
|
ExampleEntries.cpp
|
|
|
|
ExampleEntries.h
|
2015-04-16 16:55:32 +00:00
|
|
|
)
|
2015-12-07 22:08:04 +00:00
|
|
|
|
2015-04-16 16:55:32 +00:00
|
|
|
|
|
|
|
IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)
|
2015-04-17 05:14:27 +00:00
|
|
|
SET_TARGET_PROPERTIES(App_ExampleBrowser PROPERTIES DEBUG_POSTFIX "_Debug")
|
|
|
|
SET_TARGET_PROPERTIES(App_ExampleBrowser PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel")
|
|
|
|
SET_TARGET_PROPERTIES(App_ExampleBrowser PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo")
|
2015-04-16 16:55:32 +00:00
|
|
|
ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)
|