resetting manifest requested domain to floor
[platform/upstream/libbullet.git] / Demos / RaytestDemo / 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 INCLUDE_DIRECTORIES(\r
15 ${BULLET_PHYSICS_SOURCE_DIR}/src ${BULLET_PHYSICS_SOURCE_DIR}/Demos/OpenGL \r
16 )\r
17 \r
18 \r
19 \r
20 IF (USE_GLUT)\r
21         LINK_LIBRARIES(\r
22         OpenGLSupport  BulletDynamics  BulletCollision LinearMath  ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}\r
23         )\r
24 \r
25 IF (WIN32)\r
26 ADD_EXECUTABLE(AppRaytestDemo\r
27                 main.cpp\r
28                 RaytestDemo.cpp \r
29                 RaytestDemo.h\r
30                 ${BULLET_PHYSICS_SOURCE_DIR}/build/bullet.rc\r
31         )\r
32 ELSE()\r
33         ADD_EXECUTABLE(AppRaytestDemo\r
34                 main.cpp\r
35                 RaytestDemo.cpp \r
36                 RaytestDemo.h\r
37         )\r
38 ENDIF()\r
39 \r
40 \r
41 \r
42 \r
43         IF (WIN32)\r
44                 IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)\r
45                         IF (CMAKE_CL_64)\r
46                                 ADD_CUSTOM_COMMAND(\r
47                                         TARGET AppRaytestDemo\r
48                                         POST_BUILD\r
49                                         COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/glut64.dll ${CMAKE_CURRENT_BINARY_DIR}\r
50                                 )\r
51                         ELSE(CMAKE_CL_64)\r
52                                 ADD_CUSTOM_COMMAND(\r
53                                         TARGET AppRaytestDemo\r
54                                         POST_BUILD\r
55 #                               COMMAND copy /Y ${BULLET_PHYSICS_SOURCE_DIR}/GLUT32.DLL ${CMAKE_CURRENT_BINARY_DIR}\r
56                                         COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/GLUT32.DLL ${CMAKE_CURRENT_BINARY_DIR}\r
57                                 )\r
58                         ENDIF(CMAKE_CL_64)\r
59                 ENDIF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)\r
60 \r
61         ENDIF(WIN32)\r
62 ELSE (USE_GLUT)\r
63 \r
64  \r
65 \r
66         LINK_LIBRARIES(\r
67         OpenGLSupport  BulletDynamics  BulletCollision LinearMath  ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}\r
68         )\r
69 \r
70 \r
71         ADD_EXECUTABLE(AppRaytestDemo\r
72                 WIN32\r
73                 ../OpenGL/Win32AppMain.cpp\r
74                 Win32RaytestDemo.cpp\r
75                 RaytestDemo.cpp \r
76                 RaytestDemo.h\r
77                 ${BULLET_PHYSICS_SOURCE_DIR}/build/bullet.rc\r
78         )\r
79         \r
80         \r
81 ENDIF (USE_GLUT)\r
82 \r
83 IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)\r
84                         SET_TARGET_PROPERTIES(AppRaytestDemo PROPERTIES  DEBUG_POSTFIX "_Debug")\r
85                         SET_TARGET_PROPERTIES(AppRaytestDemo PROPERTIES  MINSIZEREL_POSTFIX "_MinsizeRel")\r
86                         SET_TARGET_PROPERTIES(AppRaytestDemo PROPERTIES  RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo")\r
87 ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)\r