summaryrefslogtreecommitdiff
path: root/tests/compilation/CompilationTests_CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compilation/CompilationTests_CMakeLists.txt')
-rw-r--r--tests/compilation/CompilationTests_CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/compilation/CompilationTests_CMakeLists.txt b/tests/compilation/CompilationTests_CMakeLists.txt
index 165d80a..ccfc865 100644
--- a/tests/compilation/CompilationTests_CMakeLists.txt
+++ b/tests/compilation/CompilationTests_CMakeLists.txt
@@ -11,7 +11,7 @@ find_package(Qt4or5 COMPONENTS Core REQUIRED)
include(QtGStreamerConfigCommon)
include(MacroCXXCompilationTest)
-set(CMAKE_REQUIRED_LIBRARIES ${QTGSTREAMER_LIBRARY} ${QTGLIB_LIBRARY})
+set(CMAKE_REQUIRED_LIBRARIES ${QTGSTREAMER_LIBRARY} ${QTGLIB_LIBRARY} ${Qt4or5_Core_LIBRARIES})
set(CMAKE_REQUIRED_INCLUDES ${QTGSTREAMER_INCLUDES})
set(CMAKE_REQUIRED_DEFINITIONS ${QTGSTREAMER_DEFINITIONS})
set(CMAKE_REQUIRED_FLAGS "${QTGSTREAMER_FLAGS}")
@@ -24,6 +24,9 @@ if (QTGSTREAMER_STATIC)
${GSTREAMER_INTERFACES_LIBRARY})
endif()
+include(HandleImportedTargetsInCMakeRequiredLibraries)
+handle_imported_targets_in_cmake_required_libraries(CMAKE_REQUIRED_LIBRARIES)
+
message("********* Begin running compilation tests *********")
include(CompilationTests.cmake)
evaluate_cxx_compilation_test_results()