aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/rfnoc-example/CMakeLists.txt
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-09-14 16:11:17 +0200
committerAaron Rossetto <aaron.rossetto@ni.com>2021-09-17 12:53:46 -0700
commit9985dd7ac5837a8ab46032c9a3aee5fc463017ca (patch)
tree3b0ad171b7751c090d0b65fb072ff5ca1030ab48 /host/examples/rfnoc-example/CMakeLists.txt
parent0ee2a409c4796f87d2d311356b775d437a5cc102 (diff)
downloaduhd-9985dd7ac5837a8ab46032c9a3aee5fc463017ca.tar.gz
uhd-9985dd7ac5837a8ab46032c9a3aee5fc463017ca.tar.bz2
uhd-9985dd7ac5837a8ab46032c9a3aee5fc463017ca.zip
cmake: Fix rfnoc-example (CMake paths)
This reverts part of 09d94529e, which should not have touched these particular CMake files.
Diffstat (limited to 'host/examples/rfnoc-example/CMakeLists.txt')
-rw-r--r--host/examples/rfnoc-example/CMakeLists.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/host/examples/rfnoc-example/CMakeLists.txt b/host/examples/rfnoc-example/CMakeLists.txt
index 4bd9db678..738b5ae8e 100644
--- a/host/examples/rfnoc-example/CMakeLists.txt
+++ b/host/examples/rfnoc-example/CMakeLists.txt
@@ -8,7 +8,7 @@ cmake_minimum_required(VERSION 3.8)
project(rfnoc-example CXX C)
#make sure our local CMake Modules path comes first
-#list(INSERT CMAKE_MODULE_PATH 0 ${UHD_SOURCE_DIR}/cmake/Modules)
+#list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_SOURCE_DIR}/cmake/Modules)
#install to PyBOMBS target prefix if defined
#if(DEFINED ENV{PYBOMBS_PREFIX})
@@ -37,8 +37,8 @@ find_package(UnixCommands)
if(BASH)
message(STATUS "Found bash interpreter: ${BASH}")
configure_file(
- ${UHD_SOURCE_DIR}/cmake/Modules/run_testbench.sh.in
- ${UHD_BINARY_DIR}/cmake/Modules/run_testbench.sh
+ ${CMAKE_SOURCE_DIR}/cmake/Modules/run_testbench.sh.in
+ ${CMAKE_BINARY_DIR}/cmake/Modules/run_testbench.sh
@ONLY
)
else()
@@ -98,7 +98,7 @@ macro(RFNOC_ADD_TB_DIR)
set(_target_name "${_tb_dir}_tb")
message(STATUS "Adding testbench target: ${_target_name}")
add_custom_target(${_target_name}
- COMMAND ${UHD_BINARY_DIR}/cmake/Modules/run_testbench.sh ${UHD_FPGA_DIR} ${UHD_FPGA_DEFAULT_DEVICE} ${CMAKE_CURRENT_SOURCE_DIR} xsim
+ COMMAND ${CMAKE_BINARY_DIR}/cmake/Modules/run_testbench.sh ${UHD_FPGA_DIR} ${UHD_FPGA_DEFAULT_DEVICE} ${CMAKE_CURRENT_SOURCE_DIR} xsim
)
add_dependencies(testbenches ${_target_name})
endif()
@@ -138,7 +138,7 @@ macro(RFNOC_REGISTER_IMAGE_CORE)
if (_rfnoc_image_builder_exe)
message(STATUS "Adding image core target: ${_target_name}")
add_custom_target(${_target_name}
- COMMAND ${_rfnoc_image_builder_exe} -F ${UHD_FPGA_DIR} -y ${CMAKE_CURRENT_SOURCE_DIR}/${_rfnoc_image_core_SRC} -I ${UHD_SOURCE_DIR}
+ COMMAND ${_rfnoc_image_builder_exe} -F ${UHD_FPGA_DIR} -y ${CMAKE_CURRENT_SOURCE_DIR}/${_rfnoc_image_core_SRC} -I ${CMAKE_SOURCE_DIR}
)
endif()
endmacro()
@@ -147,7 +147,7 @@ endmacro()
# Create uninstall target
########################################################################
configure_file(
- ${UHD_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in
+ ${CMAKE_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake
@ONLY)
add_custom_target(uninstall