summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_modules/CMakeLists.txt
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-07-19 16:15:13 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-20 07:28:09 +0200
commite558ed168020cc9cd6d7f2c4b41f06e2b7819b37 (patch)
tree5abf05edcfb8da3f74da9413a3e1116bde0fcb78 /tests/auto/cmake/test_modules/CMakeLists.txt
parent36ff2fe85e418e7cf82f6c6a67d49a2f16998853 (diff)
Test that the package configs for QtMultimedia work.
Change-Id: I17bbc52d6ab98cef4da6c56bfaa306a154a5aba2 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/cmake/test_modules/CMakeLists.txt')
-rw-r--r--tests/auto/cmake/test_modules/CMakeLists.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/auto/cmake/test_modules/CMakeLists.txt b/tests/auto/cmake/test_modules/CMakeLists.txt
new file mode 100644
index 000000000..bcfa96c45
--- /dev/null
+++ b/tests/auto/cmake/test_modules/CMakeLists.txt
@@ -0,0 +1,28 @@
+
+cmake_minimum_required(VERSION 2.8)
+
+project(test_modules)
+
+find_package(Qt5Network REQUIRED)
+find_package(Qt5Widgets REQUIRED)
+
+find_package(Qt5Multimedia REQUIRED)
+find_package(Qt5MultimediaWidgets REQUIRED)
+
+include_directories(
+ ${Qt5Multimedia_INCLUDE_DIRS}
+ ${Qt5MultimediaWidgets_INCLUDE_DIRS}
+)
+
+add_definitions(
+ ${Qt5Multimedia_DEFINITIONS}
+ ${Qt5MultimediaWidgets_DEFINITIONS}
+)
+
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}")
+
+add_executable(mainapp main.cpp)
+target_link_libraries(mainapp
+ ${Qt5Multimedia_LIBRARIES}
+ ${Qt5MultimediaWidgets_LIBRARIES}
+)