2022-04-27 20:23:50 +00:00
|
|
|
set(gdkmm_LIBRARY_NAME gdkmm-3.0)
|
2021-01-07 07:41:49 +00:00
|
|
|
|
|
|
|
find_package(PkgConfig)
|
|
|
|
if (PKG_CONFIG_FOUND)
|
2022-04-27 20:23:50 +00:00
|
|
|
pkg_check_modules(PKGCONFIG_gdkmm QUIET ${gdkmm_LIBRARY_NAME})
|
|
|
|
set(gdkmm_DEFINITIONS ${PKGCONFIG_gdkmm_CFLAGS_OTHER})
|
2021-01-07 07:41:49 +00:00
|
|
|
endif (PKG_CONFIG_FOUND)
|
|
|
|
|
2022-04-27 20:23:50 +00:00
|
|
|
set(gdkmm_INCLUDE_HINTS ${PKGCONFIG_gdkmm_INCLUDEDIR} ${PKGCONFIG_gdkmm_INCLUDE_DIRS})
|
|
|
|
set(gdkmm_LIBRARY_HINTS ${PKGCONFIG_gdkmm_LIBDIR} ${PKGCONFIG_gdkmm_LIBRARY_DIRS})
|
2021-01-07 07:41:49 +00:00
|
|
|
|
2022-04-27 20:23:50 +00:00
|
|
|
find_path(gdkmm_INCLUDE_DIR
|
2021-01-07 07:41:49 +00:00
|
|
|
NAMES gdkmm.h
|
2022-04-27 20:23:50 +00:00
|
|
|
HINTS ${gdkmm_INCLUDE_HINTS}
|
2021-01-07 07:41:49 +00:00
|
|
|
/usr/include
|
|
|
|
/usr/local/include
|
|
|
|
/opt/local/include
|
2022-04-27 20:23:50 +00:00
|
|
|
PATH_SUFFIXES ${gdkmm_LIBRARY_NAME})
|
2021-01-07 07:41:49 +00:00
|
|
|
|
2022-04-27 20:23:50 +00:00
|
|
|
find_path(gdkmm_CONFIG_INCLUDE_DIR
|
2021-01-07 07:41:49 +00:00
|
|
|
NAMES gdkmmconfig.h
|
2022-04-27 20:23:50 +00:00
|
|
|
HINTS ${gdkmm_LIBRARY_HINTS}
|
2021-01-07 07:41:49 +00:00
|
|
|
/usr/lib
|
|
|
|
/usr/local/lib
|
|
|
|
/opt/local/lib
|
2022-04-27 20:23:50 +00:00
|
|
|
PATH_SUFFIXES ${gdkmm_LIBRARY_NAME}/include)
|
2021-01-07 07:41:49 +00:00
|
|
|
|
2022-04-27 20:23:50 +00:00
|
|
|
find_library(gdkmm_LIBRARY
|
|
|
|
NAMES ${gdkmm_LIBRARY_NAME}
|
|
|
|
gdkmm
|
|
|
|
HINTS ${gdkmm_LIBRARY_HINTS}
|
2021-01-07 07:41:49 +00:00
|
|
|
/usr/lib
|
|
|
|
/usr/local/lib
|
|
|
|
/opt/local/lib
|
2022-04-27 20:23:50 +00:00
|
|
|
PATH_SUFFIXES ${gdkmm_LIBRARY_NAME}
|
|
|
|
${gdkmm_LIBRARY_NAME}/include)
|
2021-01-07 07:41:49 +00:00
|
|
|
|
2022-04-27 20:23:50 +00:00
|
|
|
find_package(gdk)
|
|
|
|
|
|
|
|
set(gdkmm_LIBRARIES ${gdkmm_LIBRARY};${gdk_LIBRARIES})
|
|
|
|
set(gdkmm_INCLUDE_DIRS ${gdkmm_INCLUDE_DIR};${gdkmm_CONFIG_INCLUDE_DIRS};${gdkmm_CONFIG_INCLUDE_DIR};${gdk_INCLUDE_DIRS})
|
2021-01-07 07:41:49 +00:00
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(gdkmm
|
|
|
|
REQUIRED_VARS
|
2022-04-27 20:23:50 +00:00
|
|
|
gdkmm_LIBRARY
|
|
|
|
gdkmm_INCLUDE_DIRS
|
|
|
|
VERSION_VAR gdkmm_VERSION)
|
2021-01-07 07:41:49 +00:00
|
|
|
|
2022-04-27 20:23:50 +00:00
|
|
|
mark_as_advanced(gdkmm_INCLUDE_DIR gdkmm_LIBRARY)
|