2015-01-28 07:20:43 +00:00
|
|
|
include(LibFindMacros)
|
|
|
|
|
|
|
|
libfind_pkg_check_modules(GME_PKGCONF GME)
|
|
|
|
|
|
|
|
find_path(GME_INCLUDE_DIR
|
|
|
|
NAMES gme.h
|
|
|
|
PATHS
|
|
|
|
${GME_PKGCONF_INCLUDE_DIRS}
|
2016-03-06 19:32:07 +00:00
|
|
|
"/usr/include/gme"
|
|
|
|
"/usr/local/include/gme"
|
2015-01-28 07:20:43 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
find_library(GME_LIBRARY
|
|
|
|
NAMES gme
|
|
|
|
PATHS
|
|
|
|
${GME_PKGCONF_LIBRARY_DIRS}
|
2016-03-06 19:32:07 +00:00
|
|
|
"/usr/lib"
|
|
|
|
"/usr/local/lib"
|
2015-01-28 07:20:43 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(GME_PROCESS_INCLUDES GME_INCLUDE_DIR)
|
|
|
|
set(GME_PROCESS_LIBS GME_LIBRARY)
|
2022-11-05 05:14:32 +00:00
|
|
|
libfind_process(GME)
|
|
|
|
|
|
|
|
if(GME_FOUND AND NOT TARGET gme)
|
|
|
|
add_library(gme UNKNOWN IMPORTED)
|
|
|
|
set_target_properties(
|
|
|
|
gme
|
|
|
|
PROPERTIES
|
|
|
|
IMPORTED_LOCATION "${GME_LIBRARY}"
|
|
|
|
INTERFACE_INCLUDE_DIRECTORIES "${GME_INCLUDE_DIR}"
|
|
|
|
)
|
|
|
|
endif()
|