aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/Externals/CMakeModules/FindGoogleTest.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/FindGoogleTest.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/FindGoogleTest.cmake')
-rw-r--r--NvCloth/Externals/CMakeModules/FindGoogleTest.cmake28
1 files changed, 28 insertions, 0 deletions
diff --git a/NvCloth/Externals/CMakeModules/FindGoogleTest.cmake b/NvCloth/Externals/CMakeModules/FindGoogleTest.cmake
new file mode 100644
index 0000000..df03868
--- /dev/null
+++ b/NvCloth/Externals/CMakeModules/FindGoogleTest.cmake
@@ -0,0 +1,28 @@
+# - Try to find GoogleTest
+# Once done this will define
+# GOOGLETEST_FOUND - System has GoogleTest
+# GOOGLETEST_INCLUDE_DIR - The GoogleTest include directory
+# GOOGLETEST_SRC_DIR - The GoogleTest src directory
+
+FIND_PATH( GOOGLETEST_INCLUDE_DIR gtest/gtest.h
+ HINTS
+ ${GW_DEPS_ROOT}/GoogleTest
+ ${GW_DEPS_ROOT}/NvCloth/test/external/gtest-1.4.0
+ ${GW_DEPS_ROOT}/sw/physx/externals/GoogleTest/gtest-1.4.0
+ PATH_SUFFIXES include
+ NO_DEFAULT_PATH
+ NO_CMAKE_FIND_ROOT_PATH)
+
+FIND_PATH( GOOGLETEST_SRC_DIR gtest.cpp
+ HINTS
+ ${GW_DEPS_ROOT}/GoogleTest
+ ${GW_DEPS_ROOT}/NvCloth/test/external/gtest-1.4.0
+ ${GW_DEPS_ROOT}/sw/physx/externals/GoogleTest/gtest-1.4.0
+ PATH_SUFFIXES src
+ NO_DEFAULT_PATH
+ NO_CMAKE_FIND_ROOT_PATH)
+
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(GoogleTest DEFAULT_MSG GOOGLETEST_INCLUDE_DIR GOOGLETEST_SRC_DIR)
+
+mark_as_advanced(GOOGLETEST_INCLUDE_DIR GOOGLETEST_SRC_DIR)