summaryrefslogtreecommitdiff
path: root/fbdaemon/tests/CMakeLists.txt
blob: 67d32ebb9626e6110a757428f9acd918a1d391e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
add_definitions (-DSCENARIO_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/data")

include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}/..
    ${CMAKE_CURRENT_BINARY_DIR}
)

set(FBTEST_DEPENDENCIES ${COMMON_DEPENDENCIES} ${QT_QTTEST_LIBRARY} ${KDE_KIMAPTEST} kolabutils fb_static)

set (FBTEST_SRCS
    fbgeneratortest.cpp
    fbgeneratorfoldertest.cpp
    fbaggregatortest.cpp
    cyrusfakeserver.cpp
    daemonconnectiontest.cpp
)

QT4_AUTOMOC("${FBTEST_SRCS}")

add_executable(fbaggregatortest fbaggregatortest.cpp cyrusfakeserver.cpp)
target_link_libraries(fbaggregatortest ${FBTEST_DEPENDENCIES})
add_test(fbaggregatortest fbaggregatortest)

add_executable(fbgeneratortest fbgeneratortest.cpp cyrusfakeserver.cpp)
target_link_libraries(fbgeneratortest ${FBTEST_DEPENDENCIES})
add_test(fbgeneratortest fbgeneratortest)

add_executable(fbgeneratorfoldertest fbgeneratorfoldertest.cpp cyrusfakeserver.cpp)
target_link_libraries(fbgeneratorfoldertest ${FBTEST_DEPENDENCIES})
add_test(fbgeneratorfoldertest fbgeneratorfoldertest)

add_executable(daemonconnectiontest daemonconnectiontest.cpp cyrusfakeserver.cpp)
target_link_libraries(daemonconnectiontest ${FBTEST_DEPENDENCIES})
add_test(daemonconnectiontest daemonconnectiontest)