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

Switch to side-by-side view

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

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks