--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,5 +4,9 @@
 
 FIND_PACKAGE(BISON REQUIRED)
 FIND_PACKAGE(FLEX REQUIRED)
+FIND_PACKAGE(PkgConfig)
+
+# check for VIPS
+pkg_check_modules(VIPS vips-7.12)
 
 add_subdirectory(src)