I used the demo BasicDemo to build an independent program that used only the installed dynamic libraries (installed following what I wrote in http://www.bulletphysics.com/Bullet/php ... f=9&t=3825) .
i copied the directory Demos/BasicDemo in a new dir like prjs/basicdemo
and the directory Demos/OpenGL to prjs/basicdemo/OpenGL
and then I modified the CMakeLists.txt file as specified in the attachment
what i did is adding
Code: Select all
find_package(GLUT)
find_package(OpenGL)
Code: Select all
SET(GLUT_ROOT ${BULLET_PHYSICS_SOURCE_DIR}/Glut)
Code: Select all
INCLUDE_DIRECTORIES(
${BULLET_PHYSICS_SOURCE_DIR}/src ${BULLET_PHYSICS_SOURCE_DIR}/Demos/OpenGL }
Code: Select all
INCLUDE_DIRECTORIES(
${BULLET_PHYSICS_SOURCE_DIR}/src OpenGL }
)
Code: Select all
cmake -GXcode .