2014-09-17 10:24:39 +00:00
|
|
|
|
|
|
|
CMAKE_MINIMUM_REQUIRED (VERSION 2.8)
|
|
|
|
|
|
|
|
PROJECT(dshowsrcwrapper)
|
|
|
|
|
2018-10-24 18:15:08 +00:00
|
|
|
IF ("${CMAKE_GENERATOR}" MATCHES "Win64")
|
|
|
|
SET(ARCH_ "x86_64")
|
|
|
|
ELSE ()
|
|
|
|
SET(ARCH_ "x86")
|
|
|
|
ENDIF ()
|
|
|
|
SET(GST_INSTALL_BASE "C:\\gstreamer\\1.0\\${ARCH_}" CACHE PATH "Path to the GStreamer install base")
|
2014-09-17 10:24:39 +00:00
|
|
|
SET(SDK_INSTALL_BASE "C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1" CACHE PATH "Path to the Windows SDK root")
|
|
|
|
|
|
|
|
SET_PROPERTY(
|
|
|
|
DIRECTORY
|
|
|
|
APPEND PROPERTY COMPILE_DEFINITIONS
|
|
|
|
HAVE_CONFIG_H
|
|
|
|
)
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(
|
|
|
|
${GST_INSTALL_BASE}/include
|
|
|
|
${GST_INSTALL_BASE}/include/gstreamer-1.0
|
|
|
|
${GST_INSTALL_BASE}/include/glib-2.0
|
|
|
|
${GST_INSTALL_BASE}/lib/glib-2.0/include
|
2016-04-22 12:44:57 +00:00
|
|
|
${GST_INSTALL_BASE}/lib/gstreamer-1.0/include
|
2014-09-17 10:24:39 +00:00
|
|
|
${SDK_INSTALL_BASE}/Samples/multimedia/directshow/baseclasses
|
|
|
|
)
|
|
|
|
|
2018-10-24 18:15:08 +00:00
|
|
|
IF ("${CMAKE_GENERATOR}" MATCHES "Win64")
|
|
|
|
SET(ARCH_ "x64/")
|
|
|
|
ELSE ()
|
|
|
|
SET(ARCH_ "")
|
|
|
|
ENDIF ()
|
|
|
|
|
2014-09-17 10:24:39 +00:00
|
|
|
LINK_DIRECTORIES(
|
|
|
|
${GST_INSTALL_BASE}/lib
|
2018-10-24 18:15:08 +00:00
|
|
|
${SDK_INSTALL_BASE}/Samples/multimedia/directshow/baseclasses/${ARCH_}Release_MBCS
|
|
|
|
${SDK_INSTALL_BASE}/Samples/multimedia/directshow/baseclasses/${ARCH_}Debug_MBCS
|
2014-09-17 10:24:39 +00:00
|
|
|
)
|
|
|
|
|
2016-04-22 12:44:57 +00:00
|
|
|
SET(CMAKE_SHARED_LINKER_FLAGS "${CMALE_SHARED_LINKER_FLAGS} /SAFESEH:NO")
|
|
|
|
|
2014-09-17 10:24:39 +00:00
|
|
|
ADD_LIBRARY(libgstdshowsrcwrapper SHARED
|
2018-10-16 15:53:20 +00:00
|
|
|
dshowdeviceprovider.cpp
|
|
|
|
dshowdeviceprovider.h
|
2014-09-17 10:24:39 +00:00
|
|
|
gstdshow.cpp
|
|
|
|
gstdshow.h
|
|
|
|
gstdshowfakesink.cpp
|
|
|
|
gstdshowfakesink.h
|
|
|
|
gstdshowaudiosrc.cpp
|
|
|
|
gstdshowaudiosrc.h
|
|
|
|
gstdshowvideosrc.cpp
|
|
|
|
gstdshowvideosrc.h
|
|
|
|
gstdshowsrcwrapper.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(libgstdshowsrcwrapper
|
|
|
|
gstreamer-1.0
|
|
|
|
gstaudio-1.0
|
|
|
|
gstvideo-1.0
|
|
|
|
gstbase-1.0
|
|
|
|
glib-2.0
|
|
|
|
gobject-2.0
|
|
|
|
debug strmbasd
|
|
|
|
optimized strmbase
|
|
|
|
rpcrt4
|
|
|
|
uuid
|
|
|
|
winmm
|
|
|
|
)
|