title: CMake is successful, but make fails when linking
body: <p>I am trying to compile my project on macOS with CMake. I have gstreamer installed via brew and I can access the include directory. For example this is the include directoy for gstreamer:</p>
  
  <pre><code>/usr/local/Cellar/gstreamer/1.16.2/include/gstreamer-1.0/
  </code></pre>
  
  <p>When running <code>cmake</code> with following <code>CMakeLists.txt</code> everything runs successfully, but <code>make</code> fails when I trying to link with following error:</p>
  
  <pre><code>[ 25%] Linking CXX executable multiviewer
  ld: library not found for -lgstreamer-1.0
  </code></pre>
  
  <p>CMakeLists.txt:</p>
  
  <pre><code>cmake_minimum_required(VERSION 3.15)
  project(application)
  
  set(CMAKE_CXX_STANDARD 20)
  
  set(CMAKE_AUTOMOC ON)
  set(CMAKE_AUTOUIC ON)
  set(CMAKE_AUTORCC ON)
  
  find_package(Qt5Core REQUIRED)
  find_package(Qt5Quick REQUIRED)
  find_package(Qt5WebSockets REQUIRED)
  
  # Required for GStreamer
  find_package(PkgConfig)
  
  # Look for GStreamer installation
  pkg_check_modules(GST REQUIRED gstreamer-1.0)
  
  add_executable(application
          main.cpp qml.qrc server.cpp server.h
          ${PROTO_SRCS} ${PROTO_HDRS} client.cpp client.h)
  
  # Qt5
  target_link_libraries(application Qt5::Core Qt5::Quick Qt5::WebSockets)
  
  # GStreamer
  target_include_directories(application PUBLIC ${GST_INCLUDE_DIRS})
  target_compile_options(application PUBLIC ${GST_CFLAGS})
  target_link_libraries(application ${GST_LIBRARIES})
  </code></pre>
  
  <p>Here are the packages I've installed:</p>
  
  <pre><code>brew install pkg-config
  brew install gstreamer
  brew install gst-plugins-base
  brew install gst-plugins-good
  brew install gst-plugins-bad
  brew install gst-plugins-ugly
  brew install gst-libav
  </code></pre>
  
  <p>Output of <code>pkg-config --cflags gstreamer-1.0</code>:</p>
  
  <pre><code>-I/usr/local/Cellar/libffi/3.2.1/lib/libffi-3.2.1/include -I/usr/local/Cellar/gstreamer/1.16.2/include/gstreamer-1.0 -I/usr/local/Cellar/glib/2.62.4/include -I/usr/local/Cellar/glib/2.62.4/include/glib-2.0 -I/usr/local/Cellar/glib/2.62.4/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.43/include
  </code></pre>
  
  <p>Output of <code>pkg-config --libs gstreamer-1.0</code>:</p>
  
  <pre><code>-L/usr/local/Cellar/gstreamer/1.16.2/lib -L/usr/local/Cellar/glib/2.62.4/lib -L/usr/local/opt/gettext/lib -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lintl
  </code></pre>
  
  <p>Do I need something else to install or what am I doing wrong?</p>