~phablet-team/telephony-service/trunk

« back to all changes in this revision

Viewing changes to handler/tests/mock/CMakeLists.txt

Add the infrastructure to write tests for the handler, and write tests for the most important bits of it.

Approved by Tiago Salem Herrmann, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include_directories(
 
2
    ${TP_QT5_INCLUDE_DIRS}
 
3
    ${Qt5Core_INCLUDE_DIRS}
 
4
    ${Qt5DBus_INCLUDE_DIRS}
 
5
    ${CMAKE_CURRENT_BINARY_DIR}
 
6
    ${CMAKE_CURRENT_SOURCE_DIR}
 
7
    )
 
8
 
 
9
find_library(TELEPATHY_QT5_SERVICE_LIBRARIES telepathy-qt5-service)
 
10
 
 
11
set(mock_SRCS main.cpp protocol.cpp connection.cpp textchannel.cpp callchannel.cpp mockconnectiondbus.cpp)
 
12
qt5_add_dbus_adaptor(mock_SRCS MockConnection.xml mockconnectiondbus.h MockConnectionDBus)
 
13
 
 
14
add_executable(telepathy-mock ${mock_SRCS})
 
15
qt5_use_modules(telepathy-mock Core DBus)
 
16
target_link_libraries(telepathy-mock ${TP_QT5_LIBRARIES} ${TELEPATHY_QT5_SERVICE_LIBRARIES} ${OFONO_QT_LIBRARIES} ${PULSEAUDIO_LIBRARIES})