xref: /reactos/modules/CMakeLists.txt (revision c2c66aff)
1
2if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/rostests/)
3    add_subdirectory(rostests)
4endif()
5
6if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/rosapps/)
7    add_subdirectory(rosapps)
8endif()
9
10if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/wallpapers/)
11    add_subdirectory(wallpapers)
12endif()
13
14if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/AHK_Tests/)
15    add_subdirectory(AHK_Tests)
16endif()
17
18## Extra files for Boot/Live/Hybrid CD. You need to put them under [boot|live|hybrid]cd_extras
19## in the same layout as you want them to be in the CD.
20if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/bootcd_extras/)
21    file(GLOB_RECURSE EXTRA_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/bootcd_extras/ ${CMAKE_CURRENT_SOURCE_DIR}/bootcd_extras/*)
22    foreach(item ${EXTRA_FILES})
23        add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/bootcd_extras/${item} DESTINATION extras NO_CAB NAME_ON_CD ${item} FOR bootcd regtest)
24    endforeach(item)
25endif()
26if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/livecd_extras/)
27    file(GLOB_RECURSE EXTRA_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/livecd_extras/ ${CMAKE_CURRENT_SOURCE_DIR}/livecd_extras/*)
28    foreach(item ${EXTRA_FILES})
29        add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/livecd_extras/${item} DESTINATION extras NO_CAB NAME_ON_CD ${item} FOR livecd)
30    endforeach(item)
31endif()
32if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/)
33    file(GLOB_RECURSE EXTRA_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/ ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/*)
34    foreach(item ${EXTRA_FILES})
35        add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/${item} DESTINATION extras NO_CAB NAME_ON_CD ${item} FOR hybridcd)
36    endforeach(item)
37endif()
38