aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/Externals/CMakeModules/FindPxShared.cmake
diff options
context:
space:
mode:
authorMarijn Tamis <[email protected]>2019-04-01 14:21:09 +0200
committerMarijn Tamis <[email protected]>2019-04-01 14:21:09 +0200
commitd243404d4ba88bcf53f7310cc8980b4efe38c19f (patch)
treedcc8ce2904e9f813e03f71f825c4d3c9ec565d91 /NvCloth/Externals/CMakeModules/FindPxShared.cmake
parentAdd new SetSpheres and SetPlanes api's to bring them in line with setTriangles. (diff)
downloadnvcloth-1.1.6.tar.xz
nvcloth-1.1.6.zip
1.1.6 Release.1.1.6
Diffstat (limited to 'NvCloth/Externals/CMakeModules/FindPxShared.cmake')
-rw-r--r--NvCloth/Externals/CMakeModules/FindPxShared.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/NvCloth/Externals/CMakeModules/FindPxShared.cmake b/NvCloth/Externals/CMakeModules/FindPxShared.cmake
new file mode 100644
index 0000000..3297996
--- /dev/null
+++ b/NvCloth/Externals/CMakeModules/FindPxShared.cmake
@@ -0,0 +1,17 @@
+# - Try to find PxShared
+# Once done this will define
+# PXSHARED_FOUND - System has PxShared
+# PXSHARED_ROOT_DIR - The root of PxShared
+
+# NOTE: We're including a version in this, but the first hint is without one - we should use that!
+FIND_PATH( PXSHARED_ROOT_DIR include/foundation/Px.h
+ HINTS
+ ${GW_DEPS_ROOT}/PxShared
+ ${GW_DEPS_ROOT}/sw/physx/PxShared/1.0/trunk
+ NO_DEFAULT_PATH
+ NO_CMAKE_FIND_ROOT_PATH)
+
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(PxShared DEFAULT_MSG PXSHARED_ROOT_DIR)
+
+mark_as_advanced(PXSHARED_ROOT_DIR)