discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] GnuradioConfig.cmake on master


From: Sean Nowlan
Subject: [Discuss-gnuradio] GnuradioConfig.cmake on master
Date: Thu, 9 May 2013 08:37:15 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

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-<module>/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!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]