Skip to content

Commit

Permalink
build: Add CMake build for QtCreator.
Browse files Browse the repository at this point in the history
  • Loading branch information
lubosz committed Jun 10, 2016
1 parent 31e0556 commit d7af996
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions CMakeLists.txt
@@ -0,0 +1,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)

0 comments on commit d7af996

Please sign in to comment.