find_package(PkgConfig)
pkg_check_modules(GTK3 gtk+-3.0)

set(VERSION_OK TRUE)
if(GTK3_VERSION)
	if(GTK3_FIND_VERSION_EXACT)
		if(NOT("${GTK3_FIND_VERSION}" VERSION_EQUAL "${GTK3_VERSION}"))
			set(VERSION_OK FALSE)
		endif()
	else()
		if("${GTK3_VERSION}" VERSION_LESS "${GTK3_FIND_VERSION}")
			set(VERSION_OK FALSE)
		endif()
	endif()
endif()

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GTK3 DEFAULT_MSG GTK3_INCLUDE_DIRS GTK3_LIBRARIES VERSION_OK)
