diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-03 04:23:52 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-03 04:23:52 +0400 |
commit | c2839bfe76139ed753e6b99118001bba5f2fa6ee (patch) | |
tree | b1edb08f125ccf8220e41d359ef80c38f6213f32 /source/gameengine/BlenderRoutines/CMakeLists.txt | |
parent | 1a7638fa94fbe9c6244d054d20efa3405153747f (diff) |
add option WITH_SYSTEM_BULLET to link against the bullet installation found on the system.
Note: this doesn't work yet for everything with latest stable bullet (2.81), need to look into why and likely apply some patches upstream.
However I managed to link blender by disabling some features, likely it can be made to work without too much trouble.
Diffstat (limited to 'source/gameengine/BlenderRoutines/CMakeLists.txt')
-rw-r--r-- | source/gameengine/BlenderRoutines/CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/gameengine/BlenderRoutines/CMakeLists.txt b/source/gameengine/BlenderRoutines/CMakeLists.txt index 9a47d223f76..d833534605b 100644 --- a/source/gameengine/BlenderRoutines/CMakeLists.txt +++ b/source/gameengine/BlenderRoutines/CMakeLists.txt @@ -30,7 +30,6 @@ set(INC ) set(INC_SYS - ../../../extern/bullet2/src ${PTHREADS_INCLUDE_DIRS} ${GLEW_INCLUDE_PATH} ${BOOST_INCLUDE_DIR} @@ -70,4 +69,12 @@ if(WITH_CODEC_FFMPEG) add_definitions(-DWITH_FFMPEG) endif() +if(WITH_BULLET) + list(APPEND INC_SYS + ${BULLET_INCLUDE_DIRS} + ) + add_definitions(-DUSE_BULLET) +endif() + + blender_add_lib(ge_blen_routines "${SRC}" "${INC}" "${INC_SYS}") |