From 9f72695e33093498e5957900e97817b78dba76c3 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 31 Mar 2011 12:30:31 -0700 Subject: uhd: added UHD_IMAGES_DIR option to include images in the package --- host/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'host') diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index 244793b9e..97b084572 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -207,6 +207,15 @@ ENDIF(ENABLE_UTILS) ADD_SUBDIRECTORY(usrp_e_utils) +######################################################################## +# Handle pre-built images +######################################################################## +IF(DEFINED UHD_IMAGES_DIR AND EXISTS "${UHD_IMAGES_DIR}") + FILE(GLOB _image_files "${UHD_IMAGES_DIR}/*.*") + MESSAGE(STATUS "Using images: ${_image_files}") + INSTALL(FILES ${_image_files} DESTINATION ${PKG_DATA_DIR}/images) +ENDIF(DEFINED UHD_IMAGES_DIR AND EXISTS "${UHD_IMAGES_DIR}") + ######################################################################## # Print Summary ######################################################################## -- cgit v1.2.3