~townsend/ubuntu-app-launch/remove-xmir-helpers

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Ted Gould
  • Date: 2013-09-23 20:41:53 UTC
  • mto: This revision was merged to the branch mainline in revision 65.
  • Revision ID: ted@gould.cx-20130923204153-kc8jcc1ep4e1vw1c
Setting up a test directory

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