[CD_EXTRAS]: Add the possibility to have different "extras" files for the different...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 15 Apr 2015 21:29:53 +0000 (21:29 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 15 Apr 2015 21:29:53 +0000 (21:29 +0000)
CORE-9527 #resolve #comment Added, thanks!

svn path=/trunk/; revision=67211

reactos/modules/CMakeLists.txt

index a489174..e819e19 100644 (file)
@@ -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})