Changed: FindCppTest.cmake now can link to a specific STLport version of CppTest

This commit is contained in:
kervala 2010-10-02 11:43:16 +02:00
parent 7ebca53271
commit cd870cea9c

View file

@ -24,8 +24,16 @@ FIND_PATH(CPPTEST_INCLUDE_DIR
PATH_SUFFIXES cppunit
)
SET(LIBRARY_NAME_RELEASE cpptest)
SET(LIBRARY_NAME_DEBUG cpptestd)
IF(WITH_STLPORT)
SET(LIBRARY_NAME_RELEASE cpptest_stlport ${LIBRARY_NAME_RELEASE})
SET(LIBRARY_NAME_DEBUG cpptest_stlportd ${LIBRARY_NAME_DEBUG})
ENDIF(WITH_STLPORT)
FIND_LIBRARY(CPPTEST_LIBRARY_RELEASE
cpptest
${LIBRARY_NAME_RELEASE}
PATHS
/usr/local/lib
/usr/lib
@ -39,7 +47,7 @@ FIND_LIBRARY(CPPTEST_LIBRARY_RELEASE
)
FIND_LIBRARY(CPPTEST_LIBRARY_DEBUG
cpptestd
${LIBRARY_NAME_DEBUG}
PATHS
/usr/local/lib
/usr/lib
@ -54,7 +62,7 @@ FIND_LIBRARY(CPPTEST_LIBRARY_DEBUG
IF(CPPTEST_INCLUDE_DIR)
IF(CPPTEST_LIBRARY_RELEASE)
SET(CPPTEST_FOUND "YES")
SET(CPPTEST_FOUND TRUE)
SET(CPPTEST_LIBRARIES "optimized;${CPPTEST_LIBRARY_RELEASE}")
IF(CPPTEST_LIBRARY_DEBUG)