~alan-griffiths/miral/debug

« back to all changes in this revision

Viewing changes to miral-qt/tests/modules/SessionManager/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
  SESSION_MANAGER_TEST_SOURCES
 
3
  session_manager_test.cpp
 
4
  session_test.cpp
 
5
  ${MIRAL_QT_SOURCE_DIR}/src/common/debughelpers.cpp
 
6
)
 
7
 
 
8
include_directories(
 
9
  ${APPLICATION_API_INCLUDE_DIRS}
 
10
  ${MIRAL_QT_SOURCE_DIR}/src/platforms/mirserver
 
11
  ${MIRAL_QT_SOURCE_DIR}/src/modules
 
12
  ${MIRAL_QT_SOURCE_DIR}/tests/framework
 
13
  ${MIRSERVER_INCLUDE_DIRS}
 
14
)
 
15
 
 
16
add_executable(sessionmanager_test ${SESSION_MANAGER_TEST_SOURCES})
 
17
 
 
18
add_dependencies(sessionmanager_test qtmir-test-framework-static)
 
19
 
 
20
target_link_libraries(
 
21
  sessionmanager_test
 
22
 
 
23
  unityapplicationplugin
 
24
 
 
25
  Qt5::Test
 
26
 
 
27
  -L${CMAKE_BINARY_DIR}/miral-qt/tests/framework
 
28
  qtmir-test-framework-static
 
29
 
 
30
  ${GTEST_BOTH_LIBRARIES}
 
31
  ${GMOCK_LIBRARIES}
 
32
)
 
33
 
 
34
add_test(SessionManager, sessionmanager_test)