mirror of
https://github.com/reactos/reactos.git
synced 2024-09-08 11:50:08 +00:00
24 lines
946 B
CMake
24 lines
946 B
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)
|