uhd/host/examples/init_usrp
Martin Braun 9b0702c546 cmake: Bump dependency versions for UHD 4.0.0.0
- Boost >= 1.58
- CMake >= 3.5.1
- gcc >= 5.4.0
- Clang >= 3.8, AppleClang >= 600
- Python >= 3.5 (Py2k no longer supported)
- Numpy >= 1.11
- C++14 for lib, include may now use C++11 constructs.
  - Because there is no more code requiring C++03 syntax, we remove the
    include-specific clang-format file
2019-11-26 11:49:08 -08:00
..
.gitignore examples: Updated init_usrp example on note about CMake flags 2015-06-09 15:08:21 -07:00
CMakeLists.txt cmake: Bump dependency versions for UHD 4.0.0.0 2019-11-26 11:49:08 -08:00
init_usrp.cpp examples: remove thread priority elevation 2019-10-22 16:18:46 -07:00
README uhd: Added an example for CMake usage 2014-09-25 16:01:05 -07:00

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.