1# Copyright 2013 Dominic Spill 2# 3# This file is part of Libbtbb 4# 5# GNU Radio is free software; you can redistribute it and/or modify 6# it under the terms of the GNU General Public License as published by 7# the Free Software Foundation; either version 2, or (at your option) 8# any later version. 9# 10# GNU Radio is distributed in the hope that it will be useful, 11# but WITHOUT ANY WARRANTY; without even the implied warranty of 12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13# GNU General Public License for more details. 14# 15# You should have received a copy of the GNU General Public License 16# along with GNU Radio; see the file COPYING. If not, write to 17# the Free Software Foundation, Inc., 51 Franklin Street, 18# Boston, MA 02110-1301, USA. 19 20project(btbb-python) 21 22# Check for python installation 23find_package(Python3) 24if(NOT Python3_FOUND) 25 return() 26else() 27 add_subdirectory(pcaptools) 28endif() 29 30# Create uninstall target 31if(NOT libbtbb_all_SOURCE_DIR) 32 configure_file( 33 ${PROJECT_SOURCE_DIR}/../cmake/cmake_uninstall.cmake.in 34 ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake 35 @ONLY) 36 37 add_custom_target(uninstall 38 ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake 39 ) 40endif() 41