diff options
| author | mtamis <[email protected]> | 2017-02-15 16:06:25 +0100 |
|---|---|---|
| committer | mtamis <[email protected]> | 2017-02-15 16:06:25 +0100 |
| commit | 85305930aeeb1d513e23522bd91f29ba81aa6d14 (patch) | |
| tree | 45f1bb20a45a300d1fef107e436cac95602a0e57 /Externals/CMakeModules/FindGoogleTest.cmake | |
| download | nvcloth-85305930aeeb1d513e23522bd91f29ba81aa6d14.tar.xz nvcloth-85305930aeeb1d513e23522bd91f29ba81aa6d14.zip | |
NvCloth library v1.0.0
Diffstat (limited to 'Externals/CMakeModules/FindGoogleTest.cmake')
| -rw-r--r-- | Externals/CMakeModules/FindGoogleTest.cmake | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Externals/CMakeModules/FindGoogleTest.cmake b/Externals/CMakeModules/FindGoogleTest.cmake new file mode 100644 index 0000000..5ac8391 --- /dev/null +++ b/Externals/CMakeModules/FindGoogleTest.cmake @@ -0,0 +1,23 @@ +# - 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}/sw/physx/externals/GoogleTest/gtest-1.4.0 + PATH_SUFFIXES include) + +FIND_PATH( GOOGLETEST_SRC_DIR gtest.cpp + HINTS + ${GW_DEPS_ROOT}/GoogleTest + ${GW_DEPS_ROOT}/sw/physx/externals/GoogleTest/gtest-1.4.0 + PATH_SUFFIXES src) + +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)
\ No newline at end of file |