uhd/host/examples/init_usrp
2021-06-28 13:44:25 -05:00
..
.gitignore
CMakeLists.txt examples: Update example CMakeLists.txt for minimum version bumps 2021-06-28 13:44:25 -05:00
init_usrp.cpp examples: remove thread priority elevation 2019-10-22 16:18:46 -07:00
README

Building UHD Applications using CMake
=====================================

This directory contains a tiny example of a UHD-based application.
Unlike the other examples, it is completely independent of the UHD
source tree and can be compiled from any path as long as UHD is
currently installed on the current machine.

To try it out, run these commands:
$ mkdir build/ # Creates a new build directory
$ cd build/
$ cmake ..
$ make

This will find the UHD libraries, and link and compile the example
program. Include header directories and library names are automatically
gathered.

See the CMakeLists.txt file to figure out how to set up a build system.