aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-12-29 19:51:46 +0100
committerAndreas Schneider <asn@cynapses.org>2010-12-29 19:51:46 +0100
commite7a06ad3b4f29f44db9a4e67908bcd330ff1e99b (patch)
tree6c083b5505a9eb9dfea4483494c76caf445a22b3 /cmake/Modules
parentd2bf90c982bad9109f43ecbea1ff30aafe1477a7 (diff)
downloadlibssh-e7a06ad3b4f29f44db9a4e67908bcd330ff1e99b.tar.gz
libssh-e7a06ad3b4f29f44db9a4e67908bcd330ff1e99b.tar.xz
libssh-e7a06ad3b4f29f44db9a4e67908bcd330ff1e99b.zip
cmake: Find cmockery on Windows.
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/FindCMockery.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/Modules/FindCMockery.cmake b/cmake/Modules/FindCMockery.cmake
index 9ecde23..2464049 100644
--- a/cmake/Modules/FindCMockery.cmake
+++ b/cmake/Modules/FindCMockery.cmake
@@ -18,11 +18,15 @@ if (CMOCKERY_LIBRARIES AND CMOCKERY_INCLUDE_DIRS)
# in cache already
set(CMOCKERY_FOUND TRUE)
else (CMOCKERY_LIBRARIES AND CMOCKERY_INCLUDE_DIRS)
+ if (WIN32)
+ set(_CMOCKERY_DIR $ENV{PROGRAMFILES}/cmockery)
+ endif (WIN32)
find_path(CMOCKERY_INCLUDE_DIR
NAMES
google/cmockery.h
PATHS
+ ${_CMOCKERY_DIR}/include
/usr/include
/usr/local/include
/opt/local/include
@@ -33,6 +37,7 @@ else (CMOCKERY_LIBRARIES AND CMOCKERY_INCLUDE_DIRS)
NAMES
cmockery
PATHS
+ ${_CMOCKERY_DIR}/lib
/usr/lib
/usr/local/lib
/opt/local/lib