Diff of /src/vips/plugResample/CMakeLists.txt [02a0eb] .. [d1eed7] Maximize Restore

  Switch to side-by-side view

--- a/src/vips/plugResample/CMakeLists.txt
+++ b/src/vips/plugResample/CMakeLists.txt
@@ -1,8 +1,17 @@
-ADD_DEFINITIONS(${VIPS_CFLAGS})
 
 # build a shared library (vips plugin)
-# maybe it needs to be renamed to transform.plg to be useable by vips?
 ADD_LIBRARY(resample SHARED plug.c resample.c interpolation.c)
+# rename library to .plg
+SET_TARGET_PROPERTIES(resample PROPERTIES SUFFIX ".plg")
+
+# set special compiler flags.
+SET_TARGET_PROPERTIES(resample PROPERTIES COMPILE_FLAGS "${VIPS_CFLAGS_OTHER_STRING}")
+
+# set special linker flags
+SET_TARGET_PROPERTIES(resample PROPERTIES LINK_FLAGS "${VIPS_LDFLAGS_OTHER_STRING}")
+
 
 #link to the library (this might not be necessary).
 TARGET_LINK_LIBRARIES(resample panoparser pano13 panotoolswrapper)
+
+INSTALL(TARGETS resample LIBRARY DESTINATION lib)