1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-02 00:42:33 +01:00
openrw/cmake/modules/FindBullet.cmake

18 lines
461 B
CMake
Raw Normal View History

2017-10-26 03:40:05 +02:00
# Override CMake's FindBullet module:
# - create a bullet::bullet TARGET
2017-10-26 03:40:05 +02:00
include("${CMAKE_ROOT}/Modules/FindBullet.cmake")
if(BULLET_FOUND AND NOT TARGET bullet::bullet)
add_library(bullet INTERFACE)
target_link_libraries(bullet
INTERFACE
${BULLET_LIBRARIES}
)
target_include_directories(bullet SYSTEM
INTERFACE
"${BULLET_INCLUDE_DIR}"
)
add_library(bullet::bullet ALIAS bullet)
2017-10-26 03:40:05 +02:00
endif()