blob: b13953619c65e9658e853e2fc60ccda4211c9501 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
set(QTGSTREAMER_VERSION @QTGSTREAMER_VERSION@)
@PACKAGE_INIT@
get_filename_component(_QTGSTREAMER_CONFIG_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
# include the generated QtGStreamerTargets.cmake from the same directory
find_file(_QTGSTREAMER_TARGETS_FILE @QTGSTREAMER_PACKAGE_NAME@Targets.cmake
PATHS ${_QTGSTREAMER_CONFIG_DIR} NO_DEFAULT_PATH)
include(${_QTGSTREAMER_TARGETS_FILE})
set(QTGLIB_LIBRARY @QTGLIB_LIBRARY@)
set(QTGSTREAMER_LIBRARY @QTGSTREAMER_LIBRARY@)
set(QTGSTREAMER_UI_LIBRARY @QTGSTREAMER_UI_LIBRARY@)
set(QTGSTREAMER_UTILS_LIBRARY @QTGSTREAMER_UTILS_LIBRARY@)
set_and_check(QTGSTREAMER_INCLUDE_DIR @PACKAGE_INCLUDES_INSTALL_DIR@)
# Find dependencies, if not already found
if ("@QTGSTREAMER_PACKAGE_NAME@" STREQUAL "Qt5GStreamer")
if (NOT DEFINED Qt5Widgets_INCLUDE_DIRS)
message(STATUS "Qt5 hasn't been found yet. Looking...")
find_package(Qt5Widgets)
endif()
else()
if (NOT DEFINED QT_INCLUDE_DIR)
message(STATUS "Qt4 hasn't been found yet. Looking...")
find_package(Qt4 COMPONENTS QtCore QtGui REQUIRED)
endif()
endif()
if (NOT DEFINED Boost_INCLUDE_DIRS)
message(STATUS "Boost hasn't been found yet. Looking...")
find_package(Boost REQUIRED)
endif()
# include QtGStreamerConfigCommon.cmake from the same directory
find_file(_QTGSTREAMER_CONFIG_COMMON_FILE QtGStreamerConfigCommon.cmake
PATHS ${_QTGSTREAMER_CONFIG_DIR} NO_DEFAULT_PATH)
include(${_QTGSTREAMER_CONFIG_COMMON_FILE})
|