mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-13 17:32:33 +02:00
adding macro to find bullet
This commit is contained in:
parent
2734afcf9a
commit
92ceb52183
1 changed files with 17 additions and 0 deletions
17
cmake/macros/IncludeBullet.cmake
Normal file
17
cmake/macros/IncludeBullet.cmake
Normal file
|
@ -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)
|
Loading…
Reference in a new issue