2011-05-16 13:12:07 +00:00
|
|
|
|
2021-07-05 12:49:26 +00:00
|
|
|
option(ENABLE_ROSAPPS "Enable building the ReactOS extra applications" OFF)
|
|
|
|
option(ENABLE_ROSTESTS "Enable building the ReactOS test suite" OFF)
|
|
|
|
option(ENABLE_WALLPAPERS "Integrate wallpapers into the built ISOs" OFF)
|
|
|
|
|
2017-10-04 18:37:32 +00:00
|
|
|
if(ENABLE_ROSAPPS)
|
2014-10-17 23:28:29 +00:00
|
|
|
add_subdirectory(rosapps)
|
2011-10-23 12:30:42 +00:00
|
|
|
endif()
|
2012-02-05 13:44:16 +00:00
|
|
|
|
2018-08-30 20:54:49 +00:00
|
|
|
if(ENABLE_ROSTESTS)
|
|
|
|
add_subdirectory(rostests)
|
|
|
|
endif()
|
|
|
|
|
2017-10-04 18:37:32 +00:00
|
|
|
if(ENABLE_WALLPAPERS)
|
2015-03-15 16:07:33 +00:00
|
|
|
add_subdirectory(wallpapers)
|
2012-02-05 13:44:16 +00:00
|
|
|
endif()
|
2015-01-18 16:28:18 +00:00
|
|
|
|
2016-05-08 15:01:46 +00:00
|
|
|
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/AHK_Tests/)
|
|
|
|
add_subdirectory(AHK_Tests)
|
|
|
|
endif()
|
|
|
|
|
2015-04-15 21:29:53 +00:00
|
|
|
## Extra files for Boot/Live/Hybrid CD. You need to put them under [boot|live|hybrid]cd_extras
|
2015-01-18 16:28:18 +00:00
|
|
|
## in the same layout as you want them to be in the CD.
|
2018-11-16 22:26:58 +00:00
|
|
|
## If you change the content of any of the following folders later on,
|
|
|
|
## run "cmake ." before compiling.
|
2015-04-15 21:29:53 +00:00
|
|
|
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})
|
2016-04-19 21:41:46 +00:00
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/bootcd_extras/${item} DESTINATION extras NO_CAB NAME_ON_CD ${item} FOR bootcd regtest)
|
2015-04-15 21:29:53 +00:00
|
|
|
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})
|
2016-04-19 21:41:46 +00:00
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/livecd_extras/${item} DESTINATION extras NO_CAB NAME_ON_CD ${item} FOR livecd)
|
2015-04-15 21:29:53 +00:00
|
|
|
endforeach(item)
|
|
|
|
endif()
|
2015-01-18 16:28:18 +00:00
|
|
|
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})
|
2016-04-19 21:41:46 +00:00
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/${item} DESTINATION extras NO_CAB NAME_ON_CD ${item} FOR hybridcd)
|
2015-01-18 16:28:18 +00:00
|
|
|
endforeach(item)
|
|
|
|
endif()
|
2018-11-16 22:26:58 +00:00
|
|
|
|
|
|
|
## Extra files which you need existing on the hard drive after the installation.
|
|
|
|
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/)
|
|
|
|
file(GLOB_RECURSE EXTRA_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/ ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/*)
|
|
|
|
foreach(item ${EXTRA_FILES})
|
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/${item} DESTINATION reactos/3rdParty NAME_ON_CD ${item} FOR bootcd)
|
|
|
|
endforeach(item)
|
|
|
|
endif()
|
2024-06-30 13:15:34 +00:00
|
|
|
|
|
|
|
# Add font file DroidSansFallback.ttf for LiveCD
|
|
|
|
# See also boot/bootdata/packages/reactos.dff.in
|
|
|
|
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/optional/DroidSansFallback.ttf)
|
|
|
|
add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/optional/DroidSansFallback.ttf" DESTINATION reactos/Fonts FOR livecd)
|
|
|
|
endif()
|