cmakelists.txt fot C++ IDE

2024-08-01 Thread Ali G. Dezfuli
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? For example, to just test these PMT lines: #include // [...] pmt::pmt_t P = pmt::from_long(23); std::

Re: cmakelists.txt fot C++ IDE

2024-08-01 Thread A. Maitland Bottoms
"Ali G. Dezfuli" 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-COMPON

Re: cmakelists.txt fot C++ IDE

2024-08-01 Thread Marcus Müller
Hi Ali, since CMake is the default build system we use both for our OOT templates (as used by gr_modtool) and by the C++ code generated throug GRC, I'd say: just use the existing work as template. What you're doing here is mixing modern CMake, i.e. a config/target-based method of defining th

hier block location in 3.10.11

2024-08-01 Thread aardric
This isn't a serious issue but I'm curious. According to https://wiki.gnuradio.org/index.php/Hier_Blocks_and_Parameters, "For GNU Radio v3.10, the files will be created in the directory where the /.grc/ file is saved. Please create the /.grc_gnuradio/ directory and copy the /.py/ and /.yml/ fil

Re: cmakelists.txt fot C++ IDE

2024-08-01 Thread Ali G. Dezfuli
Done! Big Thanks! I just connected a "Signal Source" to a "Null Sink" in GRC, changed the Option's "Output Language" to C++, pushed "Generate" (F5), took a look at the generated CMakeLists.txt, and found the answer. Thanks! On Thu, Aug 1, 2024 at 10:15 PM Marcus Müller wrote: > Hi Ali, > > sinc