diff options
Diffstat (limited to 'tests/compilation/CompilationTests_CMakeLists.txt')
-rw-r--r-- | tests/compilation/CompilationTests_CMakeLists.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/compilation/CompilationTests_CMakeLists.txt b/tests/compilation/CompilationTests_CMakeLists.txt new file mode 100644 index 0000000..fe58e5f --- /dev/null +++ b/tests/compilation/CompilationTests_CMakeLists.txt @@ -0,0 +1,17 @@ +# This is a cmake project file that is used to run the compilation tests. +# We misuse cmake here by running tests with the try_compile command and basing +# the result of the whole test suite on the cmake exit status. + +cmake_minimum_required(VERSION 2.8) +find_package(QtGstreamer REQUIRED) +include(MacroCXXCompilationTest) + +set(CMAKE_REQUIRED_LIBRARIES ${QTGSTREAMER_LIBRARIES}) +set(CMAKE_REQUIRED_INCLUDES ${QTGSTREAMER_INCLUDES}) +set(CMAKE_REQUIRED_DEFINITIONS ${QTGSTREAMER_DEFINITIONS}) +set(CMAKE_REQUIRED_FLAGS "${QTGSTREAMER_FLAGS}") + +message("********* Begin running compilation tests *********") +include(CompilationTests.cmake) +evaluate_cxx_compilation_test_results() +message("********* Finished running compilation tests *********") |