Changeset View
Changeset View
Standalone View
Standalone View
cmake/modules/FindLibWacom.cmake
Show All 37 Lines | 37 | find_path(LIBWACOM_INCLUDE_DIR | |||
---|---|---|---|---|---|
38 | NAMES libwacom/libwacom.h | 38 | NAMES libwacom/libwacom.h | ||
39 | HINTS ${LIBWACOM_PKGCONF_INCLUDEDIR} ${LIBWACOM_PKGCONF_INCLUDE_DIRS} | 39 | HINTS ${LIBWACOM_PKGCONF_INCLUDEDIR} ${LIBWACOM_PKGCONF_INCLUDE_DIRS} | ||
40 | PATH_SUFFIXES libwacom ) | 40 | PATH_SUFFIXES libwacom ) | ||
41 | 41 | | |||
42 | find_library(LIBWACOM_LIBRARY | 42 | find_library(LIBWACOM_LIBRARY | ||
43 | NAMES wacom libwacom | 43 | NAMES wacom libwacom | ||
44 | HINTS ${LIBWACOM_PKGCONF_LIBDIR} ${LIBWACOM_PKGCONF_LIBRARY_DIRS} ) | 44 | HINTS ${LIBWACOM_PKGCONF_LIBDIR} ${LIBWACOM_PKGCONF_LIBRARY_DIRS} ) | ||
45 | 45 | | |||
46 | set(LIBWACOM_LIBRARIES ${LIBWACOM_LIBRARY} ) | 46 | set(LIBWACOM_LIBRARIES ${LIBWACOM_LIBRARY}) | ||
47 | set(LIBWACOM_INCLUDE_DIRS ${LIBWACOM_INCLUDE_DIR} ) | 47 | set(LIBWACOM_INCLUDE_DIRS ${LIBWACOM_INCLUDE_DIR}) | ||
48 | set(LIBWACOM_VERSION ${LIBWACOM_PKGCONF_VERSION}) | ||||
48 | 49 | | |||
49 | include(FindPackageHandleStandardArgs) | 50 | include(FindPackageHandleStandardArgs) | ||
50 | # handle the QUIETLY and REQUIRED arguments and set LIBWACOM_FOUND to TRUE | 51 | # handle the QUIETLY and REQUIRED arguments and set LIBWACOM_FOUND to TRUE | ||
51 | # if all listed variables are TRUE | 52 | # if all listed variables are TRUE | ||
52 | find_package_handle_standard_args(LIBWACOM DEFAULT_MSG | 53 | find_package_handle_standard_args(LIBWACOM | ||
53 | LIBWACOM_LIBRARY LIBWACOM_INCLUDE_DIR) | 54 | REQUIRED_VARS LIBWACOM_LIBRARY LIBWACOM_INCLUDE_DIR | ||
55 | VERSION_VAR LIBWACOM_VERSION) | ||||
54 | 56 | | |||
55 | mark_as_advanced(LIBWACOM_INCLUDE_DIR LIBWACOM_LIBRARY ) | 57 | mark_as_advanced(LIBWACOM_INCLUDE_DIR LIBWACOM_LIBRARY) |