Skip to content
This repository has been archived by the owner on Aug 28, 2020. It is now read-only.

Commit

Permalink
Add cmake buildsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePBone committed Jan 4, 2020
1 parent 858f9fd commit 589e150
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
cmake_minimum_required(VERSION 3.10)
project(gst-plugin-viperfx)

include_directories(.)
include_directories(src)
find_package(PkgConfig)

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)

file(GLOB SOURCES
src/*.h
src/*.c
)

add_library(gst-plugin-viperfx SHARED ${SOURCES})

target_include_directories(gst-plugin-viperfx PUBLIC ${GST_INCLUDE_DIRS})
target_compile_options(gst-plugin-viperfx PUBLIC ${GST_CFLAGS})
target_link_libraries(gst-plugin-viperfx ${GST_LIBRARIES} pthread)

0 comments on commit 589e150

Please sign in to comment.