CMake support + fixed windows build.
[profile/ivi/libwebsockets.git] / cmake / FindOpenSSLbins.cmake
1
2 # On Windows, we need to copy the OpenSSL dlls to the output directory, so find them here.
3 if(OPENSSL_FOUND)
4         
5         if(WIN32)
6                 set(OPENSSL_BIN_FOUND 0)
7         
8                 # Find the .dll files so we can copy them to the output directory.
9                 find_file(LIBEAY_BIN
10                         NAMES
11                         libeay32.dll
12                         HINTS
13                         ${_OPENSSL_ROOT_HINTS}
14                         PATH_SUFFIXES
15                         bin)
16                 
17                 find_file(SSLEAY_BIN
18                         NAMES
19                         ssleay32.dll
20                         HINTS
21                         ${_OPENSSL_ROOT_HINTS}
22                         PATH_SUFFIXES
23                         bin)
24                 
25                 if(LIBEAY_BIN)
26                         if(SSLEAY_BIN)
27                                 set(OPENSSL_BIN_FOUND 1)
28                         endif(SSLEAY_BIN)
29                 endif(LIBEAY_BIN)
30         endif(WIN32)
31                 
32 endif(OPENSSL_FOUND)
33