diff options
| author | mtamis <[email protected]> | 2017-02-15 16:06:25 +0100 |
|---|---|---|
| committer | mtamis <[email protected]> | 2017-02-15 16:06:25 +0100 |
| commit | 85305930aeeb1d513e23522bd91f29ba81aa6d14 (patch) | |
| tree | 45f1bb20a45a300d1fef107e436cac95602a0e57 /Externals/CMakeModules/FindPhysX.cmake | |
| download | nvcloth-85305930aeeb1d513e23522bd91f29ba81aa6d14.tar.xz nvcloth-85305930aeeb1d513e23522bd91f29ba81aa6d14.zip | |
NvCloth library v1.0.0
Diffstat (limited to 'Externals/CMakeModules/FindPhysX.cmake')
| -rw-r--r-- | Externals/CMakeModules/FindPhysX.cmake | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Externals/CMakeModules/FindPhysX.cmake b/Externals/CMakeModules/FindPhysX.cmake new file mode 100644 index 0000000..5b07c14 --- /dev/null +++ b/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) |