mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-09 00:50:17 +00:00
0d1fcf7c48
Rename member numerator to m_numerator in btConvexHullComputer.cpp to avoid confusion (Thanks to Ian for the feedback) Add btSoftBody::addAeroForceToNode and btSoftBody::addAeroForceToFace, thanks to Dongsoo Han/Saggita
86 lines
2.9 KiB
CMake
86 lines
2.9 KiB
CMake
|
|
|
|
INCLUDE_DIRECTORIES(
|
|
${BULLET_PHYSICS_SOURCE_DIR}/src
|
|
${BULLET_PHYSICS_SOURCE_DIR}/Demos/SharedOpenCL
|
|
${BULLET_PHYSICS_SOURCE_DIR}/Demos/OpenGL
|
|
${INTEL_OPENCL_INCLUDES}
|
|
)
|
|
|
|
ADD_DEFINITIONS(-DUSE_INTEL_OPENCL)
|
|
ADD_DEFINITIONS(-DCL_PLATFORM_INTEL)
|
|
|
|
|
|
IF (CMAKE_CL_64)
|
|
SET(CMAK_GLEW_LIBRARY
|
|
${BULLET_PHYSICS_SOURCE_DIR}/Glut/glew64.lib )
|
|
ELSE(CMAKE_CL_64)
|
|
SET(CMAK_GLEW_LIBRARY ${BULLET_PHYSICS_SOURCE_DIR}/Glut/glew32.lib )
|
|
ENDIF(CMAKE_CL_64)
|
|
|
|
|
|
IF (USE_GLUT)
|
|
LINK_LIBRARIES(
|
|
OpenGLSupport
|
|
BulletSoftBodySolvers_OpenCL_Intel
|
|
BulletMultiThreaded
|
|
BulletSoftBody
|
|
BulletDynamics
|
|
BulletCollision
|
|
LinearMath
|
|
${GLUT_glut_LIBRARY}
|
|
${OPENGL_gl_LIBRARY}
|
|
${OPENGL_glu_LIBRARY}
|
|
${CMAK_GLEW_LIBRARY}
|
|
${INTEL_OPENCL_LIBRARIES}
|
|
)
|
|
|
|
|
|
ADD_EXECUTABLE(AppOpenCLClothDemo_Intel
|
|
../cl_cloth_demo.cpp
|
|
${BULLET_PHYSICS_SOURCE_DIR}/Demos/SharedOpenCL/btOpenCLUtils.cpp
|
|
${BULLET_PHYSICS_SOURCE_DIR}/Demos/SharedOpenCL/btOpenCLUtils.h
|
|
${BULLET_PHYSICS_SOURCE_DIR}/Demos/SharedOpenCL/btOpenCLInclude.h
|
|
# ${BULLET_PHYSICS_SOURCE_DIR}/Demos/OpenGL/GLDebugDrawer.cpp
|
|
../gl_win.cpp
|
|
../clstuff.cpp
|
|
../clstuff.h
|
|
../gl_win.h
|
|
../cloth.h
|
|
|
|
)
|
|
ELSE (USE_GLUT)
|
|
ENDIF (USE_GLUT)
|
|
|
|
IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
|
|
IF(WIN32)
|
|
IF (CMAKE_CL_64)
|
|
ADD_CUSTOM_COMMAND( TARGET AppOpenCLClothDemo_Intel POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/glut64.dll ${CMAKE_CURRENT_BINARY_DIR}
|
|
)
|
|
ADD_CUSTOM_COMMAND( TARGET AppOpenCLClothDemo_Intel POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/GLEW64.DLL ${CMAKE_CURRENT_BINARY_DIR})
|
|
ELSE(CMAKE_CL_64)
|
|
|
|
ADD_CUSTOM_COMMAND( TARGET AppOpenCLClothDemo_Intel POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/GLUT32.DLL ${CMAKE_CURRENT_BINARY_DIR}
|
|
)
|
|
ADD_CUSTOM_COMMAND( TARGET AppOpenCLClothDemo_Intel POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/GLEW32.DLL ${CMAKE_CURRENT_BINARY_DIR})
|
|
ENDIF(CMAKE_CL_64)
|
|
ENDIF(WIN32)
|
|
ADD_CUSTOM_COMMAND( TARGET AppOpenCLClothDemo_Intel POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/bullet_logo.png ${CMAKE_CURRENT_BINARY_DIR}
|
|
)
|
|
ENDIF(NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
|
|
|
|
IF (UNIX)
|
|
TARGET_LINK_LIBRARIES(AppOpenCLClothDemo_Intel pthread)
|
|
ENDIF(UNIX)
|
|
|
|
IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)
|
|
SET_TARGET_PROPERTIES(AppOpenCLClothDemo_Intel PROPERTIES DEBUG_POSTFIX "_Debug")
|
|
SET_TARGET_PROPERTIES(AppOpenCLClothDemo_Intel PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel")
|
|
SET_TARGET_PROPERTIES(AppOpenCLClothDemo_Intel PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo")
|
|
ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)
|