Fix up build and start site generator.
This commit is contained in:
parent
d471609712
commit
bd60a28eef
15 changed files with 267 additions and 96 deletions
0
src/video/BasicVideoConverter.cpp
Normal file
0
src/video/BasicVideoConverter.cpp
Normal file
0
src/video/BasicVideoConverter.cppcd
Normal file
0
src/video/BasicVideoConverter.cppcd
Normal file
0
src/video/BasicVideoConverter.h
Normal file
0
src/video/BasicVideoConverter.h
Normal file
|
@ -1,40 +1,50 @@
|
|||
list(APPEND video_HEADERS
|
||||
Video.h
|
||||
FfmpegInterface.h
|
||||
BasicVideoConverter.h
|
||||
IVideoConverter.h
|
||||
)
|
||||
|
||||
list(APPEND video_LIB_INCLUDES
|
||||
Video.cpp
|
||||
FfmegInterface.cpp
|
||||
BasicVideoConverter.cpp
|
||||
)
|
||||
|
||||
list(APPEND video_DEFINES "")
|
||||
|
||||
find_package(PkgConfig QUIET)
|
||||
set(_HAS_FFMPEG Off)
|
||||
if(PkgConfig)
|
||||
pkg_check_modules(LIBAV IMPORTED_TARGET
|
||||
libavdevice
|
||||
libavfilter
|
||||
libavformat
|
||||
libavcodec
|
||||
libswresample
|
||||
libswscale
|
||||
libavutil
|
||||
)
|
||||
list(APPEND video_LIBS PkgConfig::LIBAV)
|
||||
list(APPEND video_HEADERS
|
||||
FfmpegInterface.h
|
||||
)
|
||||
list(APPEND video_LIB_INCLUDES
|
||||
FfmegInterface.cpp
|
||||
)
|
||||
list(APPEND video_DEFINES "HAS_FFMPEG")
|
||||
set(_HAS_FFMPEG ON)
|
||||
else()
|
||||
message(STATUS "LIBRARY CHECK: PkgConfig not found - disabling ffmpeg based video i/o.")
|
||||
endif()
|
||||
|
||||
set(HAS_FFMPEG ${_HAS_FFMPEG} CACHE BOOL "Can build with FFMPEG")
|
||||
|
||||
add_library(video SHARED ${video_LIB_INCLUDES} ${video_HEADERS})
|
||||
|
||||
target_include_directories(video PUBLIC
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
)
|
||||
target_include_directories(video PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
set_target_properties( video PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
|
||||
|
||||
list(APPEND video_LIBS image)
|
||||
|
||||
find_package(PkgConfig QUIET)
|
||||
|
||||
if(PkgConfig)
|
||||
pkg_check_modules(LIBAV IMPORTED_TARGET
|
||||
libavdevice
|
||||
libavfilter
|
||||
libavformat
|
||||
libavcodec
|
||||
libswresample
|
||||
libswscale
|
||||
libavutil
|
||||
)
|
||||
list(APPEND video_LIBS PkgConfig::LIBAV)
|
||||
else()
|
||||
message(STATUS "LIBRARY CHECK: PkgConfig not found - disabling ffmpeg based video i/o.")
|
||||
endif()
|
||||
|
||||
target_link_libraries( video PUBLIC ${video_LIBS})
|
||||
|
||||
|
||||
set_property(TARGET video PROPERTY FOLDER src)
|
||||
set_property(TARGET video PROPERTY FOLDER src)
|
||||
|
|
0
src/video/IVideoConverter.h
Normal file
0
src/video/IVideoConverter.h
Normal file
Loading…
Add table
Add a link
Reference in a new issue