CMakeLists.txt (e25b118a40ed6b5c2ea76bae29e388cfbc2f6e92) CMakeLists.txt (48fe012ac445727d6a0bf0074d6f218d5616862f)
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.

--- 6 unchanged lines hidden (view full) ---

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
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.

--- 6 unchanged lines hidden (view full) ---

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(PythonInterp)
24if(NOT PYTHONINTERP_FOUND)
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()
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()