Improve follow player code, remove useless check of Ai in setEquipement
[ryzomcore.git] / CMakeModules / FindCppTest.cmake
blob7dc2aa35d53b489103b281e3addd5a3f5566e7e1
2 # Find the CppTest includes and library
4 # This module defines
5 # CPPTEST_INCLUDE_DIR, where to find tiff.h, etc.
6 # CPPTEST_LIBRARIES, where to find the CppTest libraries.
7 # CPPTEST_FOUND, If false, do not try to use CppTest.
9 # also defined, but not for general use are
10 IF(CPPTEST_LIBRARIES AND CPPTEST_INCLUDE_DIR)
11   # in cache already
12   SET(CPPTEST_FIND_QUIETLY TRUE)
13 ENDIF()
15 FIND_PATH(CPPTEST_INCLUDE_DIR 
16   cpptest.h
17   PATHS
18   /usr/local/include
19   /usr/include
20   /sw/include
21   /opt/local/include
22   /opt/csw/include
23   /opt/include
24   PATH_SUFFIXES cppunit cpptest
27 SET(LIBRARY_NAME_RELEASE cpptest)
28 SET(LIBRARY_NAME_DEBUG cpptestd)
30 IF(WITH_STLPORT)
31   SET(LIBRARY_NAME_RELEASE cpptest_stlport ${LIBRARY_NAME_RELEASE})
32   SET(LIBRARY_NAME_DEBUG cpptest_stlportd ${LIBRARY_NAME_DEBUG})
33 ENDIF()
35 FIND_LIBRARY(CPPTEST_LIBRARY_RELEASE
36   ${LIBRARY_NAME_RELEASE}
37   PATHS
38   /usr/local/lib
39   /usr/lib
40   /usr/local/X11R6/lib
41   /usr/X11R6/lib
42   /sw/lib
43   /opt/local/lib
44   /opt/csw/lib
45   /opt/lib
46   /usr/freeware/lib64
49 FIND_LIBRARY(CPPTEST_LIBRARY_DEBUG
50   ${LIBRARY_NAME_DEBUG}
51   PATHS
52   /usr/local/lib
53   /usr/lib
54   /usr/local/X11R6/lib
55   /usr/X11R6/lib
56   /sw/lib
57   /opt/local/lib
58   /opt/csw/lib
59   /opt/lib
60   /usr/freeware/lib64
63 IF(CPPTEST_INCLUDE_DIR)
64   IF(CPPTEST_LIBRARY_RELEASE)
65     SET(CPPTEST_FOUND TRUE)
67     SET(CPPTEST_LIBRARIES "optimized;${CPPTEST_LIBRARY_RELEASE}")
68     IF(CPPTEST_LIBRARY_DEBUG)
69       SET(CPPTEST_LIBRARIES "${CPPTEST_LIBRARIES};debug;${CPPTEST_LIBRARY_DEBUG}")
70     ENDIF()
71   ENDIF()
72 ENDIF()
74 IF(CPPTEST_FOUND)
75   IF(NOT CPPTEST_FIND_QUIETLY)
76     MESSAGE(STATUS "Found CppTest: ${CPPTEST_LIBRARIES}")
77   ENDIF()
78 ELSE()
79   IF(NOT CPPTEST_FIND_QUIETLY)
80     MESSAGE(STATUS "Warning: Unable to find CppTest!")
81   ENDIF()
82 ENDIF()
84 MARK_AS_ADVANCED(CPPTEST_LIBRARY_RELEASE CPPTEST_LIBRARY_DEBUG)