forked from CatxFish/obs-v4l2sink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
51 lines (36 loc) · 1 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
cmake_minimum_required(VERSION 3.5)
project(obs-v4l2sink)
include(external/FindLibObs.cmake)
find_package(LibObs REQUIRED)
set (CMAKE_CXX_STANDARD 11)
set(CMAKE_PREFIX_PATH "${QTDIR}")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt5Core REQUIRED)
find_package(Qt5Widgets REQUIRED)
set(virtualoutput_SOURCES
src/v4l2sink.cpp
src/v4l2sinkproperties.cpp)
set(virtualoutput_HEADERS
src/v4l2sink.h
src/v4l2sinkproperties.h)
include_directories(
"${LIBOBS_INCLUDE_DIR}/../UI/obs-frontend-api")
add_library(v4l2sink MODULE
${virtualoutput_SOURCES}
${virtualoutput_HEADERS})
target_link_libraries(v4l2sink
libobs
Qt5::Core
Qt5::Widgets)
if(ARCH EQUAL 64)
set(ARCH_NAME "x86_64")
else()
set(ARCH_NAME "i686")
endif()
set_target_properties(v4l2sink PROPERTIES PREFIX "")
install(TARGETS v4l2sink
LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/obs-plugins)
install(DIRECTORY locale/
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/obs/obs-plugins/v4l2sink/locale")