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: Martin Braun
Subject: Re: [Discuss-gnuradio] Cmake rule to compile GRC files with GRCC
Date: Sun, 07 Dec 2014 18:09:34 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

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



reply via email to

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