INCLUDE_DIRECTORIES( ${BULLET_PHYSICS_SOURCE_DIR}/src ${BULLET_PHYSICS_SOURCE_DIR}/btgui ) SET(App_AllBullet2Demos_SRCS main.cpp BulletDemoInterface.h BulletDemoEntries.h ../bullet2/BasicDemo/Bullet2RigidBodyDemo.cpp ../bullet2/BasicDemo/Bullet2RigidBodyDemo.h ../../Demos/BasicDemo/BasicDemoPhysicsSetup.cpp ../../Demos/BasicDemo/BasicDemoPhysicsSetup.h ../../Demos/CcdPhysicsDemo/CcdPhysicsSetup.cpp ../../Demos/CcdPhysicsDemo/CcdPhysicsSetup.h ../bullet2/FeatherstoneMultiBodyDemo/BulletMultiBodyDemos.cpp ../bullet2/FeatherstoneMultiBodyDemo/BulletMultiBodyDemos.h ../bullet2/FeatherstoneMultiBodyDemo/MultiDofDemo.cpp ../bullet2/FeatherstoneMultiBodyDemo/MultiDofDemo.h ../bullet2/BasicDemo/BasicDemo.cpp ../bullet2/BasicDemo/BasicDemo.h # the next few demos are not converted to 'newer' structure yet # target is to convert all Bullet 2 demos in new structure, but need to settle down on features # ../bullet2/BasicDemo/HingeDemo.cpp # ../bullet2/BasicDemo/HingeDemo.h # ../bullet2/ChainDemo/ChainDemo.cpp # ../bullet2/ChainDemo/ChainDemo.h # ../bullet2/RagdollDemo/RagdollDemo.cpp # ../bullet2/RagdollDemo/RagdollDemo.h # ../bullet2/LuaDemo/LuaDemo.cpp # ../bullet2/LuaDemo/LuaDemo.h ../GpuDemos/gwenUserInterface.cpp ../GpuDemos/gwenUserInterface.h ../../btgui/Timing/b3Clock.cpp ../../btgui/Timing/b3Clock.h ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc ) LINK_LIBRARIES( Bullet3Common BulletSoftBody BulletDynamics BulletCollision LinearMath OpenGLWindow gwen ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} ) IF (WIN32) SET(App_AllBullet2Demos_SRCS ${App_AllBullet2Demos_SRCS} ${App_AllBullet2Demos_Common_SRCS}) INCLUDE_DIRECTORIES( ${BULLET_PHYSICS_SOURCE_DIR}/btgui/OpenGLWindow/GlewWindows ) ADD_DEFINITIONS(-DGLEW_STATIC) ELSE(WIN32) IF(APPLE) find_library(COCOA NAMES Cocoa) MESSAGE(${COCOA}) link_libraries(${COCOA}) ELSE(APPLE) LINK_LIBRARIES( pthread GLEW) ENDIF(APPLE) ENDIF(WIN32) ADD_EXECUTABLE(App_AllBullet2Demos ${App_AllBullet2Demos_SRCS} ) IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) SET_TARGET_PROPERTIES(App_AllBullet2Demos PROPERTIES DEBUG_POSTFIX "_Debug") SET_TARGET_PROPERTIES(App_AllBullet2Demos PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") SET_TARGET_PROPERTIES(App_AllBullet2Demos PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)