# - Try to find Glog # # The following are set after configuration is done: # GLOG_FOUND # GLOG_INCLUDE_DIRS # GLOG_LIBRARIES include(FindPackageHandleStandardArgs) find_path(GLOG_INCLUDE_DIR glog/logging.h) find_library(GLOG_LIBRARY NAMES glog_static glog PATH_SUFFIXES lib lib64) find_package_handle_standard_args(Glog DEFAULT_MSG GLOG_INCLUDE_DIR GLOG_LIBRARY) if(GLOG_FOUND) set(GLOG_INCLUDE_DIRS ${GLOG_INCLUDE_DIR}) set(GLOG_LIBRARIES ${GLOG_LIBRARY}) message(STATUS "Found glog (include: ${GLOG_INCLUDE_DIR}, library: ${GLOG_LIBRARY})") mark_as_advanced(GLOG_LIBRARY GLOG_INCLUDE_DIR) endif()