* Sync with recent trunk (r52637).
[reactos.git] / boot / CMakeLists.txt
1 ##bootcd
2 #clear it out
3 file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/bootcd.cmake
4 "file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bootcd)\n")
5
6 add_custom_target(bootcd
7 ${CMAKE_COMMAND} -D CD_DIR=${CMAKE_CURRENT_BINARY_DIR}/bootcd
8 -P ${CMAKE_CURRENT_BINARY_DIR}/bootcd.cmake
9 COMMAND native-cdmake -v -j -m -b ${CMAKE_CURRENT_BINARY_DIR}/freeldr/bootsect/isoboot.bin ${CMAKE_CURRENT_BINARY_DIR}/bootcd REACTOS ${REACTOS_BINARY_DIR}/bootcd.iso
10 VERBATIM)
11
12 ##bootcdregtest
13 #clear it out
14 file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/bootcdregtest.cmake
15 "file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bootcdregtest)\n")
16
17 add_custom_target(bootcdregtest
18 ${CMAKE_COMMAND} -D CD_DIR=${CMAKE_CURRENT_BINARY_DIR}/bootcdregtest
19 -P ${CMAKE_CURRENT_BINARY_DIR}/bootcdregtest.cmake
20 COMMAND native-cdmake -v -j -m -b ${CMAKE_CURRENT_BINARY_DIR}/freeldr/bootsect/isobtrt.bin ${CMAKE_CURRENT_BINARY_DIR}/bootcdregtest REACTOS ${REACTOS_BINARY_DIR}/bootcdregtest.iso
21 VERBATIM)
22
23
24 ##livecd
25 #clear it out
26 file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/livecd.cmake
27 "file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/livecd)\n")
28 #create profiles directories too
29 file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/livecd.cmake
30 "file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/livecd/Profiles)\n")
31 file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/livecd.cmake
32 "file(MAKE_DIRECTORY \"${CMAKE_CURRENT_BINARY_DIR}/livecd/Profiles/All Users\")\n")
33 file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/livecd.cmake
34 "file(MAKE_DIRECTORY \"${CMAKE_CURRENT_BINARY_DIR}/livecd/Profiles/All Users/Desktop\")\n")
35 file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/livecd.cmake
36 "file(MAKE_DIRECTORY \"${CMAKE_CURRENT_BINARY_DIR}/livecd/Profiles/Default User\")\n")
37 file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/livecd.cmake
38 "file(MAKE_DIRECTORY \"${CMAKE_CURRENT_BINARY_DIR}/livecd/Profiles/Default User/Desktop\")\n")
39 file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/livecd.cmake
40 "file(MAKE_DIRECTORY \"${CMAKE_CURRENT_BINARY_DIR}/livecd/Profiles/Default User/My Documents\")\n")
41
42 add_custom_target(livecd
43 ${CMAKE_COMMAND} -D CD_DIR=${CMAKE_CURRENT_BINARY_DIR}/livecd
44 -P ${CMAKE_CURRENT_BINARY_DIR}/livecd.cmake
45 COMMAND native-cdmake -v -j -m -b ${CMAKE_CURRENT_BINARY_DIR}/freeldr/bootsect/isoboot.bin ${CMAKE_CURRENT_BINARY_DIR}/livecd REACTOS ${REACTOS_BINARY_DIR}/livecd.iso
46 VERBATIM)
47
48 add_subdirectory(freeldr)
49 add_subdirectory(bootdata)