uhd/host/tests/common
Marco Bergamin f622a0a227 cmake: Replace CMAKE_{SOURCE,BINARY}_DIR with UHD_*_DIR
See the CMake 3.8 documentation on these two variables:
https://cmake.org/cmake/help/v3.8/variable/PROJECT-NAME_SOURCE_DIR.html
https://cmake.org/cmake/help/v3.8/variable/CMAKE_SOURCE_DIR.html

Under normal circumstances, these two are identical. For sub-projects
(i.e., when building UHD as part of something else that is also a CMake
project), only the former is useful. There is no discernible downside of
using UHD_SOURCE_DIR over CMAKE_SOURCE_DIR.

This was changed using sed:

$ sed -i "s/CMAKE_SOURCE_DIR/UHD_SOURCE_DIR/g" \
`ag -l CMAKE_SOURCE_DIR **/CMakeLists.txt`
$ sed -i "s/CMAKE_BINARY_DIR/UHD_BINARY_DIR/g" \
`ag -l CMAKE_BINARY_DIR **/CMakeLists.txt`

At the same time, we also replace the CMake variable UHD_HOST_ROOT (used
in MPM) with UHD_SOURCE_DIR. There's no reason to have two variables
with the same meaning and different names, but more importantly, this
means that UHD_SOURCE_DIR is defined even in those cases where MPM calls
into CMake files from UHD without any additional patches.

Co-authored-by: Martin Braun <martin.braun@ettus.com>
2021-09-17 11:51:16 -07:00
..
CMakeLists.txt cmake: Replace CMAKE_{SOURCE,BINARY}_DIR with UHD_*_DIR 2021-09-17 11:51:16 -07:00
mock_ctrl_iface_impl.cpp tests: Fix mock_ctrl_iface for 32-bit MSVC 2019-05-23 08:46:59 -07:00
mock_ctrl_iface_impl.hpp rfnoc: Read cmd FIFO size from blocks & configure ctrl_iface 2019-09-04 20:28:04 -07:00
mock_zero_copy.cpp uhd: mpm: apply clang-format to all files 2019-01-16 11:40:23 -08:00
mock_zero_copy.hpp uhd: mpm: apply clang-format to all files 2019-01-16 11:40:23 -08:00