lgogdownloader/cmake/FindLibcrypto.cmake
Sude 442fad04db Add support for parallel downloads
New option "--threads" can be used to set how many parallel downloads to run. The default is 4 threads.

Changes to behavior:
- Serials and changelogs are saved and covers downloaded for all games that match the "--game" filter before any other files are downloaded.
- Automatic XML creation is run after all files are downloaded. Previously xml data was automatically created right after download finished.
- The "--limit-rate" option sets rate limit for thread not global rate limit.
2016-05-20 20:33:07 +03:00

28 lines
769 B
CMake

# - Try to find libcrypto
#
# Once done this will define
# Libcrypto_FOUND - System has libcrypto
# Libcrypto_INCLUDE_DIRS - The libcrypto include directories
# Libcrypto_LIBRARIES - The libraries needed to use libcrypto
find_package(PkgConfig)
pkg_check_modules(PC_LIBCRYPTO REQUIRED libcrypto)
find_path(LIBCRYPTO_INCLUDE_DIR openssl/crypto.h
HINTS ${PC_LIBCRYPTO_INCLUDEDIR}
${PC_LIBCRYPTO_INCLUDE_DIRS}
)
find_library(LIBCRYPTO_LIBRARY NAMES crypto
HINTS ${PC_LIBCRYPTO_LIBDIR}
${PC_LIBCRYPTO_LIBRARY_DIRS}
)
mark_as_advanced(LIBCRYPTO_INCLUDE_DIR LIBCRYPTO_LIBRARY)
if(PC_LIBCRYPTO_FOUND)
set(Libcrypto_FOUND ON)
set(Libcrypto_INCLUDE_DIRS ${LIBCRYPTO_INCLUDE_DIR})
set(Libcrypto_LIBRARIES ${LIBCRYPTO_LIBRARY})
endif(PC_LIBCRYPTO_FOUND)