From 92ceb521835530a27efb9ae31d970907886577bd Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Tue, 4 Nov 2014 16:46:45 -0800 Subject: [PATCH] adding macro to find bullet --- cmake/macros/IncludeBullet.cmake | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cmake/macros/IncludeBullet.cmake diff --git a/cmake/macros/IncludeBullet.cmake b/cmake/macros/IncludeBullet.cmake new file mode 100644 index 0000000000..53b7224bb8 --- /dev/null +++ b/cmake/macros/IncludeBullet.cmake @@ -0,0 +1,17 @@ +# +# IncludeBullet.cmake +# +# Copyright 2014 High Fidelity, Inc. +# +# Distributed under the Apache License, Version 2.0. +# See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html +# + +macro(INCLUDE_BULLET) + find_package(Bullet) + if (BULLET_FOUND) + include_directories(SYSTEM "${BULLET_INCLUDE_DIRS}") + list(APPEND ${TARGET_NAME}_LIBRARIES_TO_LINK "${BULLET_LIBRARIES}") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_BULLET_PHYSICS") + endif (BULLET_FOUND) +endmacro(INCLUDE_BULLET)