on xenial help sign in
Use a different name for test and binary
commit02af4af55ca49908f0e78c6183aa7897df7b39e8 authorMichael Terry <michael.terry@canonical.com> dateTue 3 Dec 2013, 14:41 (13 years ago) parent480ed37
1 file changed+4−4
tests/plugins/LightDM/CMakeLists.txt+4−4
tests/plugins/LightDM/CMakeLists.txt+4−4
@@ -1,8 +1,8 @@
1−add_executable(testLightDMDBus
1+add_executable(test-lightdm-dbus
22 dbus.cpp
33 ${CMAKE_SOURCE_DIR}/plugins/LightDM/Greeter.cpp
44 )
5−qt5_use_modules(testLightDMDBus Core DBus Quick Test)
5+qt5_use_modules(test-lightdm-dbus Core DBus Quick Test)
66
77include_directories(
88 ${CMAKE_CURRENT_BINARY_DIR}
@@ -11,7 +11,7 @@ include_directories(
1111 ${LIBLIGHTDM_INCLUDE_DIRS}
1212 )
1313
14−target_link_libraries(testLightDMDBus
14+target_link_libraries(test-lightdm-dbus
1515 -L${CMAKE_BINARY_DIR}/tests/mocks/LightDM/full
1616 -llightdm-qt5-2
1717 )
@@ -19,5 +19,5 @@ target_link_libraries(testLightDMDBus
1919add_definitions(-DCURRENT_SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
2020
2121add_test(NAME testLightDMDBus
22− COMMAND 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}/testLightDMDBus
22+ COMMAND 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
2323 )