~phablet-team/media-hub/fix-1479036

« back to all changes in this revision

Viewing changes to tests/CMakeLists.txt

  • Committer: thomas-voss
  • Date: 2013-09-17 06:26:40 UTC
  • mfrom: (2.2.7 music-hub)
  • Revision ID: thomas.voss@canonical.com-20130917062640-x112qg28ta7enj39
* Cherry pick test setup from local spike.

[ David Henningsson ]
* Merged "missing stop method" and "add missing c'tor".
[ Ubuntu daily release ]
* Automatic snapshot from revision 7
[ Thomas Voß ]
[ Timo Jyrinki ]
* Automatic snapshot from revision 2 (bootstrap)
* Add COPYING, enable multi-arch and add missing copyright header.
* Final tweaks to the packaging.
[ Ubuntu daily release ]
* Automatic snapshot from revision 5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
find_package(Threads)
 
2
 
 
3
include_directories(${CMAKE_SOURCE_DIR}/include)
 
4
 
 
5
option(
 
6
    MUSIC_HUB_ENABLE_DBUS_TEST_RUNNER 
 
7
    "Rely on dbus test runner to start a private session for testing purposes" 
 
8
    ON
 
9
)
 
10
 
 
11
if (MUSIC_HUB_ENABLE_DBUS_TEST_RUNNER)
 
12
    find_program(DBUS_TEST_RUNNER_EXECUTABLE dbus-test-runner)
 
13
    message(STATUS "Executing test suite under dbus-test-runner")
 
14
endif (MUSIC_HUB_ENABLE_DBUS_TEST_RUNNER)
 
15
 
 
16
# Build with system gmock and embedded gtest
 
17
set (GMOCK_INCLUDE_DIR "/usr/include/gmock/include" CACHE PATH "gmock source include directory")
 
18
set (GMOCK_SOURCE_DIR "/usr/src/gmock" CACHE PATH "gmock source directory")
 
19
set (GTEST_INCLUDE_DIR "${GMOCK_SOURCE_DIR}/gtest/include" CACHE PATH "gtest source include directory")
 
20
 
 
21
add_subdirectory(${GMOCK_SOURCE_DIR} "${CMAKE_CURRENT_BINARY_DIR}/gmock")
 
22
include_directories (
 
23
  ${GMOCK_INCLUDE_DIR}
 
24
  ${GTEST_INCLUDE_DIR}
 
25
)
 
26
 
 
27
add_subdirectory(acceptance-tests)
 
 
b'\\ No newline at end of file'