~rmescandon/unity-scope-abc/trunk

« back to all changes in this revision

Viewing changes to tests/CMakeLists.txt

  • Committer: Roberto Mier Escandón
  • Date: 2015-08-18 15:24:19 UTC
  • Revision ID: rmescandon@gmail.com-20150818152419-0c52nno2p4dxz7qw
initial release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
# Google Mock unfortunately has to be compiled from source
 
3
include(FindGMock)
 
4
 
 
5
# We need process-cpp to launch the python test server
 
6
pkg_check_modules(
 
7
  TEST
 
8
  process-cpp
 
9
  REQUIRED
 
10
)
 
11
 
 
12
# Include our test library headers
 
13
include_directories(
 
14
  ${GTEST_INCLUDE_DIRS}
 
15
  ${GMOCK_INCLUDE_DIRS}
 
16
  ${TEST_INCLUDE_DIRS}
 
17
)
 
18
 
 
19
# Where to find the scope ini file and .so
 
20
add_definitions(
 
21
#  -DTEST_SCOPE_DIRECTORY="${CMAKE_BINARY_DIR}/src"
 
22
)
 
23
 
 
24
file(GLOB_RECURSE
 
25
  TEST_FIXTURES
 
26
  "server/*"
 
27
  "unit/*"
 
28
)
 
29
 
 
30
# Make this file show up in QtCreator
 
31
add_custom_target(hidden_test_fixtures ALL
 
32
  SOURCES ${TEST_FIXTURES}
 
33
)
 
34
 
 
35
# Where to find the test server binary
 
36
add_definitions(
 
37
  -DFAKE_SERVER="${CMAKE_CURRENT_SOURCE_DIR}/server/server.py"
 
38
)
 
39
 
 
40
# Add the unit tests
 
41
add_subdirectory(unit)
 
42