Warning, /system/kcm-grub2/cmake/modules/FindHD.cmake is written in an unsupported language. File is not indexed.
0001 # - Try to find the hd library 0002 # Once done this will define 0003 # 0004 # HD_FOUND - system has the hd library 0005 # HD_INCLUDE_DIR - the hd include directory 0006 # HD_LIBRARY - Link this to use the hd library 0007 # 0008 # Copyright (C) 2008, Pino Toscano, <pino@kde.org> 0009 # 0010 # Redistribution and use is allowed according to the terms of the BSD license. 0011 # For details see the accompanying COPYING-CMAKE-SCRIPTS file. 0012 0013 if (HD_LIBRARY AND HD_INCLUDE_DIR) 0014 # in cache already 0015 set(HD_FOUND TRUE) 0016 else (HD_LIBRARY AND HD_INCLUDE_DIR) 0017 0018 find_path(HD_INCLUDE_DIR hd.h 0019 ) 0020 0021 find_library(HD_LIBRARY 0022 NAMES hd 0023 ) 0024 0025 include(FindPackageHandleStandardArgs) 0026 find_package_handle_standard_args(HD DEFAULT_MSG HD_LIBRARY HD_INCLUDE_DIR) 0027 # ensure that they are cached 0028 set(HD_INCLUDE_DIR ${HD_INCLUDE_DIR} CACHE INTERNAL "The hd include path") 0029 set(HD_LIBRARY ${HD_LIBRARY} CACHE INTERNAL "The libraries needed to use hd") 0030 0031 endif (HD_LIBRARY AND HD_INCLUDE_DIR)