Change the build system requirements on GNU Radio version and libnova

This commit is contained in:
Manolis Surligas 2016-10-26 20:36:07 +03:00 committed by Manolis Surligas
parent f320d841ab
commit 94161d7b24
2 changed files with 24 additions and 20 deletions

View File

@ -116,12 +116,22 @@ find_package (Threads REQUIRED)
find_package(CppUnit) find_package(CppUnit)
find_package(Doxygen) find_package(Doxygen)
########################################################################
# Include or not into the module blocks for debugging
########################################################################
if(NOT INCLUDE_DEBUG_BLOCKS)
set(INCLUDE_DEBUG_BLOCKS ON CACHE BOOL
"Disable blocks that are used for debugging purposes")
endif()
######################################################################## ########################################################################
# Find gr-satnogs external build dependencies # Find gr-satnogs external build dependencies
######################################################################## ########################################################################
find_package(Nova) if(${INCLUDE_DEBUG_BLOCKS})
if(NOT NOVA_FOUND) find_package(Nova)
message(FATAL_ERROR "libnova required to compile satnogs") if(NOT NOVA_FOUND)
message(FATAL_ERROR "libnova required to compile satnogs")
endif()
endif() endif()
# Search for GNU Radio and its components and versions. Add any # Search for GNU Radio and its components and versions. Add any
@ -129,7 +139,7 @@ endif()
# caps such as FILTER or FFT) and change the version to the minimum # caps such as FILTER or FFT) and change the version to the minimum
# API compatible version required. # API compatible version required.
set(GR_REQUIRED_COMPONENTS RUNTIME) set(GR_REQUIRED_COMPONENTS RUNTIME)
find_package(Gnuradio "3.7.2" REQUIRED) find_package(Gnuradio "3.7.7" REQUIRED)
if(NOT CPPUNIT_FOUND) if(NOT CPPUNIT_FOUND)
message(FATAL_ERROR "CppUnit required to compile satnogs") message(FATAL_ERROR "CppUnit required to compile satnogs")
@ -144,14 +154,6 @@ else(DOXYGEN_FOUND)
option(ENABLE_DOXYGEN "Build docs using Doxygen" OFF) option(ENABLE_DOXYGEN "Build docs using Doxygen" OFF)
endif(DOXYGEN_FOUND) endif(DOXYGEN_FOUND)
########################################################################
# Include or not into the module blocks for debugging
########################################################################
if(NOT INCLUDE_DEBUG_BLOCKS)
set(INCLUDE_DEBUG_BLOCKS ON CACHE BOOL
"Disable blocks that are used for debugging purposes")
endif()
######################################################################## ########################################################################
# Setup the include and linker paths # Setup the include and linker paths
######################################################################## ########################################################################

View File

@ -5,12 +5,14 @@ for decoding signals from various scientific and academic sattelites.
## Install ## Install
### Requirements ### Requirements
1. GNU Radio ( > 3.7.2 ) * GNU Radio ( > 3.7.2 )
2. CMake ( > 3.1) * CMake ( > 3.1)
3. G++ (with C++11 support) * G++ (with C++11 support)
4. VOLK * VOLK
5. git * git
6. gr-osmocom (optional, for using the flowgraphs) *** Optional ***
* gr-osmocom (for using the flowgraphs with real SDR hardware)
* libnova (for building the debug blocks)
### Installation ### Installation
@ -32,9 +34,9 @@ E.g:
`cmake -DCMAKE_INSTALL_PREFIX=/usr ..` `cmake -DCMAKE_INSTALL_PREFIX=/usr ..`
Also, by default the build system disables a set of blocks used for debugging Also, by default the build system enables a set of blocks used for debugging
during the development. The enable/disable switch is controled through the during the development. The enable/disable switch is controled through the
`INCLUDE_DEBUG_BLOCKS` boolean variable. If for example, you want to enable the `INCLUDE_DEBUG_BLOCKS` boolean variable. If for example, you want to disable the
debugging blocks, the **CMake** command would be: debugging blocks, the **CMake** command would be:
`cmake -DINCLUDE_DEBUG_BLOCKS=OFF ..` `cmake -DINCLUDE_DEBUG_BLOCKS=OFF ..`