~unity-team/libqtdbusmock/trunk

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Bileto Bot
  • Author(s): Pete Woods
  • Date: 2017-01-06 10:44:18 UTC
  • mfrom: (45.1.1 stable)
  • Revision ID: ci-train-bot@canonical.com-20170106104418-gvma1zy1zykerf62
Compatibility with unversioned cmake-extras modules (LP: #1563573)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
include_directories(${SOURCE_BINARY_DIR})
36
36
 
37
37
include(GNUInstallDirs)
38
 
include(Coverage)
39
38
 
40
39
# Workaround for libexecdir on debian
41
40
if (EXISTS "/etc/debian_version") 
68
67
        check
69
68
        ${CMAKE_CTEST_COMMAND} --force-new-ctest-process --output-on-failure
70
69
)
 
70
 
 
71
find_package(CoverageReport)
 
72
enable_coverage_report(
 
73
  TARGETS
 
74
    qtdbusmock
 
75
    unit-tests
 
76
  FILTER
 
77
    ${CMAKE_SOURCE_DIR}/tests/*
 
78
    ${CMAKE_BINARY_DIR}/*
 
79
  TESTS
 
80
    unit-tests
 
81
)
 
82