1 2##################################### 3# Generate the FAT bootsector source files 4# 5add_custom_command( 6 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/fat.c ${CMAKE_CURRENT_BINARY_DIR}/fat.h 7 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 8 DEPENDS native-bin2c fat) 9 10add_custom_command( 11 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/fat32.c ${CMAKE_CURRENT_BINARY_DIR}/fat32.h 12 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 13 DEPENDS native-bin2c fat32) 14##################################### 15 16add_executable(installfreeldr EXCLUDE_FROM_ALL 17 install.c 18 volume.c 19 ${CMAKE_CURRENT_BINARY_DIR}/fat.c 20 ${CMAKE_CURRENT_BINARY_DIR}/fat32.c) 21 22set_module_type(installfreeldr win32cui) 23add_importlibs(installfreeldr msvcrt kernel32) 24