mirror of
https://github.com/saymrwulf/uhd.git
synced 2026-05-16 21:10:10 +00:00
Also updates our coding style file. Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code (with GNU compliant sed): cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done > convert.sed \ && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' \ '*CMakeLists.txt' | xargs -0 gsed -i -f convert.sed && rm convert.sed (Make sure the backslashes don't get mangled!) |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| CMakeLists.txt | ||
| 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.