reactos/boot/freeldr/install/CMakeLists.txt
Adam Słaboń 7b24d00ef1
[FREELDR][INSTALL][FDEBUG] Include FreeLDR tools in LiveCD and HybridCD (#2550)
It might be useful to have them on LiveCD/HybridCD as well.
2020-04-15 12:37:21 +02:00

24 lines
1 KiB
CMake

#####################################
# Generate the FAT bootsector source files
#
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/fat.c ${CMAKE_CURRENT_BINARY_DIR}/fat.h
COMMAND native-bin2c ${CMAKE_CURRENT_BINARY_DIR}/../bootsect/fat.bin ${CMAKE_CURRENT_BINARY_DIR}/fat.c ${CMAKE_CURRENT_BINARY_DIR}/fat.h BIN fat_data
DEPENDS native-bin2c fat)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/fat32.c ${CMAKE_CURRENT_BINARY_DIR}/fat32.h
COMMAND native-bin2c ${CMAKE_CURRENT_BINARY_DIR}/../bootsect/fat32.bin ${CMAKE_CURRENT_BINARY_DIR}/fat32.c ${CMAKE_CURRENT_BINARY_DIR}/fat32.h BIN fat32_data
DEPENDS native-bin2c fat32)
#####################################
add_executable(installfreeldr EXCLUDE_FROM_ALL
install.c
volume.c
${CMAKE_CURRENT_BINARY_DIR}/fat.c
${CMAKE_CURRENT_BINARY_DIR}/fat32.c)
set_module_type(installfreeldr win32cui)
add_importlibs(installfreeldr msvcrt kernel32)
add_cd_file(TARGET installfreeldr DESTINATION loader NO_CAB NOT_IN_HYBRIDCD FOR bootcd livecd hybridcd)