# - Try to find tomcrypt include dirs and libraries # # Usage of this module as follows: # # find_package(TomCrypt) # # Variables used by this module, they can change the default behaviour and need # to be set before calling find_package: # # TomCrypt_ROOT_DIR Set this variable to the root installation of # TomCrypt if the module has problems finding the # proper installation path. # # Variables defined by this module: # # TomCrypt_FOUND System has TomCrypt, include and library dirs found # TomCrypt_INCLUDE_DIR The TomCrypt include directories. # TomCrypt_LIBRARIES_STATIC The TomCrypt libraries. # TomCrypt_LIBRARIES_SHARED The TomCrypt libraries. find_path(TomCrypt_ROOT_DIR NAMES src/headers/tomcrypt.h makefile LICENSE HINTS ${TomCrypt_ROOT_DIR} ) find_path(TomCrypt_INCLUDE_DIR NAMES tomcrypt.h tomcrypt_cfg.h HINTS ${TomCrypt_ROOT_DIR}/src/headers ) find_library(TomCrypt_LIBRARIES_STATIC NAMES libtomcrypt.lib libtomcrypt.a PATH_SUFFIXES out/win32_amd64/Release out/win32/Release out/win32_x64/Release HINTS ${TomCrypt_ROOT_DIR} ${TomCrypt_ROOT_DIR}/build ${TomCrypt_ROOT_DIR}/libs ${TomCrypt_ROOT_DIR}/out/ ) find_library(TomCrypt_LIBRARIES_SHARED NAMES libtomcrypt.dll libtomcrypt.so PATH_SUFFIXES out/win32_amd64/Release out/win32/Release out/win32_x64/Release HINTS ${TomCrypt_ROOT_DIR} ${TomCrypt_ROOT_DIR}/build ${TomCrypt_ROOT_DIR}/libs ${TomCrypt_ROOT_DIR}/out/ ) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(TomCrypt DEFAULT_MSG TomCrypt_INCLUDE_DIR ) mark_as_advanced( TomCrypt_ROOT_DIR TomCrypt_INCLUDE_DIR TomCrypt_LIBRARIES_STATIC TomCrypt_LIBRARIES_SHARED )