183 endif() |
183 endif() |
184 else() |
184 else() |
185 message(STATUS "PNG screenshots disabled per user request, using BMP format") |
185 message(STATUS "PNG screenshots disabled per user request, using BMP format") |
186 endif() |
186 endif() |
187 |
187 |
|
188 if(NOT NO_VIDEOREC) |
|
189 if(${FFMPEG_FOUND}) |
|
190 message(STATUS "Compiling with video recording") |
|
191 include_directories(${FFMPEG_INCLUDE_DIR}) |
|
192 set(pascal_flags "-dUSE_VIDEO_RECORDING" ${pascal_flags}) |
|
193 IF (WIN32) |
|
194 set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) |
|
195 # there are some problems with linking our avwrapper as static lib, so link it as shared |
|
196 add_library(avwrapper SHARED avwrapper.c) |
|
197 target_link_libraries(avwrapper ${FFMPEG_LIBRARIES}) |
|
198 ELSE() |
|
199 add_library(avwrapper STATIC avwrapper.c) |
|
200 ENDIF() |
|
201 endif() |
|
202 else() |
|
203 message(STATUS "Video recording disabled by user") |
|
204 endif() |
|
205 |
188 set(fpc_flags ${noexecstack_flags} ${pascal_flags} ${hwengine_project}) |
206 set(fpc_flags ${noexecstack_flags} ${pascal_flags} ${hwengine_project}) |
189 |
|
190 IF (WIN32) |
|
191 set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) |
|
192 include_directories(${FFMPEG_INCLUDE_DIR}) |
|
193 add_library(avwrapper SHARED avwrapper.c) |
|
194 target_link_libraries(avwrapper ${FFMPEG_LIBRARIES}) |
|
195 ELSE() |
|
196 add_library(avwrapper STATIC avwrapper.c) |
|
197 ENDIF() |
|
198 |
207 |
199 IF(NOT APPLE) |
208 IF(NOT APPLE) |
200 #here is the command for standard executables or for shared library |
209 #here is the command for standard executables or for shared library |
201 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}${CMAKE_EXECUTABLE_SUFFIX}" |
210 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}${CMAKE_EXECUTABLE_SUFFIX}" |
202 COMMAND "${fpc_executable}" |
211 COMMAND "${fpc_executable}" |