blob: 9bac50328e254ae1e3a456c1f1d6ccaf0ae1b403 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${TELEPATHY_GLIB_INCLUDE_DIR}
${GLIB2_INCLUDE_DIR}
${GOBJECT_INCLUDE_DIR}
${DBUS_INCLUDE_DIR})
add_definitions(-DQT_NO_KEYWORDS)
if(ENABLE_TP_GLIB_TESTS)
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/_gen")
tpqt4_generate_moc_i(test-conn-helper.h ${CMAKE_CURRENT_BINARY_DIR}/_gen/test-conn-helper.moc.hpp)
add_library(tp-qt4-tests-glib-helpers test-conn-helper.cpp ${CMAKE_CURRENT_BINARY_DIR}/_gen/test-conn-helper.moc.hpp)
target_link_libraries(tp-qt4-tests-glib-helpers
${TELEPATHY_GLIB_LIBRARIES}
${GOBJECT_LIBRARIES}
${GLIB2_LIBRARIES}
${DBUS_GLIB_LIBRARIES}
${QT_QTCORE_LIBRARY}
${QT_QTDBUS_LIBRARY}
telepathy-qt4)
endif(ENABLE_TP_GLIB_TESTS)
|