~xnox/unity8/cross-compile

« back to all changes in this revision

Viewing changes to tests/plugins/LightDM/CMakeLists.txt

  • Committer: Tarmac
  • Author(s): Michael Terry
  • Date: 2013-12-04 19:29:59 UTC
  • mfrom: (567.4.6 greeter-dbus-api)
  • Revision ID: tarmac-20131204192959-6p1va2xnvkoxegk8
Add the DBus greeter API from the desktop greeter into the unity8 greeter.

Approved by PS Jenkins bot, Albert Astals Cid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
add_executable(test-lightdm-dbus
 
2
    dbus.cpp
 
3
    ${CMAKE_SOURCE_DIR}/plugins/LightDM/Greeter.cpp
 
4
    )
 
5
qt5_use_modules(test-lightdm-dbus Core DBus Quick Test)
 
6
 
 
7
include_directories(
 
8
    ${CMAKE_CURRENT_BINARY_DIR}
 
9
    ${CMAKE_SOURCE_DIR}/plugins/LightDM
 
10
    ${CMAKE_SOURCE_DIR}/tests/mocks/LightDM
 
11
    ${LIBLIGHTDM_INCLUDE_DIRS}
 
12
    )
 
13
 
 
14
target_link_libraries(test-lightdm-dbus
 
15
    -L${CMAKE_BINARY_DIR}/tests/mocks/LightDM/full
 
16
    -llightdm-qt5-2
 
17
    )
 
18
 
 
19
add_definitions(-DCURRENT_SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
 
20
 
 
21
add_custom_target(testLightDMDBus dbus-launch env QML2_IMPORT_PATH=${CMAKE_BINARY_DIR}/tests/mocks LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/tests/mocks/LightDM/full ${CMAKE_CURRENT_BINARY_DIR}/test-lightdm-dbus)
 
22
add_dependencies(testLightDMDBus test-lightdm-dbus)
 
23
 
 
24
add_dependencies(qmluitests testLightDMDBus)