[CONSRV]
[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 DEPENDS native-cdmake
11 VERBATIM)
12
13 ##bootcdregtest
14 #clear it out
15 file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/bootcdregtest.cmake
16 "file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bootcdregtest)\n")
17
18 add_custom_target(bootcdregtest
19 ${CMAKE_COMMAND} -D CD_DIR=${CMAKE_CURRENT_BINARY_DIR}/bootcdregtest
20 -P ${CMAKE_CURRENT_BINARY_DIR}/bootcdregtest.cmake
21 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
22 DEPENDS native-cdmake
23 VERBATIM)
24
25
26 ##livecd
27 #clear it out
28 file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/livecd.cmake
29 "file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/livecd)\n")
30 #create profiles directories too
31 file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/livecd.cmake
32 "file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/livecd/Profiles)\n")
33 file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/livecd.cmake
34 "file(MAKE_DIRECTORY \"${CMAKE_CURRENT_BINARY_DIR}/livecd/Profiles/All Users\")\n")
35 file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/livecd.cmake
36 "file(MAKE_DIRECTORY \"${CMAKE_CURRENT_BINARY_DIR}/livecd/Profiles/All Users/Desktop\")\n")
37 file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/livecd.cmake
38 "file(MAKE_DIRECTORY \"${CMAKE_CURRENT_BINARY_DIR}/livecd/Profiles/Default User\")\n")
39 file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/livecd.cmake
40 "file(MAKE_DIRECTORY \"${CMAKE_CURRENT_BINARY_DIR}/livecd/Profiles/Default User/Desktop\")\n")
41 file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/livecd.cmake
42 "file(MAKE_DIRECTORY \"${CMAKE_CURRENT_BINARY_DIR}/livecd/Profiles/Default User/My Documents\")\n")
43
44 add_custom_target(livecd
45 ${CMAKE_COMMAND} -D CD_DIR=${CMAKE_CURRENT_BINARY_DIR}/livecd
46 -P ${CMAKE_CURRENT_BINARY_DIR}/livecd.cmake
47 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
48 DEPENDS native-cdmake
49 VERBATIM)
50
51 add_subdirectory(freeldr)
52 add_subdirectory(bootdata)