diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2012-12-06 14:38:00 +0100 |
---|---|---|
committer | Stephen Kelly <stephen.kelly@kdab.com> | 2012-12-07 11:17:02 +0100 |
commit | 7fab677324b13e254e3938c8fc70c8da181c1066 (patch) | |
tree | dfe0b55a4b04c47abb876671dfadfab6a2427aa8 /tests/auto/cmake/test_qx11_module/CMakeLists.txt | |
parent | 013061630c8076682f5db098821d18cf6a1c22a6 (diff) | |
download | qtx11extras-7fab677324b13e254e3938c8fc70c8da181c1066.tar.gz |
Add unit tests for the cmake files.
Change-Id: I2e07862e0e13d8a9747691d219185edbe6c86274
Reviewed-by: David Faure (KDE) <faure@kde.org>
Diffstat (limited to 'tests/auto/cmake/test_qx11_module/CMakeLists.txt')
-rw-r--r-- | tests/auto/cmake/test_qx11_module/CMakeLists.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/auto/cmake/test_qx11_module/CMakeLists.txt b/tests/auto/cmake/test_qx11_module/CMakeLists.txt new file mode 100644 index 0000000..d6f050e --- /dev/null +++ b/tests/auto/cmake/test_qx11_module/CMakeLists.txt @@ -0,0 +1,25 @@ + +cmake_minimum_required(VERSION 2.8) + +project(test_qx11_module) + +find_package(Qt5Core REQUIRED) +find_package(Qt5Gui REQUIRED) + +find_package(Qt5X11Support REQUIRED) + +include_directories( + ${Qt5X11Support_INCLUDE_DIRS} +) + +add_definitions( + ${Qt5X11Support_DEFINITIONS} +) + +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}") + +add_executable(mainapp main.cpp) + +target_link_libraries(mainapp + ${Qt5X11Support_LIBRARIES} +) |