Rob,
yes, you can query UHD_RFNOC_FOUND. Check out this example:
https://github.com/EttusResearch/gr-ettus/blob/dcb780b77a114a265bb355fdba4f24033c3412c4/CMakeLists.txt#L138-L141
-- M
On Wed, Feb 20, 2019 at 8:52 AM Rob Kossler via USRP-users <
usrp-users@lists.ettus.com> wrote:
> Hi,
> I have a
Hi,
I have an out-of-tree project with a CMakeLists.txt that contains the
following code:
if(ENABLE_RFNOC)
add_definitions(-DUHD_RFNOC_ENABLED)
add_executable(my_app my_app.cpp rfnoc_functions.cpp)
else(ENABLE_RFNOC)
add_executable(my_app my_app.cpp)
endif(ENABLE_RFNOC
This works fine if I