~alan-griffiths/miral/debug

« back to all changes in this revision

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