aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/Externals/CMakeModules/FindGoogleTest.cmake
blob: df038684cb8040647953cfc40e0bf05cd98bc6e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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)