hedgewars/CMakeLists.txt
changeset 6915 be298851fc7b
parent 6881 ee01eeaa1281
child 6916 50243b6ffab5
equal deleted inserted replaced
6914:e6094d329108 6915:be298851fc7b
   140     endif()
   140     endif()
   141 else()
   141 else()
   142     message(FATAL_ERROR "No Pascal compiler found!")
   142     message(FATAL_ERROR "No Pascal compiler found!")
   143 endif()
   143 endif()
   144 
   144 
       
   145 find_package(png)
       
   146 if(${PNG_LIBRARY})
       
   147     set(pascal_compiler_flags_cmn "-dPNG_SCREENSHOTS" ${pascal_compiler_flags_cmn})
       
   148 else()
       
   149     message(STATUS "PNG library not found, switching to screenshots in BMP format")
       
   150 endif()
       
   151 
   145 set(pascal_compiler ${fpc_executable})
   152 set(pascal_compiler ${fpc_executable})
   146 set(pascal_compiler_flags ${noexecstack_flags} ${pascal_compiler_flags_cmn} ${hwengine_project})
   153 set(pascal_compiler_flags ${noexecstack_flags} ${pascal_compiler_flags_cmn} ${hwengine_project})
   147 
   154 
   148 
   155 
   149 #DEPENDECIES AND EXECUTABLES SECTION
   156 #DEPENDECIES AND EXECUTABLES SECTION