aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/FindNvCloth.cmake
diff options
context:
space:
mode:
authormtamis <[email protected]>2017-02-15 16:06:25 +0100
committermtamis <[email protected]>2017-02-15 16:06:25 +0100
commit85305930aeeb1d513e23522bd91f29ba81aa6d14 (patch)
tree45f1bb20a45a300d1fef107e436cac95602a0e57 /NvCloth/FindNvCloth.cmake
downloadnvcloth-85305930aeeb1d513e23522bd91f29ba81aa6d14.tar.xz
nvcloth-85305930aeeb1d513e23522bd91f29ba81aa6d14.zip
NvCloth library v1.0.0
Diffstat (limited to 'NvCloth/FindNvCloth.cmake')
-rw-r--r--NvCloth/FindNvCloth.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/NvCloth/FindNvCloth.cmake b/NvCloth/FindNvCloth.cmake
new file mode 100644
index 0000000..ab2a5b4
--- /dev/null
+++ b/NvCloth/FindNvCloth.cmake
@@ -0,0 +1,19 @@
+# - Try to find NvCloth
+# Once done this will define
+# NVCLOTH_FOUND - System has NvCloth
+# NVCLOTH_ROOT_DIR - The root of NvCloth
+
+# NOTE: We're including a version in this, but the first hint is without one - we should use that!
+FIND_PATH( NVCLOTH_ROOT_DIR include/NvCloth/Fabric.h
+ HINTS
+ ${GW_DEPS_ROOT}/NvCloth
+ ${GW_DEPS_ROOT}/sw/devrel/libdev/NvCloth/trunk
+ )
+
+
+
+
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(NvCloth DEFAULT_MSG NVCLOTH_ROOT_DIR)
+
+mark_as_advanced(NVCLOTH_ROOT_DIR)