diff options
Diffstat (limited to 'mpm/lib')
-rw-r--r-- | mpm/lib/catalina/CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mpm/lib/catalina/CMakeLists.txt b/mpm/lib/catalina/CMakeLists.txt index b003387ee..6f402f530 100644 --- a/mpm/lib/catalina/CMakeLists.txt +++ b/mpm/lib/catalina/CMakeLists.txt @@ -18,10 +18,17 @@ set (CMAKE_CATALINA_SOURCE_DIR ${UHD_HOST_ROOT}/lib/usrp/common ) +######################################################################## +# Setup UHD_VERSION and UHD_COMPONENT for version.cpp +######################################################################## configure_file( ${UHD_HOST_ROOT}/include/uhd/version.hpp.in ${CMAKE_BINARY_DIR}/include/uhd/version.hpp ) +configure_file( + ${UHD_HOST_ROOT}/lib/version.cpp + ${CMAKE_BINARY_DIR}/lib/version.cpp +) # TODO: Do something better than listing all the files individually set(catalina_sources @@ -34,7 +41,7 @@ set(catalina_sources ${UHD_HOST_ROOT}/lib/types/serial.cpp ${UHD_HOST_ROOT}/lib/property_tree.cpp ${UHD_HOST_ROOT}/lib/utils/log.cpp - ${UHD_HOST_ROOT}/lib/version.cpp + ${CMAKE_BINARY_DIR}/lib/version.cpp ) USRP_PERIPHS_ADD_OBJECT(catalina ${catalina_sources}) |