# FindGBM.cmake # Locate the Generic Buffer Manager (GBM) library find_path(GBM_INCLUDE_DIR NAMES gbm.h PATHS ${CMAKE_FIND_ROOT_PATH}/usr/include /usr/include /usr/local/include NO_DEFAULT_PATH ) find_library(GBM_LIBRARY NAMES gbm PATHS ${CMAKE_FIND_ROOT_PATH}/usr/lib /usr/lib /usr/local/lib NO_DEFAULT_PATH ) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(GBM REQUIRED_VARS GBM_INCLUDE_DIR GBM_LIBRARY VERSION_VAR GBM_VERSION ) mark_as_advanced(GBM_INCLUDE_DIR GBM_LIBRARY)