diff options
author | Josh Blum <josh@joshknows.com> | 2011-03-31 12:30:31 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-03-31 12:30:31 -0700 |
commit | 9f72695e33093498e5957900e97817b78dba76c3 (patch) | |
tree | f53db7e2b8c96ecc2fc9c6d26d90feeab0ecb1a2 /host/CMakeLists.txt | |
parent | 48f6e1f8aae24ee4ff3b15232cfc335b0210ed11 (diff) | |
download | uhd-9f72695e33093498e5957900e97817b78dba76c3.tar.gz uhd-9f72695e33093498e5957900e97817b78dba76c3.tar.bz2 uhd-9f72695e33093498e5957900e97817b78dba76c3.zip |
uhd: added UHD_IMAGES_DIR option to include images in the package
Diffstat (limited to 'host/CMakeLists.txt')
-rw-r--r-- | host/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index 244793b9e..97b084572 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -208,6 +208,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 ######################################################################## UHD_PRINT_COMPONENT_SUMMARY() |