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