FindRAQM.cmake 392 B

123456789101112
  1. find_package(PkgConfig)
  2. if(PKG_CONFIG_FOUND)
  3. pkg_check_modules(PC_RAQM raqm)
  4. endif()
  5. find_path(RAQM_INCLUDE_DIR NAMES raqm.h HINTS ${PC_RAQM_INCLUDE_DIRS}
  6. ${PC_RAQM_INCLUDEDIR})
  7. find_library(RAQM_LIBRARY NAMES raqm HINTS ${PC_RAQM_LIBRARY_DIRS}
  8. ${PC_RAQM_LIBDIR})
  9. include(FindPackageHandleStandardArgs)
  10. find_package_handle_standard_args(RAQM DEFAULT_MSG RAQM_INCLUDE_DIR RAQM_LIBRARY)