xref: /libbtbb/lib/CMakeLists.txt (revision e25b118a40ed6b5c2ea76bae29e388cfbc2f6e92)
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
22# Based heavily upon the hackrf cmake setup.
23
24project(libbtbb C)
25set(PACKAGE libbtbb)
26
27add_subdirectory(src)
28
29# Create uninstall target
30if(NOT libbtbb_all_SOURCE_DIR)
31configure_file(
32    ${PROJECT_SOURCE_DIR}/../cmake/cmake_uninstall.cmake.in
33    ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake
34@ONLY)
35
36add_custom_target(uninstall
37    ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake
38)
39endif()
40