diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.co.uk> | 2011-01-31 16:17:10 +0200 |
---|---|---|
committer | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2011-01-31 13:28:08 -0200 |
commit | 3c7f0402fd6a8491d6b56276424c913bb9daf78e (patch) | |
tree | 3421b906d2c2798deb2b166ae6879d3ac5b8ed47 /cmake | |
parent | 33053f67a754a100e17823461dc481c73a287515 (diff) |
Fix linking with tp-qt4 in the tests.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/TpQt4Macros.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/modules/TpQt4Macros.cmake b/cmake/modules/TpQt4Macros.cmake index 4f188ce..85fb925 100644 --- a/cmake/modules/TpQt4Macros.cmake +++ b/cmake/modules/TpQt4Macros.cmake @@ -347,7 +347,7 @@ endfunction(tpqt4_types_gen _TARGET_NAME _SPEC_XML _OUTFILE_DECL _OUTFILE_IMPL _ macro(tpqt4_add_generic_unit_test _fancyName _name) tpqt4_generate_moc_i(${_name}.cpp ${CMAKE_CURRENT_BINARY_DIR}/_gen/${_name}.cpp.moc.hpp) add_executable(test-${_name} ${_name}.cpp ${CMAKE_CURRENT_BINARY_DIR}/_gen/${_name}.cpp.moc.hpp) - target_link_libraries(test-${_name} ${QT_LIBRARIES} ${QT_QTTEST_LIBRARY} telepathy-qt4 ${ARGN}) + target_link_libraries(test-${_name} ${QT_LIBRARIES} ${QT_QTTEST_LIBRARY} ${TELEPATHY_QT4_LIBRARIES} ${ARGN}) add_test(${_fancyName} ${SH} ${CMAKE_CURRENT_BINARY_DIR}/runGenericTest.sh ${CMAKE_CURRENT_BINARY_DIR}/test-${_name}) list(APPEND tpqt4_test_cases test-${_name}) @@ -358,7 +358,7 @@ endmacro(tpqt4_add_generic_unit_test _fancyName _name) macro(tpqt4_add_dbus_unit_test _fancyName _name) tpqt4_generate_moc_i(${_name}.cpp ${CMAKE_CURRENT_BINARY_DIR}/_gen/${_name}.cpp.moc.hpp) add_executable(test-${_name} ${_name}.cpp ${CMAKE_CURRENT_BINARY_DIR}/_gen/${_name}.cpp.moc.hpp) - target_link_libraries(test-${_name} ${QT_LIBRARIES} ${QT_QTTEST_LIBRARY} telepathy-qt4 ${ARGN}) + target_link_libraries(test-${_name} ${QT_LIBRARIES} ${QT_QTTEST_LIBRARY} ${TELEPATHY_QT4_LIBRARIES} ${ARGN}) set(with_session_bus ${CMAKE_CURRENT_BINARY_DIR}/runDbusTest.sh) add_test(${_fancyName} ${SH} ${with_session_bus} ${CMAKE_CURRENT_BINARY_DIR}/test-${_name}) list(APPEND tpqt4_test_cases test-${_name}) |