<html><head></head><body><div>Le jeudi 27 octobre 2016 à 06:06 +0000, Rick Blacker a écrit :</div><blockquote type="cite"><div>    cmake_minimum_required(VERSION 2.8)</div><div>    project(InitGStreamer)</div><div>    add_executable(${PROJECT_NAME} main.cpp )</div><div>    set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")</div><div>    find_package(gstreamer-app REQUIRED)</div></blockquote><div><br></div><div>Please, read my previous email. GStreamer do not provide cmake specific package. If one exist, it is most likely out-dated. Use PkgConfig package finder with the rather complete instruction I have provided.</div><div><br></div><div>regards,</div><div>Nicolas</div><div><br></div><div>In case you missed it:</div><div>Le mercredi 26 octobre 2016 à 17:56 +0000, Rick Blacker a écrit :</div><div>> I’m new to both GStreamer and CMake.  I’m trying to create a cmake</div><div>> file for an app that I want to use gstreamer in. When I use the</div><div>> command</div><div>> find_package( …. )  I’ve tried several different gstreamer package</div><div>> names.  Things like find_package( gstreamer-1.0 ) and others.  None</div><div>> of them worked.</div><div>>  </div><div>> Does anyone know the proper value to use here?</div><div><br></div><div>GStreamer implement standard pkg-config metadata. CMake provides the</div><div>PkgConfig package to let you interface with that. Here's an exemple:</div><div><br></div><div>find_package(PkgConfig)</div><div><br></div><div>pkg_check_modules(GST REQUIRED gstreamer-1.0>=1.4</div><div>                               gstreamer-sdp-1.0>=1.4</div><div>                               gstreamer-video-1.0>=1.4</div><div>                               gstreamer-app-1.0>=1.4)</div><div><br></div><div>Notice that GStreamer is a collection of libraries. The list will</div><div>depend on your application needs. From there you'll have to update few</div><div>things. Globally, link_directories with ${GST_LIBRARY_DIRS} (only</div><div>needed if you use GStreamer from non-system installation). And per</div><div>target:</div><div> - target_include_directories with ${GST_INCLUDE_DIRS}</div><div> - target_compile_options with ${GST_CFLAGS}</div><div> - target_link_libraries with ${GST_LIBRARIES}</div><div><br></div><div>You'll also have to choose between private and public exposure</div><div>depending if you create an app or library and if you expose GStreamer</div><div>through your library or not.</div></body></html>