equal
deleted
inserted
replaced
177 |
177 |
178 #DEPENDECIES AND EXECUTABLES SECTION |
178 #DEPENDECIES AND EXECUTABLES SECTION |
179 if(NOT NOPNG) |
179 if(NOT NOPNG) |
180 find_package(PNG) |
180 find_package(PNG) |
181 if(${PNG_FOUND}) |
181 if(${PNG_FOUND}) |
182 message(STATUS "Found libpng: ${PNG_LIBRARY}") |
|
183 set(pascal_flags "-dPNG_SCREENSHOTS" ${pascal_flags}) |
182 set(pascal_flags "-dPNG_SCREENSHOTS" ${pascal_flags}) |
184 if(APPLE) # need to explictly link with the static lib -- maybe windows too? |
183 if(APPLE) # easier to explictly link with the static lib |
185 string(REGEX REPLACE "(.*)libpng.*" "\\1" PNG_LIBDIR "${PNG_LIBRARY}") |
184 string(REGEX REPLACE "(.*)libpng.*" "\\1" PNG_LIBDIR "${PNG_LIBRARY}") |
186 set(pascal_flags "-k${PNG_LIBDIR}/libpng.a" ${pascal_flags}) |
185 set(pascal_flags "-k${PNG_LIBDIR}/libpng.a" ${pascal_flags}) |
187 endif() |
186 endif() |
188 else() |
187 else() |
189 message(STATUS "Screenshots will be in BMP format because libpng was not found") |
188 message(STATUS "Screenshots will be in BMP format because libpng was not found") |