uhd/host/examples/init_usrp
Martin Braun 38b89ae965 cmake: Make UHDPython.cmake available to OOTs
This installs UHDPython.cmake to lib/uhd/, so that OOT RFNoC modules can
use it (and don't have to use a version that ships with the OOT). This
makes maintanance of that file a lot easier.

Now that this file can (and should) be used outside of UHD, we
"namespace" the macros and functions by prefacing them with 'UHD_'
(e.g., there's now UHD_PYTHON_CHECK_MODULE).

This file requires creating UHDMinDepVersions.cmake, which also gets
installed.
2024-09-02 08:22:58 +02:00
..
.gitignore
CMakeLists.txt cmake: Make UHDPython.cmake available to OOTs 2024-09-02 08:22:58 +02:00
init_usrp.cpp
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.