~ci-train-bot/mir/mir-ubuntu-artful-2983

« back to all changes in this revision

Viewing changes to src/input/evemu/CMakeLists.txt

  • Committer: Kevin DuBois
  • Date: 2012-11-13 01:36:29 UTC
  • mfrom: (245 trunk)
  • mto: This revision was merged to the branch mainline in revision 246.
  • Revision ID: kevin.dubois@canonical.com-20121113013629-q4496w4mp5e33auk
merge in base branch. move the demo clients to a new directory, examples/

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright © 2012 Canonical Ltd.
2
 
#
3
 
# This program is free software: you can redistribute it and/or modify
4
 
# it under the terms of the GNU General Public License version 3 as
5
 
# published by the Free Software Foundation.
6
 
#
7
 
# This program is distributed in the hope that it will be useful,
8
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 
# GNU General Public License for more details.
11
 
#
12
 
# You should have received a copy of the GNU General Public License
13
 
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14
 
#
15
 
# Authored by: Thomas Voss <thomas.voss@canonical.com>
16
 
 
17
 
option(
18
 
  MIR_INPUT_ENABLE_EVEMU
19
 
  "Controls if devices for handling evdev events are compiled"
20
 
  OFF
21
 
)
22
 
 
23
 
if(MIR_INPUT_ENABLE_EVEMU)
24
 
 
25
 
  # Check for evemu (which may be named evemu or utouch-evemu)
26
 
  find_package(PkgConfig REQUIRED)
27
 
  pkg_search_module(EVEMU REQUIRED evemu utouch-evemu)
28
 
 
29
 
  list(
30
 
    APPEND INPUT_SOURCES
31
 
    ${CMAKE_CURRENT_SOURCE_DIR}/device.cpp)
32
 
 
33
 
  set(
34
 
    INPUT_SOURCES 
35
 
    ${INPUT_SOURCES} 
36
 
    PARENT_SCOPE)
37
 
 
38
 
endif(MIR_INPUT_ENABLE_EVEMU)
39
 
  
 
 
b'\\ No newline at end of file'