33 lines
838 B
CMake
33 lines
838 B
CMake
|
|
||
|
INCLUDE_DIRECTORIES(
|
||
|
${BULLET_PHYSICS_SOURCE_DIR}/src
|
||
|
)
|
||
|
|
||
|
LINK_LIBRARIES(
|
||
|
BulletFileLoader
|
||
|
)
|
||
|
IF (WIN32)
|
||
|
SET(ADDITIONAL_SRC
|
||
|
${BULLET_PHYSICS_SOURCE_DIR}/build/bullet.rc
|
||
|
)
|
||
|
ENDIF()
|
||
|
|
||
|
SET(READBULLET_SRC
|
||
|
main.cpp
|
||
|
BulletDataExtractor.cpp
|
||
|
BulletDataExtractor.h
|
||
|
${BULLET_PHYSICS_SOURCE_DIR}/src/LinearMath/btSerializer.cpp
|
||
|
${BULLET_PHYSICS_SOURCE_DIR}/src/LinearMath/btAlignedAllocator.cpp
|
||
|
)
|
||
|
|
||
|
ADD_EXECUTABLE(AppReadBulletSample
|
||
|
${READBULLET_SRC}
|
||
|
${ADDITIONAL_SRC}
|
||
|
)
|
||
|
|
||
|
|
||
|
IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)
|
||
|
SET_TARGET_PROPERTIES(AppReadBulletSample PROPERTIES DEBUG_POSTFIX "_Debug")
|
||
|
SET_TARGET_PROPERTIES(AppReadBulletSample PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel")
|
||
|
SET_TARGET_PROPERTIES(AppReadBulletSample PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo")
|
||
|
ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)
|