2
0

libtomcrypt.cmake 584 B

1234567891011121314
  1. # To find libtomcrypt no matter what the installation look like, start with
  2. # looking for the CMake specific configuration, and failing that, try the
  3. # pkg-config package instead. The resulting target is different in each
  4. # case, but is recorded in the variable ${LIBTOMCRYPT}, so please use that
  5. # for all targets that depend on libtomcrypt.
  6. find_package(libtomcrypt QUIET)
  7. if (libtomcrypt_FOUND)
  8. set(LIBTOMCRYPT libtomcrypt)
  9. else()
  10. find_package(PkgConfig)
  11. pkg_check_modules(libtomcrypt REQUIRED IMPORTED_TARGET libtomcrypt)
  12. set(LIBTOMCRYPT PkgConfig::libtomcrypt)
  13. endif()