equal
deleted
inserted
replaced
170 if(NOT NOPNG) |
170 if(NOT NOPNG) |
171 find_package(PNG) |
171 find_package(PNG) |
172 if(${PNG_FOUND}) |
172 if(${PNG_FOUND}) |
173 message(STATUS "PNG screenshots enabled (library found at ${PNG_LIBRARY})") |
173 message(STATUS "PNG screenshots enabled (library found at ${PNG_LIBRARY})") |
174 set(pascal_flags "-dPNG_SCREENSHOTS" ${pascal_flags}) |
174 set(pascal_flags "-dPNG_SCREENSHOTS" ${pascal_flags}) |
175 if(APPLE) # need to explictly link with the static lib |
175 if(APPLE) # need to explictly link with the static lib -- maybe windows too? |
176 string(REGEX REPLACE "(.*)libpng.*" "\\1" PNG_LIBDIR "${PNG_LIBRARY}") |
176 string(REGEX REPLACE "(.*)libpng.*" "\\1" PNG_LIBDIR "${PNG_LIBRARY}") |
177 set(pascal_flags "-k${PNG_LIBDIR}/libpng.a" ${pascal_flags}) |
177 set(pascal_flags "-k${PNG_LIBDIR}/libpng.a" ${pascal_flags}) |
178 endif() |
178 endif() |
179 else() |
179 else() |
180 message(STATUS "PNG library not found, switching to screenshots in BMP format") |
180 message(STATUS "PNG library not found, switching to screenshots in BMP format") |
181 endif() |
181 endif() |
|
182 else() |
|
183 message(STATUS "PNG screenshots disabled per user request, using BMP format") |
182 endif() |
184 endif() |
183 |
185 |
184 set(fpc_flags ${noexecstack_flags} ${pascal_flags} ${hwengine_project}) |
186 set(fpc_flags ${noexecstack_flags} ${pascal_flags} ${hwengine_project}) |
185 |
187 |
186 IF (WIN32) |
188 IF (WIN32) |