Imported Upstream version 2.81
[platform/upstream/libbullet.git] / Demos / ThreadingDemo / CMakeLists.txt
1 # This is basically the overall name of the project in Visual Studio this is the name of the Solution File\r
2 \r
3 \r
4 # For every executable you have with a main method you should have an add_executable line below.\r
5 # For every add executable line you should list every .cpp and .h file you have associated with that executable.  \r
6 \r
7 \r
8 # This is the variable for Windows.  I use this to define the root of my directory structure.\r
9 SET(GLUT_ROOT ${BULLET_PHYSICS_SOURCE_DIR}/Glut)\r
10 \r
11 # You shouldn't have to modify anything below this line \r
12 ########################################################\r
13 \r
14 #currently this demo has only been tested under Windows 32bit\r
15 #IF (WIN32)\r
16 \r
17 INCLUDE_DIRECTORIES(\r
18         ${BULLET_PHYSICS_SOURCE_DIR}/src ${BULLET_PHYSICS_SOURCE_DIR}/Demos/OpenGL \r
19         ${VECTOR_MATH_INCLUDE}\r
20 )\r
21 \r
22 LINK_LIBRARIES(\r
23 BulletMultiThreaded BulletDynamics  BulletCollision LinearMath \r
24 )\r
25 \r
26 IF (WIN32)\r
27 ADD_EXECUTABLE(AppThreadingDemo\r
28                 main.cpp\r
29                 ${BULLET_PHYSICS_SOURCE_DIR}/build/bullet.rc\r
30         )\r
31 ELSE()\r
32         ADD_EXECUTABLE(AppThreadingDemo\r
33                 main.cpp\r
34         )\r
35 ENDIF()\r
36 \r
37 IF (UNIX)\r
38   TARGET_LINK_LIBRARIES(AppThreadingDemo pthread)\r
39 ENDIF(UNIX)\r
40 \r
41 IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)\r
42                         SET_TARGET_PROPERTIES(AppThreadingDemo PROPERTIES  DEBUG_POSTFIX "_Debug")\r
43                         SET_TARGET_PROPERTIES(AppThreadingDemo PROPERTIES  MINSIZEREL_POSTFIX "_MinsizeRel")\r
44                         SET_TARGET_PROPERTIES(AppThreadingDemo PROPERTIES  RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo")\r
45 ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)\r
46 \r
47 #ENDIF(WIN32)\r