Thursday, August 1, 2024

Re: cmakelists.txt fot C++ IDE

"Ali G. Dezfuli" <ali69550@gmail.com> writes:

> Hi all,
> I want to work with simple gnuradio objects in a C++ IDE (e.g. Qtcreator)
> using CMake build system.
> I am running ubuntu 22.04 and gnuradio 3.10.11.0.
> How can I write its cmakelists.txt?

The components are now available as CMake gnuradio::gnuradio-COMPONENT targets.

> # Link the executable with GNU Radio libraries
> target_link_libraries(myproject ${GNURADIO_LIBRARIES})

instead:

target_link_libraries(myproject gnuradio::gnuradio-pmt)

should do the trick.

73 de aa4hs,
-Maitland

No comments:

Post a Comment