···11+--- a/CMakeLists.txt
22++++ b/CMakeLists.txt
33+@@ -1,4 +1,4 @@
44+-cmake_minimum_required(VERSION 2.8)
55++cmake_minimum_required(VERSION 3.6)
66+ project(Performous CXX C)
77+88+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
99+--- a/cmake/Modules/FindPango.cmake
1010++++ b/cmake/Modules/FindPango.cmake
1111+@@ -2,31 +2,10 @@
1212+ # Once done, this will define
1313+ #
1414+ # Pango_FOUND - system has Pango
1515+-# Pango_INCLUDE_DIRS - the Pango include directories
1616+ # Pango_LIBRARIES - link these to use Pango
1717+1818+ include(LibFindMacros)
1919+2020+-# Dependencies
2121+-libfind_package(Pango Freetype)
2222+-libfind_package(Pango Glib)
2323+-libfind_package(Pango GObject)
2424+-
2525+-# Use pkg-config to get hints about paths
2626+-libfind_pkg_check_modules(Pango_PKGCONF pango)
2727+-
2828+-# Include dir
2929+-find_path(Pango_INCLUDE_DIR
3030+- NAMES pango/pango.h
3131+- HINTS ${Pango_PKGCONF_INCLUDE_DIRS}
3232+- PATH_SUFFIXES pango-1.0
3333+-)
3434+-
3535+-# Finally the library itself
3636+-find_library(Pango_LIBRARY
3737+- NAMES pango-1.0
3838+- HINTS ${Pango_PKGCONF_LIBRARY_DIRS}
3939+-)
4040+-
4141++libfind_pkg_check_modules(Pango_PKGCONF IMPORTED_TARGET pango)
4242++set(Pango_LIBRARY PkgConfig::Pango_PKGCONF)
4343+ libfind_process(Pango)
4444+-
4545+--- a/cmake/Modules/FindPangoCairo.cmake
4646++++ b/cmake/Modules/FindPangoCairo.cmake
4747+@@ -1,35 +1,11 @@
4848+ # - Try to find PangoCairo
4949+ # Once done, this will define
5050+ #
5151+-# PangoCairo_FOUND - system has Pango
5252+-# PangoCairo_INCLUDE_DIRS - the Pango include directories
5353+-# PangoCairo_LIBRARIES - link these to use Pango
5454++# PangoCairo_FOUND - system has PangoCairo
5555++# PangoCairo_LIBRARIES - link these to use PangoCairo
5656+5757+ include(LibFindMacros)
5858+5959+-# Dependencies
6060+-libfind_package(PangoCairo Pango)
6161+-libfind_package(PangoCairo Cairo)
6262+-
6363+-# Use pkg-config to get hints about paths
6464+-libfind_pkg_check_modules(PangoCairo_PKGCONF pangocairo)
6565+-
6666+-# Include dir
6767+-find_path(PangoCairo_INCLUDE_DIR
6868+- NAMES pango/pangocairo.h
6969+- HINTS ${PangoCairo_PKGCONF_INCLUDE_DIRS}
7070+- PATH_SUFFIXES pango-1.0
7171+-)
7272+-
7373+-# Finally the library itself
7474+-find_library(PangoCairo_LIBRARY
7575+- NAMES pangocairo-1.0
7676+- HINTS ${PangoCairo_PKGCONF_LIBRARY_DIRS}
7777+-)
7878+-
7979+-# Set the include dir variables and the libraries and let libfind_process do the rest.
8080+-# NOTE: Singular variables for this library, plural for libraries this this lib depends on.
8181+-set(PangoCairo_PROCESS_INCLUDES PangoCairo_INCLUDE_DIR Pango_INCLUDE_DIR Cairo_INCLUDE_DIR)
8282+-set(PangoCairo_PROCESS_LIBS PangoCairo_LIBRARY Pango_LIBRARY Cairo_LIBRARY)
8383++libfind_pkg_check_modules(PangoCairo_PKGCONF IMPORTED_TARGET pangocairo)
8484++set(PangoCairo_LIBRARY PkgConfig::PangoCairo_PKGCONF)
8585+ libfind_process(PangoCairo)
8686+-