Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Add CMake build for QtCreator.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |