mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[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
This commit is contained in:
parent
60e0daa326
commit
5e36ff31c0
1 changed files with 13 additions and 1 deletions
|
@ -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})
|
||||
|
|
Loading…
Reference in a new issue