Generate a single bullet.h headerfile for serialization, to make it easier to load .bullet files with no dependencies on the Bullet SDK (except Bullet/LinearMath and Bullet/Extras/Serialize/BulletFileLoader)
Added a work-in-progress example how to load a .bullet file using this bullet.h file (and not using the Bullet SDK)
This commit is contained in:
33
Extras/Serialize/ReadBulletSample/CMakeLists.txt
Normal file
33
Extras/Serialize/ReadBulletSample/CMakeLists.txt
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
INCLUDE_DIRECTORIES(
|
||||
${BULLET_PHYSICS_SOURCE_DIR}/src
|
||||
)
|
||||
|
||||
LINK_LIBRARIES(
|
||||
BulletFileLoader
|
||||
)
|
||||
IF (WIN32)
|
||||
SET(ADDITIONAL_SRC
|
||||
${BULLET_PHYSICS_SOURCE_DIR}/msvc/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)
|
||||
Reference in New Issue
Block a user