3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-12 11:31:10 +02:00

Adding Bullet as non-required dependency

This commit is contained in:
Andrew Meadows 2014-10-28 17:32:34 -07:00
parent 911c3bcc38
commit c9450bba02

View file

@ -7,13 +7,13 @@ include_glm()
link_hifi_libraries(shared)
## find BULLET
#find_package(BULLET REQUIRED)
#
#include_directories(SYSTEM "${BULLET_INCLUDE_DIRS}")
#
## append BULLET to our list of libraries to link
#list(APPEND ${TARGET_NAME}_LIBRARIES_TO_LINK "${BULLET_LIBRARIES}")
# Note: we rely on the default FindBullet.cmake moduld that comes with cmake
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)
# call macro to link our dependencies and bubble them up via a property on our target
link_shared_dependencies()