[TOOLS_BIN2C]
[reactos.git] / reactos / boot / freeldr / install / CMakeLists.txt
1
2 #####################################
3 # Generate the FAT bootsector source files
4 #
5 add_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
10 add_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
16 add_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
22 set_module_type(installfreeldr win32cui)
23 add_importlibs(installfreeldr msvcrt kernel32)