aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/Externals/CMakeModules/FindPhysX.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'NvCloth/Externals/CMakeModules/FindPhysX.cmake')
-rw-r--r--NvCloth/Externals/CMakeModules/FindPhysX.cmake21
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)