Warning, /frameworks/kdelibs4support/cmake/modules/FindGObject.cmake is written in an unsupported language. File is not indexed.
0001 # - Try to find GObject 0002 # Once done this will define 0003 # 0004 # GOBJECT_FOUND - system has GObject 0005 # GOBJECT_INCLUDE_DIR - the GObject include directory 0006 # GOBJECT_LIBRARIES - the libraries needed to use GObject 0007 # GOBJECT_DEFINITIONS - Compiler switches required for using GObject 0008 0009 # Copyright (c) 2011, Raphael Kubo da Costa <kubito@gmail.com> 0010 # Copyright (c) 2006, Tim Beaulen <tbscope@gmail.com> 0011 # 0012 # Redistribution and use is allowed according to the terms of the BSD license. 0013 # For details see the accompanying COPYING-CMAKE-SCRIPTS file. 0014 0015 FIND_PACKAGE(PkgConfig) 0016 PKG_CHECK_MODULES(PC_GOBJECT gobject-2.0) 0017 SET(GOBJECT_DEFINITIONS ${PC_GOBJECT_CFLAGS_OTHER}) 0018 0019 FIND_PATH(GOBJECT_INCLUDE_DIR gobject.h 0020 HINTS 0021 ${PC_GOBJECT_INCLUDEDIR} 0022 ${PC_GOBJECT_INCLUDE_DIRS} 0023 PATH_SUFFIXES glib-2.0/gobject/ 0024 ) 0025 0026 FIND_LIBRARY(_GObjectLibs NAMES gobject-2.0 0027 HINTS 0028 ${PC_GOBJECT_LIBDIR} 0029 ${PC_GOBJECT_LIBRARY_DIRS} 0030 ) 0031 FIND_LIBRARY(_GModuleLibs NAMES gmodule-2.0 0032 HINTS 0033 ${PC_GOBJECT_LIBDIR} 0034 ${PC_GOBJECT_LIBRARY_DIRS} 0035 ) 0036 FIND_LIBRARY(_GThreadLibs NAMES gthread-2.0 0037 HINTS 0038 ${PC_GOBJECT_LIBDIR} 0039 ${PC_GOBJECT_LIBRARY_DIRS} 0040 ) 0041 FIND_LIBRARY(_GLibs NAMES glib-2.0 0042 HINTS 0043 ${PC_GOBJECT_LIBDIR} 0044 ${PC_GOBJECT_LIBRARY_DIRS} 0045 ) 0046 0047 SET( GOBJECT_LIBRARIES ${_GObjectLibs} ${_GModuleLibs} ${_GThreadLibs} ${_GLibs} ) 0048 0049 INCLUDE(FindPackageHandleStandardArgs) 0050 FIND_PACKAGE_HANDLE_STANDARD_ARGS(GOBJECT DEFAULT_MSG GOBJECT_LIBRARIES GOBJECT_INCLUDE_DIR) 0051 0052 MARK_AS_ADVANCED(GOBJECT_INCLUDE_DIR _GObjectLibs _GModuleLibs _GThreadLibs _GLibs)