2015-04-16 16:55:32 +00:00
|
|
|
# HelloWorld is a minimal sample creating, stepping and deleting a Bullet dynamics world
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(
|
2015-12-07 22:08:04 +00:00
|
|
|
${BULLET_PHYSICS_SOURCE_DIR}/src
|
2015-04-16 16:55:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
LINK_LIBRARIES(
|
2015-12-07 22:08:04 +00:00
|
|
|
BulletDynamics BulletCollision LinearMath
|
2015-04-16 16:55:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
IF (WIN32)
|
2015-04-17 05:14:27 +00:00
|
|
|
ADD_EXECUTABLE(App_HelloWorld
|
2015-12-07 22:08:04 +00:00
|
|
|
HelloWorld.cpp
|
2015-04-16 16:55:32 +00:00
|
|
|
${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc
|
|
|
|
)
|
|
|
|
ELSE()
|
2015-04-17 05:14:27 +00:00
|
|
|
ADD_EXECUTABLE(App_HelloWorld
|
2015-12-07 22:08:04 +00:00
|
|
|
HelloWorld.cpp
|
2015-04-16 16:55:32 +00:00
|
|
|
)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)
|
2015-04-17 05:14:27 +00:00
|
|
|
SET_TARGET_PROPERTIES(App_HelloWorld PROPERTIES DEBUG_POSTFIX "_Debug")
|
|
|
|
SET_TARGET_PROPERTIES(App_HelloWorld PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel")
|
|
|
|
SET_TARGET_PROPERTIES(App_HelloWorld PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo")
|
2015-12-07 22:08:04 +00:00
|
|
|
ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)
|