From: Hermès Bélusca-Maïto Date: Wed, 15 Apr 2015 21:29:53 +0000 (+0000) Subject: [CD_EXTRAS]: Add the possibility to have different "extras" files for the different... X-Git-Tag: backups/colins-printing-for-freedom@73041~405 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=5e36ff31c0792df2e060a6d7ecbb173140d25f46 [CD_EXTRAS]: Add the possibility to have different "extras" files for the different CD targets (in addition to the hybridcd) we have (useful for testers, for ReactOS shows, etc...). By Mark Jansen. CORE-9527 #resolve #comment Added, thanks! svn path=/trunk/; revision=67211 --- diff --git a/reactos/modules/CMakeLists.txt b/reactos/modules/CMakeLists.txt index a48917455aa..e819e19f488 100644 --- a/reactos/modules/CMakeLists.txt +++ b/reactos/modules/CMakeLists.txt @@ -11,8 +11,20 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/wallpapers/) add_subdirectory(wallpapers) endif() -## Extra files for Hybrid CD. You need to put them under hybridcd_extras +## Extra files for Boot/Live/Hybrid CD. You need to put them under [boot|live|hybrid]cd_extras ## in the same layout as you want them to be in the CD. +if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/bootcd_extras/) + file(GLOB_RECURSE EXTRA_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/bootcd_extras/ ${CMAKE_CURRENT_SOURCE_DIR}/bootcd_extras/*) + foreach(item ${EXTRA_FILES}) + add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/bootcd_extras/${item} DESTINATION extras NAME_ON_CD ${item} FOR bootcd regtest) + endforeach(item) +endif() +if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/livecd_extras/) + file(GLOB_RECURSE EXTRA_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/livecd_extras/ ${CMAKE_CURRENT_SOURCE_DIR}/livecd_extras/*) + foreach(item ${EXTRA_FILES}) + add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/livecd_extras/${item} DESTINATION extras NAME_ON_CD ${item} FOR livecd) + endforeach(item) +endif() if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/) file(GLOB_RECURSE EXTRA_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/ ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/*) foreach(item ${EXTRA_FILES})