~cimi/unity8/card_touchdown

« back to all changes in this revision

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

  • Committer: Andrea Cimitan
  • Date: 2014-06-20 15:02:12 UTC
  • mfrom: (917.1.36 obeyArtShapeFixedSize)
  • Revision ID: andrea.cimitan@gmail.com-20140620150212-an6nkcv515i22usy
Merged albert branch with fixes for icon size

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include(FindPkgConfig)
 
2
pkg_check_modules(LIBLIGHTDM REQUIRED liblightdm-qt5-3)
 
3
 
1
4
add_executable(test-lightdm-dbus
2
5
    dbus.cpp
3
6
    ${CMAKE_SOURCE_DIR}/plugins/LightDM/Greeter.cpp
7
10
include_directories(
8
11
    ${CMAKE_CURRENT_BINARY_DIR}
9
12
    ${CMAKE_SOURCE_DIR}/plugins/LightDM
10
 
    ${CMAKE_SOURCE_DIR}/tests/mocks/LightDM
11
13
    ${LIBLIGHTDM_INCLUDE_DIRS}
12
14
    )
13
15
 
14
16
add_dependencies(test-lightdm-dbus MockLightDM-full)
15
17
target_link_libraries(test-lightdm-dbus
16
 
    -L${CMAKE_BINARY_DIR}/tests/mocks/LightDM/full
17
 
    -llightdm-qt5-2
 
18
    ${LIBLIGHTDM_LDFLAGS}
18
19
    )
19
20
 
20
21
add_definitions(-DCURRENT_SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
21
22
 
22
 
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)
 
23
add_custom_target(testLightDMDBus dbus-launch env QML2_IMPORT_PATH=${CMAKE_BINARY_DIR}/plugins LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/tests/mocks/liblightdm/full ${CMAKE_CURRENT_BINARY_DIR}/test-lightdm-dbus)
23
24
add_dependencies(testLightDMDBus test-lightdm-dbus)
24
25
 
25
26
add_dependencies(qmluitests testLightDMDBus)