[USRP-users] ENABLE_RFNOC=ON question
martin.braun at ettus.com
Fri Feb 22 18:15:09 EST 2019
yes, you can query UHD_RFNOC_FOUND. Check out this example:
On Wed, Feb 20, 2019 at 8:52 AM Rob Kossler via USRP-users <
usrp-users at lists.ettus.com> wrote:
> I have an out-of-tree project with a CMakeLists.txt that contains the
> following code:
> add_executable(my_app my_app.cpp rfnoc_functions.cpp)
> add_executable(my_app my_app.cpp)
> This works fine if I run the cmake command such as ...
> cmake ../ -DENABLE_RFNOC=ON
> However, I am wondering if there is a better way to do it such that the
> user doesn't have to specify this option given that the user has already
> specified it when building UHD. At the time I run the out-of-tree cmake,
> the environment variables have already been setup to find the appropriate
> UHD library which has already been compiled either with or without that
> Is it possible to find this information automatically rather than require
> the user to specify it again in the out-of-tree cmake?
> USRP-users mailing list
> USRP-users at lists.ettus.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the USRP-users