-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindGiomm.cmake
23 lines (22 loc) · 972 Bytes
/
FindGiomm.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Try to find Giomm
# Released under MIT License by Kota Weaver
# Once done this will define
# GIOMM_FOUND - System has Giomm
# GIOMM_INCLUDE_DIRS - The Giomm include directories
# GIOMM_LIBRARIES - The libraries needed to use Giomm
# GIOMM_DEFINITIONS - Compiler switches required for using Giomm
find_package(PkgConfig)
pkg_check_modules(PC_GIOMM QUIET giomm-2.4)
set(GIOMM_DEFINITIONS ${PC_GIOMM_CFLAGS_OTHER})
find_path(GIOMM_INCLUDE_DIR giomm.h
HINTS ${PC_GIOMM_INCLUDEDIR} ${PC_GIOMM_INCLUDE_DIRS})
find_path(GIOMMCONFIG_INCLUDE_DIR giommconfig.h
HINTS ${PC_GIOMM_INCLUDEDIR} ${PC_GIOMM_INCLUDE_DIRS})
find_library(GIOMM_LIBRARY NAMES giomm-2.4
HINTS ${PC_GIOMM_LIBDIR} ${PC_GIOMM_LIBRARY_DIRS})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GIOMM DEFAULT_MSG
GIOMM_LIBRARY GIOMM_INCLUDE_DIR)
mark_as_advanced(GIOMM_INCLUDE_DIR GIOMM_LIBRARY)
set(GIOMM_LIBRARIES ${GIOMM_LIBRARY})
set(GIOMM_INCLUDE_DIRS ${GIOMM_INCLUDE_DIR})