-
Notifications
You must be signed in to change notification settings - Fork 21
/
CMakeLists.txt
37 lines (31 loc) · 1.05 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
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
project(gst-plugins-vr)
include (FindPkgConfig)
pkg_check_modules (GRAPHENE REQUIRED graphene-1.0)
pkg_check_modules (GST REQUIRED gstreamer-1.0)
pkg_check_modules (GST_GL REQUIRED gstreamer-gl-1.0)
pkg_check_modules (GST_VIDEO REQUIRED gstreamer-video-1.0)
pkg_check_modules (GLIB REQUIRED glib-2.0)
include_directories(
${GRAPHENE_INCLUDE_DIRS}
${GST_INCLUDE_DIRS}
${GLIB_INCLUDE_DIRS}
${GST_GL_INCLUDE_DIRS}
${GST_VIDEO_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/gst-libs/
${CMAKE_SOURCE_DIR}/build
)
file(GLOB_RECURSE GST_3D_C ${CMAKE_SOURCE_DIR}/gst-libs/gst/3d/*.c)
file(GLOB_RECURSE GST_3D_H ${CMAKE_SOURCE_DIR}/gst-libs/gst/3d/*.h)
add_library(gst3d ${SOURCES} ${GST_3D_C} ${GST_3D_H})
target_link_libraries(gst3d
${GRAPHENE_LIBRARIES}
${GST_LIBRARIES}
${GLIB_LIBRARIES}
${GST_GL_LIBRARIES}
${GST_VIDEO_LIBRARIES}
)
file(GLOB_RECURSE GST_VR_C ${CMAKE_SOURCE_DIR}/gst/vr/*.c)
file(GLOB_RECURSE GST_VR_H ${CMAKE_SOURCE_DIR}/gst/vr/*.h)
add_library(gstvr ${GST_VR_C} ${GST_VR_H})
target_link_libraries(gstvr gst3d)