capture: Prepare a 32 frame packet mmap buffer by default.
[dabba.git] / cmake / modules / FindSetcap.cmake
blob7b64128b31caf915cd645ad50d2e127df3e1d7d6
2 # Copyright (C) 2011    Emmanuel Roullit <emmanuel.roullit@gmail.com>
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or (at
7 # your option) any later version.
8
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 # for more details.
14 # You should have received a copy of the GNU General Public License along
15 # with this program; if not, write to the Free Software Foundation, Inc.,
16 # 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
19 # The module defines the following variables:
20 #  SETCAP_FOUND - true is setcap executable is found
21 #  SETCAP_EXECUTABLE - the path to the setcap executable
22 #  SETCAP_LIBRARIES - the setcap libraries
24 FIND_PROGRAM(SETCAP_EXECUTABLE setcap DOC "path to the setcap executable")
25 MARK_AS_ADVANCED(SETCAP_EXECUTABLE)
27 FIND_LIBRARY(SETCAP_LIBRARY NAMES cap DOC "path to libcap")
28 MARK_AS_ADVANCED(SETCAP_LIBRARY)
29 SET(SETCAP_LIBRARIES ${SETCAP_LIBRARY})
31 INCLUDE(FindPackageHandleStandardArgs)
32 FIND_PACKAGE_HANDLE_STANDARD_ARGS(setcap REQUIRED_VARS SETCAP_EXECUTABLE)