hedgewars/CMakeLists.txt
changeset 9668 75aab6802a2e
parent 9650 1c7c87ce37fd
child 9677 71626318f80e
child 9741 cf086f49516b
equal deleted inserted replaced
9667:0b27737fc28f 9668:75aab6802a2e
   119 if(PNG_FOUND)
   119 if(PNG_FOUND)
   120     list(INSERT engine_sources 0 PNGh.pas)
   120     list(INSERT engine_sources 0 PNGh.pas)
   121     list(REMOVE_AT PNG_LIBRARIES 1) #removing the zlib library path
   121     list(REMOVE_AT PNG_LIBRARIES 1) #removing the zlib library path
   122     get_filename_component(PNG_LIBRARY_DIR ${PNG_LIBRARIES} PATH)
   122     get_filename_component(PNG_LIBRARY_DIR ${PNG_LIBRARIES} PATH)
   123     add_flag_append(CMAKE_Pascal_FLAGS -Fl${PNG_LIBRARY_DIR})
   123     add_flag_append(CMAKE_Pascal_FLAGS -Fl${PNG_LIBRARY_DIR})
       
   124     add_definitions(-dPNG_SCREENSHOTS)
   124 endif()
   125 endif()
   125 
   126 
   126 if(LUA_FOUND AND LUA_SYSTEM)
   127 if(LUA_FOUND AND LUA_SYSTEM)
   127     get_filename_component(LUA_LIBRARY_DIR ${LUA_LIBRARY} PATH)
   128     get_filename_component(LUA_LIBRARY_DIR ${LUA_LIBRARY} PATH)
   128     get_filename_component(LUA_LIBRARY_NAME ${LUA_LIBRARY} NAME)
   129     get_filename_component(LUA_LIBRARY_NAME ${LUA_LIBRARY} NAME)