Initialize libbullet git in 2.0_beta.
[platform/upstream/libbullet.git] / Demos / UserCollisionAlgorithm / CMakeLists.txt
1 # This is basically the overall name of the project in Visual Studio this is the name of the Solution File
2
3
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.  
6
7
8
9 # You shouldn't have to modify anything below this line 
10 ########################################################
11
12
13
14 INCLUDE_DIRECTORIES(
15 ${BULLET_PHYSICS_SOURCE_DIR}/src ${BULLET_PHYSICS_SOURCE_DIR}/Demos/OpenGL  
16 )
17
18 LINK_LIBRARIES(
19  OpenGLSupport   BulletDynamics  BulletCollision LinearMath    ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}
20 )
21
22 IF (WIN32)
23         ADD_EXECUTABLE(AppUserCollisionAlgorithm
24                 UserCollisionAlgorithm.cpp
25                 ${BULLET_PHYSICS_SOURCE_DIR}/msvc/bullet.rc
26         )
27 ELSE()
28         ADD_EXECUTABLE(AppUserCollisionAlgorithm
29                 UserCollisionAlgorithm.cpp
30         )
31 ENDIF()
32
33
34 IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)\r
35                         SET_TARGET_PROPERTIES(AppUserCollisionAlgorithm PROPERTIES  DEBUG_POSTFIX "_Debug")\r
36                         SET_TARGET_PROPERTIES(AppUserCollisionAlgorithm PROPERTIES  MINSIZEREL_POSTFIX "_MinsizeRel")\r
37                         SET_TARGET_PROPERTIES(AppUserCollisionAlgorithm PROPERTIES  RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo")\r
38 ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)