~alan-griffiths/miral/debug

« back to all changes in this revision

Viewing changes to miral-qt/tests/modules/SurfaceManager/CMakeLists.txt

  • Committer: Gerry Boland
  • Date: 2016-06-01 22:06:51 UTC
  • mto: This revision was merged to the branch mainline in revision 178.
  • Revision ID: gerry.boland@canonical.com-20160601220651-ge508tffql4e7u7c
Import QtMir code into miral-qt subdirectory. Disabled by default, use -DMIRAL_ENABLE_QT=1 to build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
set(
 
2
  MIR_SURFACE_MANAGER_TEST_SOURCES
 
3
  mirsurfaceitem_test.cpp
 
4
  mirsurface_test.cpp
 
5
  ${MIRAL_QT_SOURCE_DIR}/src/common/debughelpers.cpp
 
6
)
 
7
 
 
8
include_directories(
 
9
  ${MIRAL_QT_SOURCE_DIR}/src/modules
 
10
  ${MIRAL_QT_SOURCE_DIR}/src/platforms/mirserver
 
11
  ${MIRAL_QT_SOURCE_DIR}/tests/framework
 
12
  ${MIRSERVER_INCLUDE_DIRS}
 
13
)
 
14
 
 
15
add_executable(surfacemanager_test ${MIR_SURFACE_MANAGER_TEST_SOURCES})
 
16
 
 
17
target_link_libraries(
 
18
  surfacemanager_test
 
19
 
 
20
  unityapplicationplugin
 
21
 
 
22
  Qt5::Test
 
23
 
 
24
  -L${CMAKE_BINARY_DIR}/miral-qt/tests/framework
 
25
  qtmir-test-framework-static
 
26
 
 
27
  ${GTEST_BOTH_LIBRARIES}
 
28
  ${GMOCK_LIBRARIES}
 
29
)
 
30
 
 
31
add_test(SurfaceManager surfacemanager_test)