mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
dshowsrcwrapper: fix include path and link error
Add include path so that the cmake-generated project is able to find gstconfig.h Add /SAFESEH:NO to MSVC linker options so it can link with gstreamer libraries on Windows. https://bugzilla.gnome.org//show_bug.cgi?id=765426
This commit is contained in:
parent
04e4392afe
commit
97529971fc
1 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,7 @@ INCLUDE_DIRECTORIES(
|
||||||
${GST_INSTALL_BASE}/include/gstreamer-1.0
|
${GST_INSTALL_BASE}/include/gstreamer-1.0
|
||||||
${GST_INSTALL_BASE}/include/glib-2.0
|
${GST_INSTALL_BASE}/include/glib-2.0
|
||||||
${GST_INSTALL_BASE}/lib/glib-2.0/include
|
${GST_INSTALL_BASE}/lib/glib-2.0/include
|
||||||
|
${GST_INSTALL_BASE}/lib/gstreamer-1.0/include
|
||||||
${SDK_INSTALL_BASE}/Samples/multimedia/directshow/baseclasses
|
${SDK_INSTALL_BASE}/Samples/multimedia/directshow/baseclasses
|
||||||
${PROJECT_SOURCE_DIR}/../../win32/common
|
${PROJECT_SOURCE_DIR}/../../win32/common
|
||||||
)
|
)
|
||||||
|
@ -27,6 +28,8 @@ LINK_DIRECTORIES(
|
||||||
${SDK_INSTALL_BASE}/Samples/multimedia/directshow/baseclasses/Debug_MBCS
|
${SDK_INSTALL_BASE}/Samples/multimedia/directshow/baseclasses/Debug_MBCS
|
||||||
)
|
)
|
||||||
|
|
||||||
|
SET(CMAKE_SHARED_LINKER_FLAGS "${CMALE_SHARED_LINKER_FLAGS} /SAFESEH:NO")
|
||||||
|
|
||||||
ADD_LIBRARY(libgstdshowsrcwrapper SHARED
|
ADD_LIBRARY(libgstdshowsrcwrapper SHARED
|
||||||
gstdshow.cpp
|
gstdshow.cpp
|
||||||
gstdshow.h
|
gstdshow.h
|
||||||
|
|
Loading…
Reference in a new issue