Re: [USRP-users] ENABLE_RFNOC=ON question

2019-02-22 Thread Martin Braun via USRP-users
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

[USRP-users] ENABLE_RFNOC=ON question

2019-02-20 Thread Rob Kossler via USRP-users
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