1 # This is basically the overall name of the project in Visual Studio this is the name of the Solution File
4 # For every executable you have with a main method you should have an add_executable line below.
5 # For every add executable line you should list every .cpp and .h file you have associated with that executable.
8 # This is the variable for Windows. I use this to define the root of my directory structure.
9 SET(GLUT_ROOT ${BULLET_PHYSICS_SOURCE_DIR}/Glut)
11 # You shouldn't have to modify anything below this line
12 ########################################################
15 ${BULLET_PHYSICS_SOURCE_DIR}/src
16 ${BULLET_PHYSICS_SOURCE_DIR}/Demos/OpenGL
17 ${BULLET_PHYSICS_SOURCE_DIR}/Extras/HACD
18 ${BULLET_PHYSICS_SOURCE_DIR}/Extras/ConvexDecomposition
19 ${BULLET_PHYSICS_SOURCE_DIR}/Extras/Serialize/BulletFileLoader
20 ${BULLET_PHYSICS_SOURCE_DIR}/Extras/Serialize/BulletWorldImporter
26 OpenGLSupport BulletWorldImporter BulletDynamics BulletCollision LinearMath BulletFileLoader HACD ConvexDecomposition ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}
29 ADD_EXECUTABLE(AppConvexDecompositionDemo
31 ConvexDecompositionDemo.cpp
32 ConvexDecompositionDemo.h
35 IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
38 TARGET AppConvexDecompositionDemo
40 COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/glut64.dll ${CMAKE_CURRENT_BINARY_DIR}
44 TARGET AppConvexDecompositionDemo
46 COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/GLUT32.DLL ${CMAKE_CURRENT_BINARY_DIR}
49 ENDIF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
54 OpenGLSupport BulletWorldImporter BulletDynamics BulletCollision LinearMath BulletFileLoader HACD ConvexDecomposition ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}
57 ADD_EXECUTABLE(AppConvexDecompositionDemo
59 ../OpenGL/Win32AppMain.cpp
60 ConvexDecompositionDemo.cpp
61 ConvexDecompositionDemo.h
62 Win32ConvexDecompositionDemo.cpp
63 ${BULLET_PHYSICS_SOURCE_DIR}/build/bullet.rc
68 IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
70 TARGET AppConvexDecompositionDemo
72 COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/Demos/SerializeDemo/testFile.bullet ${CMAKE_CURRENT_BINARY_DIR}/testFile.bullet
73 COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/file.obj ${CMAKE_CURRENT_BINARY_DIR}
75 ENDIF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
79 IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)
80 SET_TARGET_PROPERTIES(AppConvexDecompositionDemo PROPERTIES DEBUG_POSTFIX "_Debug")
81 SET_TARGET_PROPERTIES(AppConvexDecompositionDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel")
82 SET_TARGET_PROPERTIES(AppConvexDecompositionDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo")
83 ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)