Added "make install" support to the CMake project.
[profile/ivi/libwebsockets.git] / cmake / FindOpenSSLbins.cmake
1
2 if(OPENSSL_FOUND)
3
4         find_program(OPENSSL_EXECUTABLE openssl openssl.exe
5                 HINTS ${_OPENSSL_ROOT_HINTS}
6                 PATH /usr/bin/
7                 DOC "Openssl executable")
8
9         mark_as_advanced(OPENSSL_EXECUTABLE)
10         
11         # On Windows, we need to copy the OpenSSL dlls 
12         # to the output directory.
13         if(WIN32)
14                 set(OPENSSL_BIN_FOUND 0)
15
16                 find_file(LIBEAY_BIN
17                         NAMES
18                         libeay32.dll
19                         HINTS
20                         ${_OPENSSL_ROOT_HINTS}
21                         PATH_SUFFIXES
22                         bin)
23                 
24                 find_file(SSLEAY_BIN
25                         NAMES
26                         ssleay32.dll
27                         HINTS
28                         ${_OPENSSL_ROOT_HINTS}
29                         PATH_SUFFIXES
30                         bin)
31                 
32                 if(LIBEAY_BIN)
33                         if(SSLEAY_BIN)
34                                 set(OPENSSL_BIN_FOUND 1)
35                         endif(SSLEAY_BIN)
36                 endif(LIBEAY_BIN)
37         endif(WIN32)
38                 
39 endif(OPENSSL_FOUND)
40