forked from darktable-org/darktable
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFindGModule.cmake
More file actions
30 lines (24 loc) · 1.13 KB
/
Copy pathFindGModule.cmake
File metadata and controls
30 lines (24 loc) · 1.13 KB
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
# - 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
#=============================================================================
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)