1 --- a/CMakeLists.txt 2016-05-26 11:31:16.000000000 +0200
2 +++ b/CMakeLists.txt 2016-07-22 19:07:22.074669909 +0200
5 # ======== libexif ==========
9 - message( "EXIF library (libexif) not found. 'pfsalign' will not be compiled" )
10 -else( NOT EXIF_FOUND )
11 - message(STATUS "libexif library found.")
12 -endif( NOT EXIF_FOUND )
13 +find_package( PkgConfig REQUIRED )
14 +pkg_check_modules( MYPKG REQUIRED libexif IlmBase )
16 + message( STATUS "libexif and IlmBase found." )
18 +include_directories( ${MYPKG_INCLUDE_DIRS} )
20 # ======== Config and sub dirs ===========