-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
56 lines (47 loc) · 1.29 KB
/
CMakeLists.txt
File metadata and controls
56 lines (47 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
cmake_minimum_required(VERSION 3.16)
project(editvideo LANGUAGES CXX)
# Specify the required C++ standard
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Find the required Qt components
find_package(Qt5 REQUIRED COMPONENTS Quick Multimedia Qml MultimediaQuick MultimediaWidgets)
# Add the MLT include path
include_directories(C:/msys64/mingw64/include/mlt-7)
# Add the executable and source files
add_executable(editvideo
WorkerThread.cpp
main.cpp
resources.qrc
)
# Link the required Qt libraries
target_link_libraries(editvideo PRIVATE Qt5::Quick
Qt5::Multimedia Qt5::Qml Qt5::MultimediaQuick Qt5::MultimediaWidgets
mlt++-7 mlt-7)
# -LC:/msys64/mingw64/lib/mlt -lmlt++-7 -lmlt-7
# Link the MLT library
target_link_libraries(editvideo PRIVATE C:/msys64/mingw64/lib/mlt
)
# Add additional required libraries
target_link_libraries(editvideo PRIVATE
kernel32
user32
gdi32
winspool
shell32
ole32
oleaut32
uuid
comdlg32
)
# Set the plugin configuration
set_target_properties(editvideo PROPERTIES
AUTOMOC ON
AUTOUIC ON
AUTORCC ON
)
# Enable Qt multimedia and plugin support
target_compile_definitions(editvideo PRIVATE
QT_PLUGIN
QT_MULTIMEDIA_LIB
QT_MEDIA_WIDGETS_PLUGIN
)