From 682f843b38ff7b827e0a7d71a3856fba8030c182 Mon Sep 17 00:00:00 2001 From: Moritz Martinius Date: Wed, 9 Mar 2022 11:25:54 +0100 Subject: [PATCH] fix cmake --- CMakeLists.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index efbe8dd..34e69f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.1...3.22) project( - gst-threads + gst-peek VERSION 0.1 LANGUAGES CXX) @@ -17,15 +17,15 @@ pkg_check_modules(GSTREAMER REQUIRED gstreamer-1.0) #set(THREADS_PREFER_PTHREAD_FLAG TRUE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread") -add_executable(gst-threads src/main.cpp) +add_executable(gst-peek src/main.cpp) # Additional include directories. -target_include_directories(gst-threads PUBLIC ${GLIB_INCLUDE_DIRS} ${GSTREAMER_INCLUDE_DIRS}) +target_include_directories(gst-peek PUBLIC ${GLIB_INCLUDE_DIRS} ${GSTREAMER_INCLUDE_DIRS}) # Make sure you link your targets with this command. It can also link libraries and # even flags, so linking a target that does not exist will not give a configure-time error. -target_link_libraries(gst-threads ${GSTREAMER_LIBRARIES}) -target_link_libraries(gst-threads ${GSTREAMER_APP_LIBRARIES}) -target_link_libraries(gst-threads ${GSTREAMER_VIDEO_LIBRARIES} ) -target_link_libraries(gst-threads Threads::Threads) +target_link_libraries(gst-peek ${GSTREAMER_LIBRARIES}) +target_link_libraries(gst-peek ${GSTREAMER_APP_LIBRARIES}) +target_link_libraries(gst-peek ${GSTREAMER_VIDEO_LIBRARIES} ) +target_link_libraries(gst-peek Threads::Threads)