mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-06 20:24:33 +00:00
uses local cache for assets now so should be able to produce an offline build with vcpkg. Only a couple of libraries left that are too big, and the vcpkg repo itself has files that are blocked from the repo. We could get around both issues by utilizing a submodule
10 lines
505 B
CMake
10 lines
505 B
CMake
# Bullet module
|
|
option(TORQUE_PHYSICS_BULLET "Use Bullet physics" OFF)
|
|
|
|
if(TORQUE_PHYSICS_BULLET)
|
|
message("Enabling Bullet Module")
|
|
find_package(Bullet CONFIG REQUIRED)
|
|
set(TORQUE_LINK_THIRDPARTY ${TORQUE_LINK_THIRDPARTY} BulletDynamics BulletCollision LinearMath Bullet3Common)
|
|
set(TORQUE_COMPILE_DEFINITIONS ${TORQUE_COMPILE_DEFINITIONS} TORQUE_PHYSICS_BULLET TORQUE_PHYSICS_ENABLED)
|
|
# No more add_subdirectory — vcpkg's bullet3 port provides the targets above.
|
|
endif(TORQUE_PHYSICS_BULLET)
|