1 2option(ENABLE_ROSAPPS "Enable building the ReactOS extra applications" OFF) 3option(ENABLE_ROSTESTS "Enable building the ReactOS test suite" OFF) 4option(ENABLE_WALLPAPERS "Integrate wallpapers into the built ISOs" OFF) 5 6if(ENABLE_ROSAPPS) 7 add_subdirectory(rosapps) 8endif() 9 10if(ENABLE_ROSTESTS) 11 add_subdirectory(rostests) 12endif() 13 14if(ENABLE_WALLPAPERS) 15 add_subdirectory(wallpapers) 16endif() 17 18if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/AHK_Tests/) 19 add_subdirectory(AHK_Tests) 20endif() 21 22## Extra files for Boot/Live/Hybrid CD. You need to put them under [boot|live|hybrid]cd_extras 23## in the same layout as you want them to be in the CD. 24## If you change the content of any of the following folders later on, 25## run "cmake ." before compiling. 26if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/bootcd_extras/) 27 file(GLOB_RECURSE EXTRA_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/bootcd_extras/ ${CMAKE_CURRENT_SOURCE_DIR}/bootcd_extras/*) 28 foreach(item ${EXTRA_FILES}) 29 add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/bootcd_extras/${item} DESTINATION extras NO_CAB NAME_ON_CD ${item} FOR bootcd regtest) 30 endforeach(item) 31endif() 32if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/livecd_extras/) 33 file(GLOB_RECURSE EXTRA_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/livecd_extras/ ${CMAKE_CURRENT_SOURCE_DIR}/livecd_extras/*) 34 foreach(item ${EXTRA_FILES}) 35 add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/livecd_extras/${item} DESTINATION extras NO_CAB NAME_ON_CD ${item} FOR livecd) 36 endforeach(item) 37endif() 38if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/) 39 file(GLOB_RECURSE EXTRA_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/ ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/*) 40 foreach(item ${EXTRA_FILES}) 41 add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/${item} DESTINATION extras NO_CAB NAME_ON_CD ${item} FOR hybridcd) 42 endforeach(item) 43endif() 44 45## Extra files which you need existing on the hard drive after the installation. 46if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/) 47 file(GLOB_RECURSE EXTRA_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/ ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/*) 48 foreach(item ${EXTRA_FILES}) 49 add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/${item} DESTINATION reactos/3rdParty NAME_ON_CD ${item} FOR bootcd) 50 endforeach(item) 51endif() 52 53# Add font file DroidSansFallback.ttf for LiveCD 54# See also boot/bootdata/packages/reactos.dff.in 55if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/optional/DroidSansFallback.ttf) 56 add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/optional/DroidSansFallback.ttf" DESTINATION reactos/Fonts FOR livecd) 57endif() 58