You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Add QT_VERSION_STR define to OpenShotVersion.h
The CMake process will pick up Qt's Qt5Core_VERSION_STRING and stick it in a cache variable (with forced updating each run), and a new `#define` in the header exports it to the library and to the Python bindings so that it can be queried at runtime.
This commit is contained in:
@@ -289,6 +289,10 @@ foreach(_qt_comp IN LISTS _qt_components)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
# Keep track of Qt version, to embed in our version header
|
||||
set(QT_VERSION_STR ${Qt5Core_VERSION_STRING} CACHE STRING "Qt version linked with" FORCE)
|
||||
mark_as_advanced(QT_VERSION_STR)
|
||||
|
||||
################### FFMPEG #####################
|
||||
# Find FFmpeg libraries (used for video encoding / decoding)
|
||||
find_package(FFmpeg REQUIRED COMPONENTS avcodec avdevice avformat avutil swscale)
|
||||
|
||||
Reference in New Issue
Block a user