~ci-train-bot/url-dispatcher/url-dispatcher-ubuntu-zesty-2664

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Bileto Bot
  • Author(s): Rodney Dawes
  • Date: 2017-03-14 14:33:45 UTC
  • mfrom: (103.3.2 fix-gtest)
  • Revision ID: ci-train-bot@canonical.com-20170314143345-jizknwkor4ec501f
Use gmock module from cmake-extras.

Approved by: Ted Gould

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
  option (werror "Treat warnings as errors." TRUE)
10
10
endif()
11
11
 
12
 
option (enable_tests "Build tests" ON)
 
12
enable_testing ()
13
13
option (enable_lcov "Generate Coverage Reports" ON)
14
14
 
15
15
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" "${CMAKE_MODULE_PATH}")
107
107
add_subdirectory(liburl-dispatcher)
108
108
add_subdirectory(tools)
109
109
add_subdirectory(gui)
 
110
add_subdirectory(tests)
110
111
 
111
112
# testing & coverage
112
 
if (${enable_tests})
113
 
  set (GTEST_SOURCE_DIR /usr/src/gtest/src)
114
 
  set (GTEST_INCLUDE_DIR ${GTEST_SOURCE_DIR}/..)
115
 
  set (GTEST_LIBS -pthread)
116
 
  enable_testing ()
117
 
  if (${enable_lcov})
 
113
if (${enable_lcov})
118
114
#    include(GCov)
119
 
  endif ()
120
 
  add_subdirectory(tests)
121
115
endif ()
122
116
 
123
117
add_subdirectory(po)