equal
deleted
inserted
replaced
142 add_subdirectory(avwrapper) |
142 add_subdirectory(avwrapper) |
143 list(APPEND HW_LINK_LIBS avwrapper) |
143 list(APPEND HW_LINK_LIBS avwrapper) |
144 add_definitions(-dUSE_VIDEO_RECORDING) |
144 add_definitions(-dUSE_VIDEO_RECORDING) |
145 endif() |
145 endif() |
146 |
146 |
147 find_package_or_disable_msg(PNG NOPNG "Screenshots will be saved in BMP") |
147 if(NOT WIN32) |
148 if(PNG_FOUND) |
148 find_package_or_disable_msg(PNG NOPNG "Screenshots will be saved in BMP") |
149 list(INSERT engine_sources 0 PNGh.pas) |
149 if(PNG_FOUND) |
150 list(REMOVE_AT PNG_LIBRARIES 1) #removing the zlib library path |
150 list(INSERT engine_sources 0 PNGh.pas) |
151 get_filename_component(PNG_LIBRARY_DIR ${PNG_LIBRARIES} PATH) |
151 list(REMOVE_AT PNG_LIBRARIES 1) #removing the zlib library path |
152 add_flag_append(CMAKE_Pascal_FLAGS "-k-L${PNG_LIBRARY_DIR} -Fl${PNG_LIBRARY_DIR}") |
152 get_filename_component(PNG_LIBRARY_DIR ${PNG_LIBRARIES} PATH) |
153 add_definitions(-dPNG_SCREENSHOTS) |
153 add_flag_append(CMAKE_Pascal_FLAGS "-k-L${PNG_LIBRARY_DIR} -Fl${PNG_LIBRARY_DIR}") |
|
154 add_definitions(-dPNG_SCREENSHOTS) |
|
155 endif() |
154 endif() |
156 endif() |
155 |
157 |
156 if(LUA_SYSTEM) |
158 if(LUA_SYSTEM) |
157 get_filename_component(LUA_LIBRARY_DIR ${LUA_LIBRARY} PATH) |
159 get_filename_component(LUA_LIBRARY_DIR ${LUA_LIBRARY} PATH) |
158 get_filename_component(LUA_LIBRARY_NAME ${LUA_LIBRARY} NAME) |
160 get_filename_component(LUA_LIBRARY_NAME ${LUA_LIBRARY} NAME) |