am-kernels/kernels/yield-os/CMakeLists.txt

12 lines
339 B
CMake
Raw Normal View History

add_executable(yield-os
yield-os.c
)
target_link_libraries(yield-os PRIVATE am-${ARCH} klib)
# -- Extract binary file from ELF
add_custom_command(TARGET yield-os
COMMAND ${CMAKE_OBJCOPY} ARGS -S --set-section-flags .bss=alloc,contents -O binary yield-os yield-os.bin)
create_binary(yield-os)
install_target_and_binary(yield-os)