2 # Find the CppTest includes and library
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)
12 SET(CPPTEST_FIND_QUIETLY TRUE)
15 FIND_PATH(CPPTEST_INCLUDE_DIR
24 PATH_SUFFIXES cppunit cpptest
27 SET(LIBRARY_NAME_RELEASE cpptest)
28 SET(LIBRARY_NAME_DEBUG cpptestd)
31 SET(LIBRARY_NAME_RELEASE cpptest_stlport ${LIBRARY_NAME_RELEASE})
32 SET(LIBRARY_NAME_DEBUG cpptest_stlportd ${LIBRARY_NAME_DEBUG})
35 FIND_LIBRARY(CPPTEST_LIBRARY_RELEASE
36 ${LIBRARY_NAME_RELEASE}
49 FIND_LIBRARY(CPPTEST_LIBRARY_DEBUG
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}")
75 IF(NOT CPPTEST_FIND_QUIETLY)
76 MESSAGE(STATUS "Found CppTest: ${CPPTEST_LIBRARIES}")
79 IF(NOT CPPTEST_FIND_QUIETLY)
80 MESSAGE(STATUS "Warning: Unable to find CppTest!")
84 MARK_AS_ADVANCED(CPPTEST_LIBRARY_RELEASE CPPTEST_LIBRARY_DEBUG)