~renatofilho/sync-monitor/remove-addressbook

« back to all changes in this revision

Viewing changes to tests/unittest/CMakeLists.txt

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2014-04-07 19:51:32 UTC
  • Revision ID: renato.filho@canonical.com-20140407195132-k26bg0750ljuzpl0
Created unit test for SyncQueue.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
macro(declare_test TESTNAME)
 
2
    add_executable(${TESTNAME}
 
3
                   ${ARGN})
 
4
    qt5_use_modules(${TESTNAME} Core Test)
 
5
 
 
6
    target_link_libraries(${TESTNAME}
 
7
                          gmock
 
8
    )
 
9
 
 
10
    add_test(${TESTNAME} ${TESTNAME})
 
11
endmacro()
 
12
 
 
13
include_directories(
 
14
    ${CMAKE_SOURCE_DIR}
 
15
    ${gmock_SOURCE_DIR}/gtest/include/
 
16
)
 
17
 
 
18
declare_test(sync-queue-test
 
19
             sync-queue-test.cpp
 
20
             sync-account-mock.h
 
21
             ${CMAKE_SOURCE_DIR}/src/sync-queue.h
 
22
)