diff options
| author | Marijn Tamis <[email protected]> | 2019-04-01 14:21:09 +0200 |
|---|---|---|
| committer | Marijn Tamis <[email protected]> | 2019-04-01 14:21:09 +0200 |
| commit | d243404d4ba88bcf53f7310cc8980b4efe38c19f (patch) | |
| tree | dcc8ce2904e9f813e03f71f825c4d3c9ec565d91 /NvCloth/Externals/CMakeModules/FindPhysX.cmake | |
| parent | Add new SetSpheres and SetPlanes api's to bring them in line with setTriangles. (diff) | |
| download | nvcloth-1.1.6.tar.xz nvcloth-1.1.6.zip | |
1.1.6 Release.1.1.6
Diffstat (limited to 'NvCloth/Externals/CMakeModules/FindPhysX.cmake')
| -rw-r--r-- | NvCloth/Externals/CMakeModules/FindPhysX.cmake | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/NvCloth/Externals/CMakeModules/FindPhysX.cmake b/NvCloth/Externals/CMakeModules/FindPhysX.cmake new file mode 100644 index 0000000..5b07c14 --- /dev/null +++ b/NvCloth/Externals/CMakeModules/FindPhysX.cmake @@ -0,0 +1,21 @@ +# +# Find PhysX +# +# This is a really dumb finder - it finds the PhysX install we're going to use add_subdirectory on. +# PHYSX_FOUND - System has PhysX +# PHYSX_ROOT_DIR - The PhysX root directory + +# First look for the feature branch, then for the trunk +FIND_PATH( PHYSX_ROOT_DIR Include/PxActor.h + HINTS + ${GW_DEPS_ROOT}/PhysXSDK + ${GW_DEPS_ROOT}/PhysX_3.4 + ${GW_DEPS_ROOT}/sw/physx/PhysXSDK/3.4/trunk + ) + +MESSAGE(${PHYSX_ROOT_DIR}) + +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(PhysX DEFAULT_MSG PHYSX_ROOT_DIR) + +mark_as_advanced(PHYSX_ROOT_DIR) |