discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Cmake rule to compile GRC files with GRCC


From: Piotr Krysik
Subject: Re: [Discuss-gnuradio] Cmake rule to compile GRC files with GRCC
Date: Mon, 08 Dec 2014 08:46:49 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

W dniu 07.12.2014 o 18:09, Martin Braun pisze:
> On 12/07/2014 08:57 AM, Piotr Krysik wrote:
>> I'm is  looking for someone who know how to do this with use of cmake.
>> There is a file taken from GNU Radio which is in
>> https://github.com/ptrkrysik/gr-gsm/blob/master/cmake/Modules/GrMiscUtils.cmake.
>> It had GRCC function which was suited for GNU Radio (although it was not
>> really used in GNU Radio). I've tried to adapt it to gr-gsm case but it
>> caused more problems than it solved. If you know how to write a CMAKE
>> rule compiling GRC files with grcc - please help.
> I've used this in the past (grc/CMakeLists.txt):
>
>
> message("Compiling GRC hier blocks...")
> foreach(grc_file ${grc_hier_blocks})
>     message("Compiling " ${grc_file})
>     execute_process(
>         COMMAND grcc ${grc_file}
>         WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
>     )
> endforeach(grc_file ${grc_hier_blocks})
>
>
>
> ...but it's not ideal as it runs during cmake, not make.
>
> M
>
>
Many thanks Martin for the answer. I will give a try your method.

--
Piotr



reply via email to

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