GnuradioConfig.cmake was recently added to master. It broke finding
gnuradio-digital include directories. The reason for the failure was the
following line:
112 GR_MODULE(DIGITAL gnuradio-digital digital/lfsr.h
gnuradio-digital)
The LFSR and most other gr-digital components haven’t been ported to 3.7
API on master branch, so digital/lfsr.h was not found. This change is a
band-aid:
112 GR_MODULE(DIGITAL gnuradio-digital
digital/ofdm_frame_equalizer_vcvc.h gnuradio-digital)
There may be other packages that aren’t found for similar reasons
(missing new-style/3.7 header format). I haven’t tried them all.
For everybody’s information, I got this to work in my out-of-tree
project by modifying my CMakeLists.txt file in the top-level project
directory:
Find gnuradio build dependencies
…
take a look at GnuradioConfig.cmake for the component names
set(GR_REQUIRED_COMPONENTS CORE ANALOG DIGITAL BLOCKS FFT FILTER)
this is installed on a system path; there’s no need to copy
GnuradioConfig.cmake
to your gr-/cmake/Modules directory
find_package(Gnuradio)
…
Setup the include and linker paths
include_directories(
…
#{GNURADIO_ALL_INCLUDE_DIRS}
…
)
link_directories(
…
#{GNURADIO_ALL_LIBRARIES}
…
)
I hope this new config method finds its way into gr-modtool!