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