mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 22:00:05 +00:00
31 lines
757 B
CMake
31 lines
757 B
CMake
|
|
||
|
INCLUDE_DIRECTORIES(
|
||
|
.
|
||
|
../../../src
|
||
|
../../gtest-1.7.0/include
|
||
|
)
|
||
|
|
||
|
|
||
|
ADD_DEFINITIONS(-DUSE_GTEST)
|
||
|
ADD_DEFINITIONS(-D_VARIADIC_MAX=10)
|
||
|
|
||
|
LINK_LIBRARIES(
|
||
|
BulletDynamics BulletCollision LinearMath gtest
|
||
|
)
|
||
|
|
||
|
IF (NOT WIN32)
|
||
|
LINK_LIBRARIES( pthread )
|
||
|
ENDIF()
|
||
|
|
||
|
ADD_EXECUTABLE(Test_BulletDynamics
|
||
|
../../../examples/MultiBody/Pendulum.cpp
|
||
|
)
|
||
|
|
||
|
ADD_TEST(Test_BulletDynamics_PASS Test_BulletDynamics)
|
||
|
|
||
|
IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)
|
||
|
SET_TARGET_PROPERTIES(Test_BulletDynamics PROPERTIES DEBUG_POSTFIX "_Debug")
|
||
|
SET_TARGET_PROPERTIES(Test_BulletDynamics PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel")
|
||
|
SET_TARGET_PROPERTIES(Test_BulletDynamics PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo")
|
||
|
ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)
|