-
Notifications
You must be signed in to change notification settings - Fork 720
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #308 from cmusphinx/258-resurrect-gstreamer-support
Resurrect GStreamer support
- Loading branch information
Showing
7 changed files
with
1,150 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
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
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,21 @@ | ||
find_package(PkgConfig REQUIRED) | ||
pkg_check_modules(GOBJECT gobject-2.0 REQUIRED) | ||
pkg_check_modules(GSTREAMER gstreamer-1.0 gstreamer-base-1.0) | ||
add_library(gstpocketsphinx SHARED gstpocketsphinx.c) | ||
set_property(TARGET pocketsphinx PROPERTY POSITION_INDEPENDENT_CODE on) | ||
target_link_libraries(gstpocketsphinx PUBLIC | ||
pocketsphinx | ||
${GSTREAMER_LIBRARIES} | ||
${GOBJECT_LIBRARIES} | ||
) | ||
target_include_directories( | ||
gstpocketsphinx PRIVATE ${CMAKE_BINARY_DIR} | ||
gstpocketsphinx PRIVATE ${CMAKE_SOURCE_DIR}/src | ||
gstpocketsphinx PUBLIC ${CMAKE_SOURCE_DIR}/include | ||
gstpocketsphinx PUBLIC ${CMAKE_BINARY_DIR}/include | ||
gstpocketsphinx INTERFACE ${CMAKE_SOURCE_DIR}/include | ||
gstpocketsphinx INTERFACE ${CMAKE_BINARY_DIR}/include | ||
gstpocketsphinx PUBLIC ${GSTREAMER_INCLUDE_DIRS} ${GOBJECT_INCLUDE_DIRS} | ||
) | ||
message("Installing GStreamer plugin to ${CMAKE_INSTALL_FULL_LIBDIR}/gstreamer-1.0") | ||
install(TARGETS gstpocketsphinx LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}/gstreamer-1.0) |
Oops, something went wrong.