mirror of
https://github.com/TakeV-Lambda/dino.git
synced 2024-11-22 06:54:29 +00:00
19 lines
No EOL
530 B
CMake
19 lines
No EOL
530 B
CMake
include(PkgConfigWithFallback)
|
|
find_pkg_config_with_fallback(GObject
|
|
PKG_CONFIG_NAME gobject-2.0
|
|
LIB_NAMES gobject-2.0
|
|
INCLUDE_NAMES gobject/gobject.h
|
|
INCLUDE_DIR_SUFFIXES glib-2.0 glib-2.0/include
|
|
DEPENDS GLib
|
|
)
|
|
|
|
if(GObject_FOUND AND NOT GObject_VERSION)
|
|
# TODO
|
|
find_package(GLib ${GLib_GLOBAL_VERSION})
|
|
set(GObject_VERSION ${GLib_VERSION})
|
|
endif()
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(GObject
|
|
REQUIRED_VARS GObject_LIBRARY
|
|
VERSION_VAR GObject_VERSION) |