Skip to content

Commit 1729e58

Browse files
committed
build: install GStreamer plugin (hopefully to the right place)
1 parent 8b1eb6c commit 1729e58

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gst/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
find_package(PkgConfig REQUIRED)
22
pkg_check_modules(GOBJECT gobject-2.0 REQUIRED)
3-
pkg_check_modules(GSTREAMER gstreamer-1.0 gstreamer-base-1.0 gstreamer-plugins-base-1.0)
3+
pkg_check_modules(GSTREAMER gstreamer-1.0 gstreamer-base-1.0)
44
add_library(gstpocketsphinx SHARED gstpocketsphinx.c)
55
set_property(TARGET pocketsphinx PROPERTY POSITION_INDEPENDENT_CODE on)
66
target_link_libraries(gstpocketsphinx PUBLIC
@@ -17,3 +17,5 @@ target_include_directories(
1717
gstpocketsphinx INTERFACE ${CMAKE_BINARY_DIR}/include
1818
gstpocketsphinx PUBLIC ${GSTREAMER_INCLUDE_DIRS} ${GOBJECT_INCLUDE_DIRS}
1919
)
20+
message("Installing GStreamer plugin to ${CMAKE_INSTALL_FULL_LIBDIR}/gstreamer-1.0")
21+
install(TARGETS gstpocketsphinx LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}/gstreamer-1.0)

0 commit comments

Comments
 (0)