forked from noahbliss/gst-plugin-viperfx
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
28 lines (21 loc) · 816 Bytes
/
CMakeLists.txt
File metadata and controls
28 lines (21 loc) · 816 Bytes
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
cmake_minimum_required(VERSION 3.10)
project(gst-plugin-viperfx)
include_directories(.)
include_directories(src)
find_package(PkgConfig REQUIRED)
pkg_check_modules(GST REQUIRED
gstreamer-1.0>=1.0
gstreamer-base-1.0>=1.0
gstreamer-controller-1.0>=1.0
gstreamer-audio-1.0>=1.0)
pkg_check_modules(GLIB REQUIRED
glib-2.0
gio-unix-2.0)
file(GLOB SOURCES
src/*.h
src/*.c)
add_library(gst-plugin-viperfx SHARED ${SOURCES})
target_include_directories(gst-plugin-viperfx PUBLIC ${GST_INCLUDE_DIRS} ${GLIB_INCLUDE_DIRS})
target_compile_options(gst-plugin-viperfx PUBLIC ${GST_CFLAGS} ${GLIB_CFLAGS})
target_link_libraries(gst-plugin-viperfx ${GST_LIBRARIES} ${GLIB_LIBRARIES})
set_target_properties(gst-plugin-viperfx PROPERTIES OUTPUT_NAME "gstviperfx")