-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
49 lines (41 loc) · 990 Bytes
/
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
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(score_addon_ndi LANGUAGES CXX)
if(NOT TARGET score_lib_base)
include("${SCORE_SOURCE_DIR}/cmake/ScoreExternalAddon.cmake")
else()
if(NOT TARGET score_plugin_gfx)
return()
endif()
if(NOT TARGET score_plugin_media)
return()
endif()
endif()
if(EMSCRIPTEN)
return()
endif()
# General initialization
score_common_setup()
# Creation of the library
add_library(score_addon_ndi
Ndi/InputNode.hpp
Ndi/InputFactory.hpp
Ndi/OutputNode.hpp
Ndi/OutputFactory.hpp
Ndi/Loader.hpp
Ndi/InputNode.cpp
Ndi/InputFactory.cpp
Ndi/OutputNode.cpp
Ndi/OutputFactory.cpp
Ndi/Loader.cpp
score_addon_ndi.hpp
score_addon_ndi.cpp
)
target_include_directories(score_addon_ndi PRIVATE 3rdparty/NDI/include)
# Link
target_link_libraries(score_addon_ndi
PUBLIC
score_plugin_engine score_plugin_media score_plugin_gfx
avformat avutil swscale
)
# Target-specific options
setup_score_plugin(score_addon_ndi)