mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-05-17 19:21:11 +03:00
cmake: Find cmockery on Windows.
This commit is contained in:
parent
d2bf90c982
commit
e7a06ad3b4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user