File: FindGModule.cmake

package info (click to toggle)
darktable 5.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 62,864 kB
  • sloc: ansic: 361,898; cpp: 102,446; xml: 19,813; lisp: 14,539; sh: 3,771; javascript: 3,264; perl: 1,925; python: 1,485; ruby: 975; makefile: 543; asm: 46; sql: 38; awk: 21
file content (32 lines) | stat: -rw-r--r-- 1,212 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# - Find the native sqlite3 includes and library
#
# This module defines
#  GMODULE_INCLUDE_DIR, where to find sqlite3.h, etc.
#  GMODULE_LIBRARIES, the libraries to link against to use sqlite3.
#  GMODULE_FOUND, If false, do not try to use sqlite3.
# also defined, but not for general use are
#  GMODULE_LIBRARY, where to find the sqlite3 library.


#=============================================================================
# Copyright 2010 henrik andersson
#=============================================================================

SET(GMODULE_FIND_REQUIRED ${GModule_FIND_REQUIRED})

find_path(GMODULE_INCLUDE_DIR glib-2.0/gmodule.h)
mark_as_advanced(GMODULE_INCLUDE_DIR)

set(GMODULE_NAMES ${GMODULE_NAMES} gmodule-2.0 libgmodule-2.0)
find_library(GMODULE_LIBRARY NAMES ${GMODULE_NAMES} )
mark_as_advanced(GMODULE_LIBRARY)

# handle the QUIETLY and REQUIRED arguments and set GMODULE_FOUND to TRUE if
# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GModule DEFAULT_MSG GMODULE_LIBRARY GMODULE_INCLUDE_DIR)

IF(GMODULE_FOUND)
  SET(GModule_LIBRARIES ${GMODULE_LIBRARY})
  SET(GModule_INCLUDE_DIRS ${GMODULE_INCLUDE_DIR})
ENDIF(GMODULE_FOUND)