aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/Externals/CMakeModules/FindNvSimd.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/FindNvSimd.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/FindNvSimd.cmake')
-rw-r--r--NvCloth/Externals/CMakeModules/FindNvSimd.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/NvCloth/Externals/CMakeModules/FindNvSimd.cmake b/NvCloth/Externals/CMakeModules/FindNvSimd.cmake
new file mode 100644
index 0000000..02d152c
--- /dev/null
+++ b/NvCloth/Externals/CMakeModules/FindNvSimd.cmake
@@ -0,0 +1,21 @@
+# - Try to find NvSimd
+# Once done this will define
+# NVSIMD_FOUND - System has NvSimd
+# NVSIMD_INCLUDE_DIR - The NvSimd include directories
+
+# TODO: Support version
+FIND_PATH( NVSIMD_INCLUDE_DIR include/NvSimd4f.h
+ HINTS
+ ${GW_DEPS_ROOT}/NvSimd
+ ${GW_DEPS_ROOT}/PxShared/NvSimd
+ ${GW_DEPS_ROOT}/PxShared/src/NvSimd
+ ${GW_DEPS_ROOT}/sw/devrel/GameWorks/Shared/NvSimd/${PACKAGE_FIND_VERSION}/trunk
+ ${GW_DEPS_ROOT}/sw/devrel/GameWorks/Shared/NvSimd/1.1/trunk
+ )
+
+MESSAGE(${NVSIMD_INCLUDE_DIR})
+
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(NvSimd DEFAULT_MSG NVSIMD_INCLUDE_DIR)
+
+mark_as_advanced(NVSIMD_INCLUDE_DIR)