forked from danieloneill/obs-qmlview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
61 lines (53 loc) · 1.4 KB
/
CMakeLists.txt
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
57
58
59
60
61
project(obs-qmlview)
set(CMAKE_INCLUDE_CURRENT_DIR TRUE)
set(CMAKE_AUTOMOC TRUE)
find_package(Qt5 COMPONENTS Core)
find_package(Qt5Quick REQUIRED)
if(NOT Qt5Quick_FOUND)
if (ENABLE_UI)
message(FATAL_ERROR "Failed to find Qt5 quickness")
else()
message(STATUS "Qt5 quickness not found - Qmlview disabled")
return()
endif()
endif()
find_package(Qt5Widgets REQUIRED)
if(NOT Qt5Widgets_FOUND)
if (ENABLE_UI)
message(FATAL_ERROR "Failed to find Qt5 midgets")
else()
message(STATUS "Qt5 midgets not found - Qmlview disabled")
return()
endif()
endif()
find_package(Qt5QuickWidgets REQUIRED)
if(NOT Qt5QuickWidgets_FOUND)
if (ENABLE_UI)
message(FATAL_ERROR "Failed to find Qt5 quickmidgets")
else()
message(STATUS "Qt5 quickmidgets not found - Qmlview disabled")
return()
endif()
endif()
set(qmlview_SOURCES
qmlview.cpp
renderer.cpp
)
set(qmlview_HEADERS
qmlview.h
renderer.h
)
add_library(obs-qmlview MODULE
${qmlview_SOURCES}
${qmlview_HEADERS}
)
target_link_libraries(obs-qmlview
match-info-manager
match-connection
libobs
Qt5::Core
Qt5::Quick
Qt5::QuickWidgets
Qt5::Widgets
)
install_obs_plugin_with_data(obs-qmlview data)