|
|
@@ -29,6 +29,11 @@ project(lpng)
|
|
|
set(PNG_ARM_NEON off CACHE STRING "")
|
|
|
add_definitions(-DPNG_ARM_NEON_OPT=0)
|
|
|
|
|
|
+# Enables SSE for libpng - also takes care of compiler warnings.
|
|
|
+# If we don't want SSE, we should set it to off/0.
|
|
|
+set(PNG_INTEL_SSE on CACHE STRING "")
|
|
|
+add_definitions(-DPNG_INTEL_SSE_OPT=1)
|
|
|
+
|
|
|
addInclude(${libDir}/zlib)
|
|
|
|
|
|
finishLibrary("${libDir}/${PROJECT_NAME}")
|