From 903048a2e8ff7db72ea8ba66bb0be3b4243a392e Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Tue, 25 Mar 2025 02:34:32 +0100 Subject: FindBullet: Update documentation --- Modules/FindBullet.cmake | 44 ++++++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/Modules/FindBullet.cmake b/Modules/FindBullet.cmake index f9250ae..61a5fb3 100644 --- a/Modules/FindBullet.cmake +++ b/Modules/FindBullet.cmake @@ -5,35 +5,39 @@ FindBullet ---------- -Try to find the Bullet physics engine +Finds the Bullet physics engine. +Result Variables +^^^^^^^^^^^^^^^^ +This module defines the following variables: -:: +``Bullet_FOUND`` + Boolean true if Bullet was found. For backward compatibility, the + ``BULLET_FOUND`` variable is also set to the same value. +``BULLET_INCLUDE_DIRS`` + The Bullet include directories. +``BULLET_LIBRARIES`` + Libraries needed to link to Bullet. By default, all Bullet components + (Dynamics, Collision, LinearMath, and SoftBody) are added. - This module defines the following variables +Hints +^^^^^ +This module accepts the following variables: +``BULLET_ROOT`` + Can be set to Bullet install path or Windows build path to specify where to + find Bullet. -:: +Examples +^^^^^^^^ - BULLET_FOUND - Was bullet found - BULLET_INCLUDE_DIRS - the Bullet include directories - BULLET_LIBRARIES - Link to this, by default it includes - all bullet components (Dynamics, - Collision, LinearMath, & SoftBody) +Finding Bullet: +.. code-block:: cmake - -:: - - This module accepts the following variables - - - -:: - - BULLET_ROOT - Can be set to bullet install path or Windows build path + find_package(Bullet) #]=======================================================================] macro(_FIND_BULLET_LIBRARY _var) @@ -85,7 +89,7 @@ find_package_handle_standard_args(Bullet DEFAULT_MSG BULLET_SOFTBODY_LIBRARY BULLET_INCLUDE_DIR) set(BULLET_INCLUDE_DIRS ${BULLET_INCLUDE_DIR}) -if(BULLET_FOUND) +if(Bullet_FOUND) _BULLET_APPEND_LIBRARIES(BULLET_LIBRARIES BULLET_DYNAMICS_LIBRARY) _BULLET_APPEND_LIBRARIES(BULLET_LIBRARIES BULLET_COLLISION_LIBRARY) _BULLET_APPEND_LIBRARIES(BULLET_LIBRARIES BULLET_MATH_LIBRARY) -- cgit v0.12