A multi core friendly rigid body physics and collision detection library. Written in C++. Suitable for games and VR applications. Used by Horizon Forbidden West.
MIT License
6k
stars
374
forks
source link
Generate a CMake config file when the project is installed #1140
I noticed that Jolt only installs its header files and its library file, and that it was lacking a config file for find_package() to work automatically.
This commit adds an export() and install(EXPORT) command in CMakeLists.txt so that one is automatically generated when Jolt is built, and automatically installed when Jolt is installed.
This allows for other CMake projects to do something like:
I noticed that Jolt only installs its header files and its library file, and that it was lacking a config file for
find_package()
to work automatically.This commit adds an
export()
andinstall(EXPORT)
command in CMakeLists.txt so that one is automatically generated when Jolt is built, and automatically installed when Jolt is installed.This allows for other CMake projects to do something like: