~ubuntu-branches/ubuntu/utopic/upstart-app-launch/utopic-proposed

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Ted Gould, Ubuntu daily release
  • Date: 2013-09-25 12:54:36 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20130925125436-lea3vd50ebtce4pt
Tags: 0.1+13.10.20130925.1-0ubuntu1
[ Ted Gould ]
* Tests for the functions in the core helpers library.

[ Ubuntu daily release ]
* Automatic snapshot from revision 65

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
project(upstart-app-launch C)
 
1
project(upstart-app-launch C CXX)
2
2
cmake_minimum_required(VERSION 2.8.9)
3
3
 
 
4
option (enable_tests "Build tests" ON)
 
5
option (enable_lcov "Generate Coverage Reports" ON)
 
6
 
4
7
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" "${CMAKE_MODULE_PATH}")
5
8
 
6
9
set(PACKAGE ${CMAKE_PROJECT_NAME})
185
188
configure_file("upstart-app-launch-desktop.click-hook.in" "${CMAKE_CURRENT_SOURCE_DIR}/debian/upstart-app-launch-desktop.click-hook" @ONLY)
186
189
 
187
190
add_subdirectory(libupstart-app-launch)
 
191
 
 
192
# testing & coverage
 
193
if (${enable_tests})
 
194
  set (GTEST_SOURCE_DIR /usr/src/gtest/src)
 
195
  set (GTEST_INCLUDE_DIR ${GTEST_SOURCE_DIR}/..)
 
196
  set (GTEST_LIBS -lpthread)
 
197
  enable_testing ()
 
198
  if (${enable_lcov})
 
199
#    include(GCov)
 
200
  endif ()
 
201
  add_subdirectory(tests)
 
202
endif ()
 
203