xref: /libbtbb/lib/CMakeLists.txt (revision 39524c59a59cf0bdb8a3bbfeb9fe5ea33f48e5d0)
1e25b118aSDominic Spill#
2e25b118aSDominic Spill# Copyright 2013 Dominic Spill
3e25b118aSDominic Spill#
4e25b118aSDominic Spill# This file is part of Libbtbb.
5e25b118aSDominic Spill#
6e25b118aSDominic Spill# This program is free software; you can redistribute it and/or modify
7e25b118aSDominic Spill# it under the terms of the GNU General Public License as published by
8e25b118aSDominic Spill# the Free Software Foundation; either version 2, or (at your option)
9e25b118aSDominic Spill# any later version.
10e25b118aSDominic Spill#
11e25b118aSDominic Spill# This program is distributed in the hope that it will be useful,
12e25b118aSDominic Spill# but WITHOUT ANY WARRANTY; without even the implied warranty of
13e25b118aSDominic Spill# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14e25b118aSDominic Spill# GNU General Public License for more details.
15e25b118aSDominic Spill#
16e25b118aSDominic Spill# You should have received a copy of the GNU General Public License
17e25b118aSDominic Spill# along with this program; see the file COPYING.  If not, write to
18e25b118aSDominic Spill# the Free Software Foundation, Inc., 51 Franklin Street,
19e25b118aSDominic Spill# Boston, MA 02110-1301, USA.
20e25b118aSDominic Spill#
21e25b118aSDominic Spill
22*39524c59STheodore A. Rothinclude(GNUInstallDirs)
23*39524c59STheodore A. Roth
24e25b118aSDominic Spill# Based heavily upon the hackrf cmake setup.
25e25b118aSDominic Spill
26e25b118aSDominic Spillproject(libbtbb C)
27e25b118aSDominic Spillset(PACKAGE libbtbb)
28e25b118aSDominic Spill
29e25b118aSDominic Spilladd_subdirectory(src)
30e25b118aSDominic Spill
31e6fdb625SDominic SpillCONFIGURE_FILE(
32e6fdb625SDominic Spill    ${CMAKE_CURRENT_SOURCE_DIR}/libbtbb.pc.in
33e6fdb625SDominic Spill    ${CMAKE_CURRENT_BINARY_DIR}/libbtbb.pc
34e25b118aSDominic Spill@ONLY)
35e25b118aSDominic Spill
36e6fdb625SDominic SpillINSTALL(
37e6fdb625SDominic Spill    FILES ${CMAKE_CURRENT_BINARY_DIR}/libbtbb.pc
3845aeb03eSDominic Spill    DESTINATION lib${LIB_SUFFIX}/pkgconfig
39e25b118aSDominic Spill)
40