2017-09-11 04:20:54 +00:00
|
|
|
INCLUDE_DIRECTORIES(
|
|
|
|
${BULLET_PHYSICS_SOURCE_DIR}/Extras/GIMPACT/include
|
|
|
|
${BULLET_PHYSICS_SOURCE_DIR}/src
|
|
|
|
${BULLET_PHYSICS_SOURCE_DIR}/Extras/GIMPACTUtils
|
|
|
|
${BULLET_PHYSICS_SOURCE_DIR}/Extras/ConvexDecomposition
|
|
|
|
)
|
|
|
|
|
2014-05-07 15:54:08 +00:00
|
|
|
ADD_LIBRARY(GIMPACTUtils
|
|
|
|
btGImpactConvexDecompositionShape.cpp btGImpactConvexDecompositionShape.h
|
|
|
|
)
|
|
|
|
SET_TARGET_PROPERTIES(GIMPACTUtils PROPERTIES VERSION ${BULLET_VERSION})
|
|
|
|
SET_TARGET_PROPERTIES(GIMPACTUtils PROPERTIES SOVERSION ${BULLET_VERSION})
|
|
|
|
|
|
|
|
IF (BUILD_SHARED_LIBS)
|
|
|
|
TARGET_LINK_LIBRARIES(GIMPACTUtils ConvexDecomposition BulletCollision)
|
|
|
|
ENDIF (BUILD_SHARED_LIBS)
|
|
|
|
|
|
|
|
IF (INSTALL_EXTRA_LIBS)
|
|
|
|
IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
|
|
|
|
#FILES_MATCHING requires CMake 2.6
|
|
|
|
IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5)
|
|
|
|
IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
|
2017-09-11 04:20:54 +00:00
|
|
|
INSTALL(TARGETS GIMPACTUtils DESTINATION .)
|
2014-05-07 15:54:08 +00:00
|
|
|
ELSE (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
|
2017-09-06 21:18:35 +00:00
|
|
|
INSTALL(TARGETS GIMPACTUtils
|
2017-09-11 04:20:54 +00:00
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
|
|
|
ARCHIVE DESTINATION lib${LIB_SUFFIX})
|
2014-05-07 15:54:08 +00:00
|
|
|
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR} FILES_MATCHING PATTERN "*.h" PATTERN
|
|
|
|
".svn" EXCLUDE PATTERN "CMakeFiles" EXCLUDE)
|
|
|
|
ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
|
|
|
|
ENDIF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5)
|
|
|
|
|
|
|
|
IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
|
|
|
|
SET_TARGET_PROPERTIES(GIMPACTUtils PROPERTIES FRAMEWORK true)
|
|
|
|
SET_TARGET_PROPERTIES(GIMPACTUtils PROPERTIES PUBLIC_HEADER "btGImpactConvexDecompositionShape.h")
|
|
|
|
ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
|
|
|
|
ENDIF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
|
|
|
|
ENDIF (INSTALL_EXTRA_LIBS)
|