X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=modules%2FCMakeLists.txt;h=e09868d03378f043311f91ac782e943dff5a6a65;hp=22e0cfc68865e916e3faacd07fbe8c2a133f07ca;hb=5f4a4b35e63ccd6a39d054c29a44da3e6d8bea62;hpb=fb7355f8347ca1498f34682586ef2db2212e92c9 diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index 22e0cfc6886..e09868d0337 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -1,12 +1,37 @@ -if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/rostests/) -add_subdirectory(rostests) +if(ENABLE_ROSTESTS) + add_subdirectory(rostests) endif() -if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/rosapps/) -add_subdirectory(rosapps) +if(ENABLE_ROSAPPS) + add_subdirectory(rosapps) endif() -if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/wallpaper/) -add_subdirectory(wallpaper) +if(ENABLE_WALLPAPERS) + add_subdirectory(wallpapers) +endif() + +if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/AHK_Tests/) + add_subdirectory(AHK_Tests) +endif() + +## 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 NO_CAB 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 NO_CAB 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}) + add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/${item} DESTINATION extras NO_CAB NAME_ON_CD ${item} FOR hybridcd) + endforeach(item) endif()